]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mac80211: fix rate control update on 2040 bss change
authorRajkumar Manoharan <rmanohar@qca.qualcomm.com>
Wed, 25 Apr 2012 14:54:24 +0000 (20:24 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Apr 2012 20:07:23 +0000 (16:07 -0400)
The rate control updation never be called on 2040 BSS change.
The station should update its rate control on receiving beacon
with different HT mode in the HT operation IE. Not doing so,
leads to sending frames with higher(ht40) rates whereas AP is
operating in lower mode (ht20).

Signed-off-by: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mlme.c

index c8836fa7d627c65b6aa5a5e276c56af790f8b9bc..5a1b06e3b530ae438d5fdf801e6a87121e9bd4cd 100644 (file)
@@ -210,7 +210,7 @@ static u32 ieee80211_config_ht_tx(struct ieee80211_sub_if_data *sdata,
                disable_40 = true;
 
        if (sta && (!reconfig ||
-                   (disable_40 != !!(sta->sta.ht_cap.cap &
+                   (disable_40 != !(sta->sta.ht_cap.cap &
                                        IEEE80211_HT_CAP_SUP_WIDTH_20_40)))) {
 
                if (disable_40)