]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: smac: only provide valid regulatory hint
authorArend van Spriel <arend@broadcom.com>
Wed, 11 Apr 2012 09:52:50 +0000 (11:52 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 13 Apr 2012 18:32:53 +0000 (14:32 -0400)
commit8afa7894aec824faf537c7a094bd726b10ca8dca
tree506f9d7a51ac46c745cbd62cac35990de2dc17eb
parent255344cb2856fcf0cf753ccdb32f8d936fac65c5
brcm80211: smac: only provide valid regulatory hint

The driver provides a regulatory hint to cfg80211 as obtained from the
SPROM. Mostly, this will be a two-letter ISO country code. However, it
may obtain special country code similar to the world regulatory domain
as used in cfg80211. This patch avoids setting these special codes as
the hint is lost to cfg80211.

Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/channel.c