mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
Add more debug info if wpa_supplicant_set_suites() fails
Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
9c75e9fb81
commit
cbf61176ed
@ -102,8 +102,9 @@ static int wpa_supplicant_select_config(struct wpa_supplicant *wpa_s)
|
|||||||
if (wpa_key_mgmt_wpa_any(ssid->key_mgmt)) {
|
if (wpa_key_mgmt_wpa_any(ssid->key_mgmt)) {
|
||||||
u8 wpa_ie[80];
|
u8 wpa_ie[80];
|
||||||
size_t wpa_ie_len = sizeof(wpa_ie);
|
size_t wpa_ie_len = sizeof(wpa_ie);
|
||||||
wpa_supplicant_set_suites(wpa_s, NULL, ssid,
|
if (wpa_supplicant_set_suites(wpa_s, NULL, ssid,
|
||||||
wpa_ie, &wpa_ie_len);
|
wpa_ie, &wpa_ie_len) < 0)
|
||||||
|
wpa_dbg(wpa_s, MSG_DEBUG, "Could not set WPA suites");
|
||||||
} else {
|
} else {
|
||||||
wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
|
wpa_supplicant_set_non_wpa_policy(wpa_s, ssid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user