diff options
author | Amitkumar Karwar <akarwar@marvell.com> | 2014-04-17 07:01:53 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-04-22 21:06:30 +0200 |
commit | cf831ffe4473d2e500912af20244336a1534685a (patch) | |
tree | a6fdd522611a34643b6e0ce64090a05a9f6d1107 /drivers/net/wireless/mwifiex/11n.c | |
parent | mwifiex: remove redundant 'fw_load' completion structure (diff) | |
download | linux-cf831ffe4473d2e500912af20244336a1534685a.tar.xz linux-cf831ffe4473d2e500912af20244336a1534685a.zip |
mwifiex: fix IE parsing issues
IE's are parsed from beacon buffer and stored locally using
mwifiex_update_bss_desc_with_ie() function.
Sometimes the local pointers point to the data inside IE, but
while using them it is assumed that they are pointing to the IE
itself.
These issues are fixed in this patch.
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/11n.c')
-rw-r--r-- | drivers/net/wireless/mwifiex/11n.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/11n.c b/drivers/net/wireless/mwifiex/11n.c index d14ead8beca8..2bd07d681c5e 100644 --- a/drivers/net/wireless/mwifiex/11n.c +++ b/drivers/net/wireless/mwifiex/11n.c @@ -345,8 +345,7 @@ mwifiex_cmd_append_11n_tlv(struct mwifiex_private *priv, memcpy((u8 *) ht_info + sizeof(struct mwifiex_ie_types_header), - (u8 *) bss_desc->bcn_ht_oper + - sizeof(struct ieee_types_header), + (u8 *)bss_desc->bcn_ht_oper, le16_to_cpu(ht_info->header.len)); if (!(sband->ht_cap.cap & |