summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorYogesh Ashok Powar2011-11-08 06:41:06 +0100
committerJohn W. Linville2011-11-11 18:32:47 +0100
commit33f38d425f65d767ac2f0f439465d1b3969c9a82 (patch)
treefc631d0fdd2ccab1c707806cbae5f1f273131638 /drivers/net
parentmac80211: init rate-control for TDLS sta when supp-rates are known (diff)
downloadkernel-qcow2-linux-33f38d425f65d767ac2f0f439465d1b3969c9a82.tar.gz
kernel-qcow2-linux-33f38d425f65d767ac2f0f439465d1b3969c9a82.tar.xz
kernel-qcow2-linux-33f38d425f65d767ac2f0f439465d1b3969c9a82.zip
mwifiex: fix ht_cap_info in ibss beacons
A local variable is used to calculate ht_cap_info. Erroneously ht_cap.cap_info isn't updated in the ibss beacons after the calculation. This patch fixes it. Signed-off-by: Yogesh Ashok Powar <yogeshp@marvell.com> Signed-off-by: Kiran Divekar <dkiran@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/mwifiex/join.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/mwifiex/join.c b/drivers/net/wireless/mwifiex/join.c
index 62b4c2938608..062716cb90e2 100644
--- a/drivers/net/wireless/mwifiex/join.c
+++ b/drivers/net/wireless/mwifiex/join.c
@@ -922,15 +922,15 @@ mwifiex_cmd_802_11_ad_hoc_start(struct mwifiex_private *priv,
cpu_to_le16(WLAN_EID_HT_CAPABILITY);
ht_cap->header.len =
cpu_to_le16(sizeof(struct ieee80211_ht_cap));
- ht_cap_info = le16_to_cpu(ht_cap->ht_cap.cap_info);
- ht_cap_info |= IEEE80211_HT_CAP_SGI_20;
+ ht_cap_info = IEEE80211_HT_CAP_SGI_20;
if (adapter->chan_offset) {
ht_cap_info |= IEEE80211_HT_CAP_SGI_40;
ht_cap_info |= IEEE80211_HT_CAP_DSSSCCK40;
ht_cap_info |= IEEE80211_HT_CAP_SUP_WIDTH_20_40;
SETHT_MCS32(ht_cap->ht_cap.mcs.rx_mask);
}
+ ht_cap->ht_cap.cap_info = cpu_to_le16(ht_cap_info);
ht_cap->ht_cap.ampdu_params_info
= IEEE80211_HT_MAX_AMPDU_64K;