From: Rostislav Lisovy Date: Wed, 2 Apr 2014 13:31:55 +0000 (+0200) Subject: mac80211: Update conf_is_ht() to work properly with 5/10MHz channels X-Git-Tag: v3.16~18^2~11^2~7^2~46^2~82 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=041f607de17666bed0407370e3f4a56e697354a8;p=platform%2Fkernel%2Flinux-exynos.git mac80211: Update conf_is_ht() to work properly with 5/10MHz channels The channels with 5/10MHz bandwidth are not HT. We have to reflect this in conf_is_ht() function which returns whether the particular channel is HT or not. Signed-off-by: Rostislav Lisovy Signed-off-by: Johannes Berg --- diff --git a/include/net/mac80211.h b/include/net/mac80211.h index 03ab3c08..a3044e12 100644 --- a/include/net/mac80211.h +++ b/include/net/mac80211.h @@ -4585,7 +4585,9 @@ conf_is_ht40(struct ieee80211_conf *conf) static inline bool conf_is_ht(struct ieee80211_conf *conf) { - return conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT; + return (conf->chandef.width != NL80211_CHAN_WIDTH_5) && + (conf->chandef.width != NL80211_CHAN_WIDTH_10) && + (conf->chandef.width != NL80211_CHAN_WIDTH_20_NOHT); } static inline enum nl80211_iftype