> > --- > > diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h > > index d30eada..1cdc43e 100644 > > --- a/include/net/cfg80211.h > > +++ b/include/net/cfg80211.h > > @@ -1974,6 +1974,7 @@ extern int ieee80211_radiotap_iterator_next( > > > > extern const unsigned char rfc1042_header[6]; > > extern const unsigned char bridge_tunnel_header[6]; > > +extern bool cfg80211_disable_40mhz_24ghz; > > > > /** > > * ieee80211_get_hdrlen_from_skb - get header length from data > > diff --git a/net/mac80211/main.c b/net/mac80211/main.c > > index 0ab2a8d..4290b50 100644 > > --- a/net/mac80211/main.c > > +++ b/net/mac80211/main.c > > @@ -33,12 +33,6 @@ > > #include "cfg.h" > > #include "debugfs.h" > > > > - > > -static bool ieee80211_disable_40mhz_24ghz; > > -module_param(ieee80211_disable_40mhz_24ghz, bool, 0644); > > -MODULE_PARM_DESC(ieee80211_disable_40mhz_24ghz, > > - "Disable 40MHz support in the 2.4GHz band"); > > - > > static struct lock_class_key ieee80211_rx_skb_queue_class; > > > > void ieee80211_configure_filter(struct ieee80211_local *local) > > @@ -729,11 +723,11 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) > > channels += sband->n_channels; > > > > /* > > - * Since ieee80211_disable_40mhz_24ghz is global, we can > > + * Since cfg80211_disable_40mhz_24ghz is global, we can > > * modify the sband's ht data even if the driver uses a > > * global structure for that. > > */ > > - if (ieee80211_disable_40mhz_24ghz && > > + if (cfg80211_disable_40mhz_24ghz && > > band == IEEE80211_BAND_2GHZ && > > sband->ht_cap.ht_supported) { > > sband->ht_cap.cap &= ~IEEE80211_HT_CAP_SUP_WIDTH_20_40; > > Well, I think in that case this code should also be moved. OK. I will resend the patch. Thanks, Bing ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ÿ«zW¬³ø¡Ü}©²ÆzÚj:+v¨þø®w¥þàÞ¨è&¢)ß«a¶Úÿûz¹ÞúÝjÿwèf