Do not segfault on EVENT_ASSOC_REJECT without BSSID
This commit is contained in:
parent
e5ad96b745
commit
c05d6d188c
1 changed files with 9 additions and 4 deletions
|
@ -1714,10 +1714,15 @@ void wpa_supplicant_event(void *ctx, enum wpa_event_type event,
|
||||||
break;
|
break;
|
||||||
#endif /* CONFIG_IBSS_RSN */
|
#endif /* CONFIG_IBSS_RSN */
|
||||||
case EVENT_ASSOC_REJECT:
|
case EVENT_ASSOC_REJECT:
|
||||||
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_ASSOC_REJECT "bssid=" MACSTR
|
if (data->assoc_reject.bssid)
|
||||||
" status_code=%u",
|
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_ASSOC_REJECT
|
||||||
MAC2STR(data->assoc_reject.bssid),
|
"bssid=" MACSTR " status_code=%u",
|
||||||
data->assoc_reject.status_code);
|
MAC2STR(data->assoc_reject.bssid),
|
||||||
|
data->assoc_reject.status_code);
|
||||||
|
else
|
||||||
|
wpa_msg(wpa_s, MSG_INFO, WPA_EVENT_ASSOC_REJECT
|
||||||
|
"status_code=%u",
|
||||||
|
data->assoc_reject.status_code);
|
||||||
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
|
if (wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME)
|
||||||
sme_event_assoc_reject(wpa_s, data);
|
sme_event_assoc_reject(wpa_s, data);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue