summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2014-06-24 15:03:56 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-06-24 13:51:02 -0400
commit98f979f1f80cf2ef0188370ee8fec996c3ee7fd8 (patch)
tree0a24c345512878027019264292400428973b5bcb /drivers
parent86184b93c52c21ad3bd56d185634a4704f9e98c9 (diff)
staging: rtl8723au: rtw_append_pmkid(): Adjust for IEs array not arrying fixed elements
Another case using hard coded offsets counting on the presence of fixed beacon elements in the IEs array. Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/rtl8723au/core/rtw_mlme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c
index d0e9b660844b..c2e3777292a5 100644
--- a/drivers/staging/rtl8723au/core/rtw_mlme.c
+++ b/drivers/staging/rtl8723au/core/rtw_mlme.c
@@ -1984,7 +1984,7 @@ static int rtw_append_pmkid(struct rtw_adapter *Adapter, int iEntry,
{
struct security_priv *psecuritypriv = &Adapter->securitypriv;
- if (ie[13] <= 20) {
+ if (ie[1] <= 20) {
/* The RSN IE didn't include the PMK ID,
append the PMK information */
ie[ie_len] = 1;
@@ -1995,7 +1995,7 @@ static int rtw_append_pmkid(struct rtw_adapter *Adapter, int iEntry,
&psecuritypriv->PMKIDList[iEntry].PMKID, 16);
ie_len += 16;
- ie[13] += 18;/* PMKID length = 2+16 */
+ ie[1] += 18;/* PMKID length = 2+16 */
}
return ie_len;
}