Fix code
This commit is contained in:
@ -291,7 +291,6 @@ int ieee80211_create_probe_response(char* buffer, int length, struct ieee80211_p
|
||||
|
||||
/* */
|
||||
int ieee80211_create_authentication_response(char* buffer, int length, struct ieee80211_authentication_params* params) {
|
||||
char* pos;
|
||||
int responselength;
|
||||
struct ieee80211_header_mgmt* header;
|
||||
|
||||
@ -314,7 +313,6 @@ int ieee80211_create_authentication_response(char* buffer, int length, struct ie
|
||||
|
||||
/* Header frame size */
|
||||
responselength = (int)((uint8_t*)&header->authetication.ie[0] - (uint8_t*)header);
|
||||
pos = buffer + responselength;
|
||||
|
||||
/* TODO: add custon IE */
|
||||
|
||||
|
@ -1720,7 +1720,7 @@ static int nl80211_device_setfrequency(wifi_device_handle handle, struct wifi_fr
|
||||
if (!result) {
|
||||
memcpy(&devicehandle->currentfrequency, freq, sizeof(struct wifi_frequency));
|
||||
} else {
|
||||
capwap_logging_error("Unable retrieve physical device capability, error code: %d", result);
|
||||
capwap_logging_error("Unable set frequency %d, error code: %d", (int)freq->frequency, result);
|
||||
}
|
||||
|
||||
/* */
|
||||
@ -2133,7 +2133,7 @@ static wifi_global_handle nl80211_global_init(void) {
|
||||
/* Get nl80211 netlink family */
|
||||
globalhandle->nl80211_id = genl_ctrl_resolve(globalhandle->nl, "nl80211");
|
||||
if (globalhandle->nl80211_id < 0) {
|
||||
capwap_logging_warning("Unable to found mac80211 kernel module: %s", nl_geterror());
|
||||
capwap_logging_warning("Unable to found mac80211 kernel module");
|
||||
nl80211_global_deinit((wifi_global_handle)globalhandle);
|
||||
return NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user