ath: export alpha2 helper
authorMichal Kazior <michal.kazior@tieto.com>
Wed, 28 Sep 2016 12:11:57 +0000 (15:11 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 4 Oct 2016 15:01:48 +0000 (18:01 +0300)
This will be helpful for drivers that can acquire
alpha2 regulatory codes.

Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Bartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/regd.c
drivers/net/wireless/ath/regd.h

index f8506037736f8b0f5ea0257e3e56cf246d8a7207..43afa83a9f0c1b70ac63eb464c3722088b16e1e1 100644 (file)
@@ -449,7 +449,7 @@ static void ath_reg_apply_world_flags(struct wiphy *wiphy,
        }
 }
 
-static u16 ath_regd_find_country_by_name(char *alpha2)
+u16 ath_regd_find_country_by_name(char *alpha2)
 {
        unsigned int i;
 
@@ -460,6 +460,7 @@ static u16 ath_regd_find_country_by_name(char *alpha2)
 
        return -1;
 }
+EXPORT_SYMBOL(ath_regd_find_country_by_name);
 
 static int __ath_reg_dyn_country(struct wiphy *wiphy,
                                 struct ath_regulatory *reg,
index 565d3075f06ee5000e3b0205428a83b2419165f9..5d80be213fac0ec9c05d01bc49c6bfd190e68a16 100644 (file)
@@ -251,6 +251,7 @@ enum CountryCode {
 
 bool ath_is_world_regd(struct ath_regulatory *reg);
 bool ath_is_49ghz_allowed(u16 redomain);
+u16 ath_regd_find_country_by_name(char *alpha2);
 int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
                  void (*reg_notifier)(struct wiphy *wiphy,
                                       struct regulatory_request *request));