From: Felix Fietkau Date: Mon, 16 Apr 2012 21:07:15 +0000 (+0000) Subject: mac80211: fix ad-hoc mode 802.11n channel type X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7da292bb85fb018a8144b66e998581cd49c3fd59;p=openwrt%2Fsvn-archive%2Fopenwrt.git mac80211: fix ad-hoc mode 802.11n channel type SVN-Revision: 31321 --- diff --git a/package/mac80211/patches/300-pending_work.patch b/package/mac80211/patches/300-pending_work.patch index b69ecc6b04..b62beb4ba5 100644 --- a/package/mac80211/patches/300-pending_work.patch +++ b/package/mac80211/patches/300-pending_work.patch @@ -873,8 +873,8 @@ + * fall back to HT20 if we don't use or use + * the other extension channel + */ -+ if ((channel_type == NL80211_CHAN_HT40MINUS || -+ channel_type == NL80211_CHAN_HT40PLUS) && ++ if (!(channel_type == NL80211_CHAN_HT40MINUS || ++ channel_type == NL80211_CHAN_HT40PLUS) || + channel_type != sdata->u.ibss.channel_type) + sta_ht_cap_new.cap &= + ~IEEE80211_HT_CAP_SUP_WIDTH_20_40;