]> git.baikalelectronics.ru Git - kernel.git/commit
brcmsmac: use channel flags to restrict OFDM
authorSeth Forshee <seth.forshee@canonical.com>
Wed, 1 Aug 2012 20:58:43 +0000 (15:58 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 2 Aug 2012 17:51:48 +0000 (13:51 -0400)
commitfa02ba221b6033793e37ce3d08bb7f9015d400f7
treeb7cb3ea2cbb1c4c176ffed67c8a3b58d5e85ce8d
parent814bbc17d7111ba1a0fe1781331f33d6ed11fefe
brcmsmac: use channel flags to restrict OFDM

brcmsmac cannot call freq_reg_info() during channel changes as it does
not hold cfg80211_lock, and as a result it generates a lockdep warning.
freq_reg_info() is being used to determine whether OFDM is allowed on
the current channel, so we can avoid the errant call by using the new
IEEE80211_CHAN_NO_OFDM for this purpose instead.

Reported-by: Josh Boyer <jwboyer@redhat.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/channel.c
drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c