Search Linux Wireless

[PATCH 0/2] Fix lockdep warning in brcmsmac

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

 



As reported by Josh Boyer, brcmsmac is producing lockdep warnings by
calling freq_reg_info() without holding cfg80211_lock. Currently
freq_reg_info() is the only way for a wireless driver to tell whether
OFDM is allowed on the current channel, but cfg80211_lock is outside the
scope of the wireless drivers.

Since other regulatory restrictions are communicated in the channel
definition, it makes sense to do the same for OFDM. These patches add a
new flag, IEEE80211_CHAN_NO_OFDM, which is set by regulatory to
indicated OFDM operation is prohibited. brcmsmac is modifified to use
this flag instead of consuming the regulatory data directly.

Thanks,
Seth


Seth Forshee (2):
  cfg80211: add channel flag to restrict OFDM
  brcmsmac: use channel flags to restrict OFDM

 drivers/net/wireless/brcm80211/brcmsmac/channel.c  |    5 +----
 .../net/wireless/brcm80211/brcmsmac/mac80211_if.c  |    3 ++-
 include/net/cfg80211.h                             |    2 ++
 net/wireless/reg.c                                 |    2 ++
 4 files changed, 7 insertions(+), 5 deletions(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux