mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
qcacld-3.0: Fix length while copying of WAPI akmsuite from supplicant IEs
As per WAPI spec, the akmsuite if of length 4 x akm suite count. This was changed as part of I63528da4c2dfafa22f2c6fc73afe52727af02b64 and causes WAPI connection failure due to mismatch in scan results. Fix the correct length while copying akmsuite from supplicant IEs in wlan_hdd_cfg80211_set_ie. Change-Id: Ib0d60e82a3fbaef1a9405200dd03eb7882007fcb CRs-Fixed: 2258136
This commit is contained in:
parent
86747ece8c
commit
845bd47cf7
1 changed files with 2 additions and 1 deletions
|
|
@ -19046,7 +19046,8 @@ static int wlan_hdd_cfg80211_set_ie(struct hdd_adapter *adapter,
|
|||
/* AKM suite list, each OUI contains 4 bytes */
|
||||
akmlist = (uint32_t *)(tmp);
|
||||
if (akmsuiteCount <= MAX_NUM_AKM_SUITES) {
|
||||
memcpy(akmsuite, akmlist, akmsuiteCount);
|
||||
qdf_mem_copy(akmsuite, akmlist,
|
||||
sizeof(uint32_t) * akmsuiteCount);
|
||||
} else {
|
||||
hdd_err("Invalid akmSuite count: %u",
|
||||
akmsuiteCount);
|
||||
|
|
|
|||
Loading…
Reference in a new issue