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:
Priyadarshnee S
2019-11-28 11:40:19 +05:30
committad av nshrivas
förälder 0ca3c59702
incheckning 399ef175ce
6 ändrade filer med 61 tillägg och 0 borttagningar

Visa fil

@@ -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

Visa fil

@@ -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