mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacmn: Add regulatory API to get country code
Implement function to allow regulatory code to get country code and source Change-Id: I2713913ba212509e778229b3041363a32ca6049e CRs-fixed: 2634077
This commit is contained in:
parent
86dd484d69
commit
a329901cca
2 changed files with 16 additions and 0 deletions
|
|
@ -637,6 +637,16 @@ wlan_reg_get_opclass_details(struct wlan_objmgr_pdev *pdev,
|
|||
uint8_t max_supp_op_class,
|
||||
bool global_tbl_lookup);
|
||||
|
||||
/**
|
||||
* wlan_reg_get_cc_and_src () - get country code and src
|
||||
* @psoc: psoc ptr
|
||||
* @alpha2: country code alpha2
|
||||
*
|
||||
* Return: country_src
|
||||
*/
|
||||
enum country_src wlan_reg_get_cc_and_src(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *alpha);
|
||||
|
||||
/**
|
||||
* wlan_regulatory_init() - init regulatory component
|
||||
*
|
||||
|
|
|
|||
|
|
@ -322,6 +322,12 @@ wlan_reg_get_opclass_details(struct wlan_objmgr_pdev *pdev,
|
|||
global_tbl_lookup);
|
||||
}
|
||||
|
||||
enum country_src wlan_reg_get_cc_and_src(struct wlan_objmgr_psoc *psoc,
|
||||
uint8_t *alpha)
|
||||
{
|
||||
return reg_get_cc_and_src(psoc, alpha);
|
||||
}
|
||||
|
||||
QDF_STATUS wlan_regulatory_init(void)
|
||||
{
|
||||
QDF_STATUS status;
|
||||
|
|
|
|||
Loading…
Reference in a new issue