TDLS: Verify that scan results for BSS are available before using them

This commit is contained in:
Jouni Malinen 2011-04-14 19:50:26 +03:00 committed by Jouni Malinen
parent 6e432d3f10
commit 95cb2d88e9

View file

@ -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) &&