aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSunil Dutt Undekari <usdutt@qti.qualcomm.com>2014-09-02 18:43:54 +0530
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 08:24:42 -0700
commit5cfa788571a2de5c73c98202cb31094a6c03e067 (patch)
treeb430e37cb6a56ceac68614842a955842406e7560
parent66b19063ed5a9c829138d8ff0abdbabe1c577b6e (diff)
downloadandroid_external_wpa_supplicant_8-5cfa788571a2de5c73c98202cb31094a6c03e067.tar.gz
android_external_wpa_supplicant_8-5cfa788571a2de5c73c98202cb31094a6c03e067.tar.bz2
android_external_wpa_supplicant_8-5cfa788571a2de5c73c98202cb31094a6c03e067.zip
TDLS: Decline Setup Request with status code 37 if BSSID does not match
TDLS Setup Request frame has to be rejected with status code 37 ("The request has been declined"), if the BSSID in the received Link Identifier does not match the current BSSID per IEEE Std 802.11-2012, 10.22.4 ('TDLS direct-link establishment') step (b). The previously used status code 7 ('Not in same BSS') is described to used only when processing TPK Handshake Message 2 in TDLS Setup Response frame. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Git-commit: e47abdb9dbd039986f87241808bb43883dd76e0f Git-repo : git://w1.fi/srv/git/hostap.git Change-Id: I2104cd188ace40a31bf656ec634300befd6e8514 CRs-fixed: 718170
-rw-r--r--src/rsn_supp/tdls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rsn_supp/tdls.c b/src/rsn_supp/tdls.c
index 3c5e157e..93ae1432 100644
--- a/src/rsn_supp/tdls.c
+++ b/src/rsn_supp/tdls.c
@@ -1817,7 +1817,7 @@ static int wpa_tdls_process_tpk_m1(struct wpa_sm *sm, const u8 *src_addr,
lnkid = (struct wpa_tdls_lnkid *) kde.lnkid;
if (os_memcmp(sm->bssid, lnkid->bssid, ETH_ALEN) != 0) {
wpa_printf(MSG_INFO, "TDLS: TPK M1 from diff BSS");
- status = WLAN_STATUS_NOT_IN_SAME_BSS;
+ status = WLAN_STATUS_REQUEST_DECLINED;
goto error;
}