mac80211: fix ad-hoc mode 802.11n channel type
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 16 Apr 2012 21:07:15 +0000 (21:07 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Mon, 16 Apr 2012 21:07:15 +0000 (21:07 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@31321 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/mac80211/patches/300-pending_work.patch

index b69ecc6b0417d6f4c5b72f8305bc925920efb861..b62beb4ba596fe40ca86e0d2ceff45ac829adc7d 100644 (file)
 +                       * 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;