qcacmn: Add regulatory APIs to retrieve "unii_5g_bitmap" mask
Add regulatory APIs reg_get_unii_5g_bitmap and ucfg_reg_get_unii_5g_bitmap to retrieve the value of "unii_5g_bitmap" stored in regulatory pdev private object. CRs-Fixed: 2574642 Change-Id: Iffb004b7fc9d9fbcf1972eb6f527529024e49c70
This commit is contained in:

committad av
nshrivas

förälder
0ca3c59702
incheckning
399ef175ce
@@ -380,4 +380,23 @@ QDF_STATUS ucfg_reg_set_hal_reg_cap(struct wlan_objmgr_psoc *psoc,
|
||||
*/
|
||||
QDF_STATUS ucfg_set_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc);
|
||||
|
||||
/**
|
||||
* ucfg_reg_get_unii_5g_bitmap() - get unii_5g_bitmap value
|
||||
* @pdev: pdev pointer
|
||||
* @bitmap: Pointer to retrieve unii_5g_bitmap of enum reg_unii_band.
|
||||
*
|
||||
* Return: QDF_STATUS
|
||||
*/
|
||||
#ifdef DISABLE_UNII_SHARED_BANDS
|
||||
QDF_STATUS
|
||||
ucfg_reg_get_unii_5g_bitmap(struct wlan_objmgr_pdev *pdev, uint8_t *bitmap);
|
||||
#else
|
||||
static inline QDF_STATUS
|
||||
ucfg_reg_get_unii_5g_bitmap(struct wlan_objmgr_pdev *pdev, uint8_t *bitmap)
|
||||
{
|
||||
*bitmap = 0;
|
||||
return QDF_STATUS_SUCCESS;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -333,3 +333,11 @@ QDF_STATUS ucfg_set_ignore_fw_reg_offload_ind(struct wlan_objmgr_psoc *psoc)
|
||||
{
|
||||
return reg_set_ignore_fw_reg_offload_ind(psoc);
|
||||
}
|
||||
|
||||
#ifdef DISABLE_UNII_SHARED_BANDS
|
||||
QDF_STATUS
|
||||
ucfg_reg_get_unii_5g_bitmap(struct wlan_objmgr_pdev *pdev, uint8_t *bitmap)
|
||||
{
|
||||
return reg_get_unii_5g_bitmap(pdev, bitmap);
|
||||
}
|
||||
#endif
|
||||
|
Referens i nytt ärende
Block a user