From: Rajkumar Manoharan Date: Wed, 25 Apr 2012 14:54:24 +0000 (+0530) Subject: mac80211: fix rate control update on 2040 bss change X-Git-Tag: v3.5-rc1~109^2~79^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91a0099c190107821292d3114c396ac858ad723e;p=profile%2Fivi%2Fkernel-x86-ivi.git mac80211: fix rate control update on 2040 bss change 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 Signed-off-by: John W. Linville --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 03f93f9..dbd4bd9 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -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)