summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/regd.h
diff options
context:
space:
mode:
authorBruno Randolf <br1@einfach.org>2011-01-25 07:15:33 +0300
committerJohn W. Linville <linville@tuxdriver.com>2011-01-28 23:44:26 +0300
commit5719efdde1d0ae8670b96eb8748d1a0dc6a37be2 (patch)
treeb5cd960b7a5ca7b09d35a438915837cff748ea09 /drivers/net/wireless/ath/regd.h
parent20a904904dc69d4b4de26c146af33eb00f05ab92 (diff)
downloadlinux-5719efdde1d0ae8670b96eb8748d1a0dc6a37be2.tar.xz
ath: Add function to check if 4.9GHz channels are allowed
This adds a helper function to ath/regd.c which can be asked if 4.9GHz channels are allowed for a given regulatory domain code. This keeps the knowledge of regdomains and defines like MKK9_MKKC in one place. I'm passing the regdomain code instead of the ath_regulatory structure because this needs to be called quite early in the driver inititalization where ath_regulatory is not available yet in ath5k. I'm using MKK9_MKKC only because this is the regdomain in the 802.11j enabled sample cards we got from our vendor. I found some hints in HAL code that this is used by Atheros to indicate 4.9GHz channels support and that there might be other domain codes as well, but as I don't have any documentation I'm just putting in what I need right now. It can be extended later. Signed-off-by: Bruno Randolf <br1@einfach.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/regd.h')
-rw-r--r--drivers/net/wireless/ath/regd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/regd.h b/drivers/net/wireless/ath/regd.h
index 345dd9721b41..172f63f671cf 100644
--- a/drivers/net/wireless/ath/regd.h
+++ b/drivers/net/wireless/ath/regd.h
@@ -250,6 +250,7 @@ enum CountryCode {
};
bool ath_is_world_regd(struct ath_regulatory *reg);
+bool ath_is_49ghz_allowed(u16 redomain);
int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
int (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request));