TDLS: Do not allow setup to be started if AP prohibits TDLS
This commit is contained in:
parent
fb12d186b6
commit
52c9e6f3f5
7 changed files with 68 additions and 1 deletions
|
@ -1024,9 +1024,14 @@ static int wpa_supplicant_event_associnfo(struct wpa_supplicant *wpa_s,
|
|||
if (data->assoc_info.req_ies)
|
||||
wpa_hexdump(MSG_DEBUG, "req_ies", data->assoc_info.req_ies,
|
||||
data->assoc_info.req_ies_len);
|
||||
if (data->assoc_info.resp_ies)
|
||||
if (data->assoc_info.resp_ies) {
|
||||
wpa_hexdump(MSG_DEBUG, "resp_ies", data->assoc_info.resp_ies,
|
||||
data->assoc_info.resp_ies_len);
|
||||
#ifdef CONFIG_TDLS
|
||||
wpa_tdls_assoc_resp_ies(wpa_s->wpa, data->assoc_info.resp_ies,
|
||||
data->assoc_info.resp_ies_len);
|
||||
#endif /* CONFIG_TDLS */
|
||||
}
|
||||
if (data->assoc_info.beacon_ies)
|
||||
wpa_hexdump(MSG_DEBUG, "beacon_ies",
|
||||
data->assoc_info.beacon_ies,
|
||||
|
|
|
@ -1046,6 +1046,10 @@ void wpa_supplicant_associate(struct wpa_supplicant *wpa_s,
|
|||
return;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_TDLS
|
||||
wpa_tdls_ap_ies(wpa_s->wpa, (const u8 *) (bss + 1), bss->ie_len);
|
||||
#endif /* CONFIG_TDLS */
|
||||
|
||||
if ((wpa_s->drv_flags & WPA_DRIVER_FLAGS_SME) &&
|
||||
ssid->mode == IEEE80211_MODE_INFRA) {
|
||||
sme_authenticate(wpa_s, bss, ssid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue