linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix lockdep warning in brcmsmac
@ 2012-08-01 20:58 Seth Forshee
  2012-08-01 20:58 ` [PATCH 1/2] cfg80211: add channel flag to prohibit OFDM operation Seth Forshee
                   ` (4 more replies)
  0 siblings, 5 replies; 20+ messages in thread
From: Seth Forshee @ 2012-08-01 20:58 UTC (permalink / raw)
  To: linux-wireless
  Cc: John W. Linville, Johannes Berg, Luis R. Rodriguez, Josh Boyer,
	Arend van Spriel, Brett Rudley, Roland Vossen, brcm80211-dev-list

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(-)


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2012-08-02 14:50 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-01 20:58 [PATCH 0/2] Fix lockdep warning in brcmsmac Seth Forshee
2012-08-01 20:58 ` [PATCH 1/2] cfg80211: add channel flag to prohibit OFDM operation Seth Forshee
2012-08-01 21:20   ` Luis R. Rodriguez
2012-08-02  6:24   ` Johannes Berg
2012-08-02 13:04     ` Seth Forshee
2012-08-02 13:31       ` Johannes Berg
2012-08-01 20:58 ` [PATCH 2/2] brcmsmac: use channel flags to restrict OFDM Seth Forshee
2012-08-02  0:23 ` [PATCH 0/2] Fix lockdep warning in brcmsmac Josh Boyer
2012-08-02  1:53   ` Seth Forshee
2012-08-02 12:02     ` Josh Boyer
2012-08-02 12:51       ` Josh Boyer
2012-08-02 13:42         ` Arend van Spriel
2012-08-02 13:45           ` Josh Boyer
2012-08-02 14:00             ` Arend van Spriel
2012-08-02 14:45               ` Josh Boyer
2012-08-02 14:49                 ` Josh Boyer
2012-08-02 13:44         ` Hauke Mehrtens
2012-08-02 13:54           ` Josh Boyer
2012-08-02 11:01 ` Arend van Spriel
2012-08-02 11:39 ` Arend van Spriel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).