qcacld-3.0: Do not allow SAP SCC on non-PSC/non-VLP channels
SAP is allowed to come up on SCC with a STA operating in 6GHz only if the STA is on a PSC channel in VLP mode. Therefore, filter out all 6GHz channels from the PCL if the STA operates on any non-VLP mode. Also, in case of VLP mode, filter out non-PSC channels. Change-Id: I37d9a510db3647fc07858af99eb614ebe824cc78 CRs-Fixed: 3206471
This commit is contained in:

committed by
Madan Koyyalamudi

parent
c80cd311ca
commit
7da2ef6f88
@@ -3637,4 +3637,13 @@ void wlan_mlme_set_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
|
||||
void wlan_mlme_get_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
|
||||
bool *safe_mode_enable);
|
||||
|
||||
/**
|
||||
* wlan_mlme_get_6g_ap_power_type() - get the power type of the
|
||||
* vdev operating on 6GHz.
|
||||
*
|
||||
* @vdev: vdev context
|
||||
*
|
||||
* Return: 6g_power_type
|
||||
*/
|
||||
uint32_t wlan_mlme_get_6g_ap_power_type(struct wlan_objmgr_vdev *vdev);
|
||||
#endif /* _WLAN_MLME_API_H_ */
|
||||
|
@@ -5788,3 +5788,18 @@ void wlan_mlme_set_safe_mode_enable(struct wlan_objmgr_psoc *psoc,
|
||||
|
||||
mlme_obj->cfg.gen.safe_mode_enable = safe_mode_enable;
|
||||
}
|
||||
|
||||
uint32_t wlan_mlme_get_6g_ap_power_type(struct wlan_objmgr_vdev *vdev)
|
||||
{
|
||||
struct vdev_mlme_obj *mlme_obj;
|
||||
|
||||
mlme_obj = wlan_vdev_mlme_get_cmpt_obj(vdev);
|
||||
|
||||
if (!mlme_obj) {
|
||||
mlme_legacy_err("vdev component object is NULL");
|
||||
return REG_MAX_AP_TYPE;
|
||||
}
|
||||
|
||||
return mlme_obj->reg_tpc_obj.power_type_6g;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user