Commit d291d8e0 authored by Michal Kazior's avatar Michal Kazior Committed by Kalle Valo

ath: export alpha2 helper

This will be helpful for drivers that can acquire
alpha2 regulatory codes.
Signed-off-by: default avatarMichal Kazior <michal.kazior@tieto.com>
Signed-off-by: default avatarBartosz Markowski <bartosz.markowski@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent bafe4926
...@@ -449,7 +449,7 @@ static void ath_reg_apply_world_flags(struct wiphy *wiphy, ...@@ -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; unsigned int i;
...@@ -460,6 +460,7 @@ static u16 ath_regd_find_country_by_name(char *alpha2) ...@@ -460,6 +460,7 @@ static u16 ath_regd_find_country_by_name(char *alpha2)
return -1; return -1;
} }
EXPORT_SYMBOL(ath_regd_find_country_by_name);
static int __ath_reg_dyn_country(struct wiphy *wiphy, static int __ath_reg_dyn_country(struct wiphy *wiphy,
struct ath_regulatory *reg, struct ath_regulatory *reg,
......
...@@ -251,6 +251,7 @@ enum CountryCode { ...@@ -251,6 +251,7 @@ enum CountryCode {
bool ath_is_world_regd(struct ath_regulatory *reg); bool ath_is_world_regd(struct ath_regulatory *reg);
bool ath_is_49ghz_allowed(u16 redomain); 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, int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy,
void (*reg_notifier)(struct wiphy *wiphy, void (*reg_notifier)(struct wiphy *wiphy,
struct regulatory_request *request)); struct regulatory_request *request));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment