Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath: export alpha2 helper

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>

authored by

Michal Kazior and committed by
Kalle Valo
d291d8e0 bafe4926

+3 -1
+2 -1
drivers/net/wireless/ath/regd.c
··· 449 449 } 450 450 } 451 451 452 - static u16 ath_regd_find_country_by_name(char *alpha2) 452 + u16 ath_regd_find_country_by_name(char *alpha2) 453 453 { 454 454 unsigned int i; 455 455 ··· 460 460 461 461 return -1; 462 462 } 463 + EXPORT_SYMBOL(ath_regd_find_country_by_name); 463 464 464 465 static int __ath_reg_dyn_country(struct wiphy *wiphy, 465 466 struct ath_regulatory *reg,
+1
drivers/net/wireless/ath/regd.h
··· 251 251 252 252 bool ath_is_world_regd(struct ath_regulatory *reg); 253 253 bool ath_is_49ghz_allowed(u16 redomain); 254 + u16 ath_regd_find_country_by_name(char *alpha2); 254 255 int ath_regd_init(struct ath_regulatory *reg, struct wiphy *wiphy, 255 256 void (*reg_notifier)(struct wiphy *wiphy, 256 257 struct regulatory_request *request));