Search Linux Wireless

RE: [PATCH v2] wireless: mwifiex: initial commit for Marvell mwifiex driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > ---
> > 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
ÿô.nlj·Ÿ®‰­†+%ŠË±é¥Šwÿº{.nlj·¥Š{±ÿ«zW¬³ø¡Ü}©ž²ÆzÚj:+v‰¨þø®w¥þŠàÞ¨è&¢)ß«a¶Úÿûz¹ÞúŽŠÝjÿŠwèf



[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux