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
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue