summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhaoyang Liu <zhaoyang@codeaurora.org>2017-03-22 15:36:49 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-04-05 01:24:35 -0700
commit39da65e70e03ead9eb4a225c2b297f8fef72b4b3 (patch)
treeadbb8753c78d9f62caa1cb0c286ed4780d6ebe2f
parent9d06b93823bc3adb8e23e48c91eb0c81cb98cf94 (diff)
qcacld-2.0: Fix wrong data issue in BSS description IE
In tSirBssDescription structure, the last member ieFields is for saving BSS IE. The IE data is varibale length. For structures which includes this tSirBssDescription must put it in the end place of structure. Now in sSirSmeJoinReq structure, the last member is sub20_channelwidth. this member will change the ieFields unexpectedly. In such case, station can't connect WPA2-PSK AP whose ssid only includes one character. When station tries to send WMI_PEER_ASSOC_CMD to firmware, it fails to parse wrong BSS IE, casue the peer_flag without WMI_PEER_NEED_PTK_4_WAY setting. So target will transmit the M4 EAPOL frame encrypted during four way handshake. This is the reason that STA can't connect AP with only one character in SSID. Change-Id: Idc478df3682eeef0f31ccd92471b6b78e2ad248c CRs-Fixed: 2023648
-rw-r--r--CORE/MAC/inc/sirApi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/MAC/inc/sirApi.h b/CORE/MAC/inc/sirApi.h
index 4c2f67525565..ae379bb50707 100644
--- a/CORE/MAC/inc/sirApi.h
+++ b/CORE/MAC/inc/sirApi.h
@@ -1150,8 +1150,8 @@ typedef struct sSirSmeJoinReq
tAniBool spectrumMgtIndicator;
tSirMacPowerCapInfo powerCap;
tSirSupChnl supportedChannels;
- tSirBssDescription bssDescription;
uint8_t sub20_channelwidth;
+ tSirBssDescription bssDescription;
} tSirSmeJoinReq, *tpSirSmeJoinReq;
/* Definition for response message to previously issued join request */