Code: Select all
// Wifi_ConnectAP: Connect to an access point
// Wifi_AccessPoint * apdata: basic data on the AP
// int wepmode: indicates whether wep is used, and what kind
// int wepkeyid: indicates which wep key ID to use for transmitting
// unsigned char * wepkey: the wep key, to be used in all 4 key slots (should make this more flexible in the future)
// Returns: 0 for ok, -1 for error with input data
extern int Wifi_ConnectAP(Wifi_AccessPoint * apdata, int wepmode, int wepkeyid, unsigned char * wepkey);
Second question: What am I supposed to put in the Wifi_ConnectAP to get it to work? I guess I'm probably missing something obvious but I'm currently really confused. I have a program which shows a list of the Access Points and lets the user choose one. Then, if it it WEP, it will ask for a 10-digit key. The only thing I am confused about is what is a "wepkeyid", and how do I find it? I'm sure its something very simple but I don't know where to look. I'm assuming the actual key is the "wepkey" entry).
thanks guys!