TDLS: Verify that scan results for BSS are available before using them
This commit is contained in:
parent
6e432d3f10
commit
95cb2d88e9
1 changed files with 3 additions and 1 deletions
|
@ -1100,7 +1100,9 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_TDLS
|
#ifdef CONFIG_TDLS
|
||||||
wpa_tdls_ap_ies(wpa_s->wpa, (const u8 *) (bss + 1), bss->ie_len);
|
if (bss)
|
||||||
|
wpa_tdls_ap_ies(wpa_s->wpa, (const u8 *) (bss + 1),
|
||||||
|
bss->ie_len);
|
||||||
#endif /* CONFIG_TDLS */
|
#endif /* CONFIG_TDLS */
|
||||||
|
|
||||||
if ((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) &&
|
if ((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) &&
|
||||||
|
|
Loading…
Reference in a new issue