From: Johannes Berg Date: Thu, 7 Feb 2013 19:41:50 +0000 (+0100) Subject: mac80211: fix HT/VHT disable flags X-Git-Tag: v3.12-rc1~1247^2~28^2^2~26^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb145022c82bde532b386c7a6f1dcef1b2bca2e5;p=kernel%2Fkernel-generic.git mac80211: fix HT/VHT disable flags The code to disable HT and VHT if VHT was advertised without VHT is wrong -- it accidentally uses the wrong flags. Fix that. Signed-off-by: Johannes Berg --- diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index b97b615..e6da6bf 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c @@ -3588,8 +3588,8 @@ static int ieee80211_prep_channel(struct ieee80211_sub_if_data *sdata, vht_oper = NULL; sdata_info(sdata, "AP advertised VHT without HT, disabling both\n"); - sdata->flags |= IEEE80211_STA_DISABLE_HT; - sdata->flags |= IEEE80211_STA_DISABLE_VHT; + ifmgd->flags |= IEEE80211_STA_DISABLE_HT; + ifmgd->flags |= IEEE80211_STA_DISABLE_VHT; } }