qcacmn: Add a dispatcher API to read the ini AFC config

Add a regulatory dispatcher API to fetch the value of AFC action
from the ini config.

Change-Id: I053262f98991a656d1919817ce37227202a46bc3
CRs-Fixed: 2997899
This commit is contained in:
Hariharan Basuthkar
2021-06-30 19:08:02 +05:30
zatwierdzone przez Madan Koyyalamudi
rodzic 8c2dd12d3c
commit 033605a031
7 zmienionych plików z 66 dodań i 1 usunięć

Wyświetl plik

@@ -620,6 +620,18 @@ QDF_STATUS wlan_reg_get_afc_req_id(struct wlan_objmgr_pdev *pdev,
* Return: true if AFC exipry event is received from the FW or false otherwise
*/
bool wlan_reg_is_afc_expiry_event_received(struct wlan_objmgr_pdev *pdev);
/**
* wlan_reg_is_noaction_on_afc_pwr_evt() - Checks whether driver needs to
* take action for AFC action or the response should be handled by the
* user application.
*
* @pdev: pdev ptr
*
* Return: true if driver need not take action for AFC resp, false otherwise.
*/
bool
wlan_reg_is_noaction_on_afc_pwr_evt(struct wlan_objmgr_pdev *pdev);
#else
static inline bool
wlan_reg_is_afc_power_event_received(struct wlan_objmgr_pdev *pdev)

Wyświetl plik

@@ -1405,4 +1405,9 @@ bool wlan_reg_is_afc_expiry_event_received(struct wlan_objmgr_pdev *pdev)
}
qdf_export_symbol(wlan_reg_is_afc_expiry_event_received);
bool wlan_reg_is_noaction_on_afc_pwr_evt(struct wlan_objmgr_pdev *pdev)
{
return reg_is_noaction_on_afc_pwr_evt(pdev);
}
#endif