brcm80211: smac: enable/disable radio on regulatory updates
authorSeth Forshee <seth.forshee@canonical.com>
Sat, 16 Jun 2012 12:47:53 +0000 (07:47 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 Jun 2012 19:14:35 +0000 (15:14 -0400)
commit2ab631f48cac65864a61007215187cb7511b0846
tree4d6b2fdfabfcf1ca4f332416f759b0701bc81e00
parentcf03c5dac83609f09d9f0e9fa3c09d86daed614d
brcm80211: smac: enable/disable radio on regulatory updates

Currently the radio disable state is only updated during initialization,
and it's only checked against the internal world domain. This is
unnecessary, as there are always valid channels against this domain.
Instead, check whether any channels are enabled in the regulatory
notifier and update the radio state accordingly.

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