qcacmn: Add a Regulatory API to compute channel list after HW Mode Switch
Add regulatory API and a dispatcher function to compute current channel list after dynamic HW Mode Switch. range_5g_low, range_5g_high and wireless modes are extracted from wlan_psoc_host_mac_phy_caps based on the new HW mode configured and are used to derive the current channel list. Change-Id: I799712da8992ede0b5896dd2eb438cffea5fe048 CRs-Fixed: 2481535
This commit is contained in:
@@ -703,4 +703,13 @@ void wlan_reg_update_nol_history_ch(struct wlan_objmgr_pdev *pdev,
|
||||
* False: otherwise.
|
||||
*/
|
||||
bool wlan_reg_is_regdmn_en302502_applicable(struct wlan_objmgr_pdev *pdev);
|
||||
|
||||
/**
|
||||
* wlan_reg_modify_pdev_chan_range() - Compute current channel list for the
|
||||
* modified channel range in the regcap.
|
||||
* @pdev: pointer to wlan_objmgr_pdev.
|
||||
*
|
||||
* Return : QDF_STATUS
|
||||
*/
|
||||
QDF_STATUS wlan_reg_modify_pdev_chan_range(struct wlan_objmgr_pdev *pdev);
|
||||
#endif
|
||||
|
@@ -713,3 +713,14 @@ bool wlan_reg_is_regdmn_en302502_applicable(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return reg_is_regdmn_en302502_applicable(pdev);
|
||||
}
|
||||
|
||||
/**
|
||||
* wlan_reg_modify_pdev_chan_range() - Compute current channel list for the
|
||||
* modified regcap.
|
||||
* @pdev: pointer to struct wlan_objmgr_pdev
|
||||
*
|
||||
*/
|
||||
QDF_STATUS wlan_reg_modify_pdev_chan_range(struct wlan_objmgr_pdev *pdev)
|
||||
{
|
||||
return reg_modify_pdev_chan_range(pdev);
|
||||
}
|
||||
|
Reference in New Issue
Block a user