brcm80211: smac: use current regulatory domain when checking whether OFDM is allowed
authorSeth Forshee <seth.forshee@canonical.com>
Sat, 16 Jun 2012 12:47:56 +0000 (07:47 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 19:14:40 +0000 (15:14 -0400)
commitedc7651f3a4ffa7fca37d92401562694121512ad
tree02942a1b03376e63f04395667681dad3b4d9d517
parent853346d8b60738467581d1cd9ccb678aeb086121
brcm80211: smac: use current regulatory domain when checking whether OFDM is allowed

The brcmsmac internal regulatory data is being used to determine whether
OFDM should be allowed, and this is only done once during
initialization. To be effective this needs to be checked against
mac80211's regulatory rules for the current channel.

Reviewed-by: Arend Van Spriel <arend@broadcom.com>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.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/channel.h
drivers/net/wireless/brcm80211/brcmsmac/main.c