Search Linux Wireless

[PATCH 07/12] cfg80211: allow driver read access to cfg80211_regdomain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



A driver's reg_notfier() may want to inspect the currently set
regulatory domain.

Signed-off-by: Luis R. Rodriguez <lrodriguez@xxxxxxxxxxx>
---
 include/net/wireless.h |    3 +++
 net/wireless/reg.c     |    3 ++-
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/include/net/wireless.h b/include/net/wireless.h
index cb04e7b..4fd40a2 100644
--- a/include/net/wireless.h
+++ b/include/net/wireless.h
@@ -437,4 +437,7 @@ extern int regulatory_set_custom_rd(
  */
 extern int regdom_intersect_wiphy_regd(struct wiphy *wiphy);
 
+/* The wireless core regulatory domain */
+extern const struct ieee80211_regdomain *cfg80211_regdomain;
+
 #endif /* __NET_WIRELESS_H */
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 88e8ff0..ad38a9d 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -89,7 +89,8 @@ static u32 supported_bandwidths[] = {
 /* Central wireless core regulatory domains, we only need two,
  * the current one and a world regulatory domain in case we have no
  * information to give us an alpha2 */
-static const struct ieee80211_regdomain *cfg80211_regdomain;
+const struct ieee80211_regdomain *cfg80211_regdomain;
+EXPORT_SYMBOL(cfg80211_regdomain);
 
 /* We use this as a place for the rd structure built from the
  * last parsed country IE to rest until CRDA gets back to us with
-- 
1.6.1.rc3.51.g5832d

--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux