]> git.openfabrics.org - ~shefty/rdma-dev.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)
commit94a2ca311cf4154c566cf5c49b88c13cd4cdce73
tree506f9d7a51ac46c745cbd62cac35990de2dc17eb
parent6b8da423315b5ea7573c8c3a3925941b9a1c3932
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