mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
brcmfmac: fix parsing rsn ie for ap mode.
RSN IEs got incorrectly parsed and therefore ap mode using WPA2 security was not working. Cc: [email protected] Reviewed-by: Arend Van Spriel <[email protected]> Reviewed-by: Pieter-Paul Giesberts <[email protected]> Signed-off-by: Hante Meuleman <[email protected]> Signed-off-by: Arend van Spriel <[email protected]> Signed-off-by: John W. Linville <[email protected]>
This commit is contained in:
parent
1b2c2e73b3
commit
619c5a9ad5
1 changed files with 3 additions and 2 deletions
|
|
@ -3091,10 +3091,11 @@ brcmf_configure_wpaie(struct net_device *ndev, struct brcmf_vs_tlv *wpa_ie,
|
|||
|
||||
len = wpa_ie->len + TLV_HDR_LEN;
|
||||
data = (u8 *)wpa_ie;
|
||||
offset = 0;
|
||||
offset = TLV_HDR_LEN;
|
||||
if (!is_rsn_ie)
|
||||
offset += VS_IE_FIXED_HDR_LEN;
|
||||
offset += WPA_IE_VERSION_LEN;
|
||||
else
|
||||
offset += WPA_IE_VERSION_LEN;
|
||||
|
||||
/* check for multicast cipher suite */
|
||||
if (offset + WPA_IE_MIN_OUI_LEN > len) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue