mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacmn: Add dispatcher to reg_get_cur_6g_ap_pwr_type
Add dispatcher API wlan_reg_get_cur_6g_ap_pwr_type to call reg_get_cur_6g_ap_pwr_type from legacy TPC power calculation API to obtain AP power type for SAP. Change-Id: I7b135561af6f1cfaa14bbb724eb984e972a4a19a CRs-Fixed: 2912227
This commit is contained in:
parent
df1e3e114b
commit
8dcedb26a2
2 changed files with 28 additions and 0 deletions
|
|
@ -1605,6 +1605,19 @@ enum band_info wlan_reg_band_bitmap_to_band_info(uint32_t band_bitmap);
|
|||
#endif
|
||||
|
||||
#if defined(CONFIG_BAND_6GHZ)
|
||||
/**
|
||||
* wlan_reg_get_cur_6g_ap_pwr_type() - Get the current 6G regulatory AP power
|
||||
* type.
|
||||
* @pdev: Pointer to PDEV object.
|
||||
* @reg_cur_6g_ap_pwr_type: The current regulatory 6G AP power type ie.
|
||||
* LPI/SP/VLP.
|
||||
*
|
||||
* Return: QDF_STATUS.
|
||||
*/
|
||||
QDF_STATUS
|
||||
wlan_reg_get_cur_6g_ap_pwr_type(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type *reg_cur_6g_ap_pwr_type);
|
||||
|
||||
/**
|
||||
* wlan_reg_get_cur_6g_client_type() - Get the current 6G regulatory client
|
||||
* type.
|
||||
|
|
@ -1730,6 +1743,14 @@ wlan_reg_get_client_power_for_6ghz_ap(struct wlan_objmgr_pdev *pdev,
|
|||
enum reg_6g_ap_type
|
||||
wlan_reg_decide_6g_ap_pwr_type(struct wlan_objmgr_pdev *pdev);
|
||||
#else
|
||||
static inline QDF_STATUS
|
||||
wlan_reg_get_cur_6g_ap_pwr_type(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type *reg_cur_6g_ap_pwr_type)
|
||||
{
|
||||
*reg_cur_6g_ap_pwr_type = REG_VERY_LOW_POWER_AP;
|
||||
return QDF_STATUS_E_NOSUPPORT;
|
||||
}
|
||||
|
||||
static inline QDF_STATUS
|
||||
wlan_reg_get_cur_6g_client_type(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_client_type
|
||||
|
|
|
|||
|
|
@ -1315,6 +1315,13 @@ QDF_STATUS wlan_reg_get_unspecified_ap_usable(struct wlan_objmgr_pdev *pdev,
|
|||
return reg_get_unspecified_ap_usable(pdev, reg_unspecified_ap_usable);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
wlan_reg_get_cur_6g_ap_pwr_type(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_ap_type *reg_cur_6g_ap_pwr_type)
|
||||
{
|
||||
return reg_get_cur_6g_ap_pwr_type(pdev, reg_cur_6g_ap_pwr_type);
|
||||
}
|
||||
|
||||
QDF_STATUS
|
||||
wlan_reg_get_cur_6g_client_type(struct wlan_objmgr_pdev *pdev,
|
||||
enum reg_6g_client_type
|
||||
|
|
|
|||
Loading…
Reference in a new issue