Commit 619c5a9a authored by Hante Meuleman's avatar Hante Meuleman Committed by John W. Linville

brcmfmac: fix parsing rsn ie for ap mode.

RSN IEs got incorrectly parsed and therefore ap mode using WPA2
security was not working.

Cc: stable@vger.kernel.org
Reviewed-by: default avatarArend Van Spriel <arend@broadcom.com>
Reviewed-by: default avatarPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: default avatarHante Meuleman <meuleman@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 1b2c2e73
...@@ -3091,9 +3091,10 @@ brcmf_configure_wpaie(struct net_device *ndev, struct brcmf_vs_tlv *wpa_ie, ...@@ -3091,9 +3091,10 @@ brcmf_configure_wpaie(struct net_device *ndev, struct brcmf_vs_tlv *wpa_ie,
len = wpa_ie->len + TLV_HDR_LEN; len = wpa_ie->len + TLV_HDR_LEN;
data = (u8 *)wpa_ie; data = (u8 *)wpa_ie;
offset = 0; offset = TLV_HDR_LEN;
if (!is_rsn_ie) if (!is_rsn_ie)
offset += VS_IE_FIXED_HDR_LEN; offset += VS_IE_FIXED_HDR_LEN;
else
offset += WPA_IE_VERSION_LEN; offset += WPA_IE_VERSION_LEN;
/* check for multicast cipher suite */ /* check for multicast cipher suite */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment