]> 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)
commit4bf45554d6b09eaa436fe5dd608d6d43d2bd8d34
tree506f9d7a51ac46c745cbd62cac35990de2dc17eb
parentc3ecacc5fab16ff285eda191e0386ad3ea40b4ae
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