aboutsummaryrefslogtreecommitdiffstats
path: root/wlantest
diff options
context:
space:
mode:
authorJouni Malinen <jouni.malinen@atheros.com>2011-03-14 21:35:40 +0200
committerJouni Malinen <j@w1.fi>2011-03-14 21:35:40 +0200
commit6ca4da65182cc194f182e33ddb5bcf2925718459 (patch)
treea542406978ae9ac3184122559455cc8668a0a820 /wlantest
parent39c147261e996eadc3f55f398e77e6a845fd5dba (diff)
downloadexternal_wpa_supplicant_8_ti-6ca4da65182cc194f182e33ddb5bcf2925718459.zip
external_wpa_supplicant_8_ti-6ca4da65182cc194f182e33ddb5bcf2925718459.tar.gz
external_wpa_supplicant_8_ti-6ca4da65182cc194f182e33ddb5bcf2925718459.tar.bz2
wlantest: Use source address of TDLS Setup Confirm failure for matching
This is needed to be able to find the correct TDLS entry for the frame regardless of whether a FromDS or ToDS frame is being processed.
Diffstat (limited to 'wlantest')
-rw-r--r--wlantest/rx_tdls.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/wlantest/rx_tdls.c b/wlantest/rx_tdls.c
index e17be70..f2e2ac7 100644
--- a/wlantest/rx_tdls.c
+++ b/wlantest/rx_tdls.c
@@ -326,7 +326,7 @@ static void rx_data_tdls_setup_response(struct wlantest *wt, const u8 *bssid,
static void rx_data_tdls_setup_confirm_failure(struct wlantest *wt,
const u8 *bssid,
- const u8 *sta_addr,
+ const u8 *src,
u8 dialog_token, u16 status)
{
struct wlantest_bss *bss;
@@ -335,14 +335,14 @@ static void rx_data_tdls_setup_confirm_failure(struct wlantest *wt,
if (status == WLAN_STATUS_SUCCESS) {
wpa_printf(MSG_INFO, "TDLS: Invalid TDLS Setup Confirm from "
- MACSTR, MAC2STR(sta_addr));
+ MACSTR, MAC2STR(src));
return;
}
bss = bss_find(wt, bssid);
if (!bss)
return;
- sta = sta_find(bss, sta_addr);
+ sta = sta_find(bss, src);
if (!sta)
return;
@@ -387,7 +387,7 @@ static void rx_data_tdls_setup_confirm(struct wlantest *wt, const u8 *bssid,
if (ieee802_11_parse_elems(data + 3, len - 3, &elems, 1) ==
ParseFailed || elems.link_id == NULL) {
/* Need to match TDLS link based on Dialog Token */
- rx_data_tdls_setup_confirm_failure(wt, bssid, sta_addr,
+ rx_data_tdls_setup_confirm_failure(wt, bssid, src,
data[2], status);
return;
}