qcacld-3.0: Save EPCS Capability in psoc

Save EPCS Capability in psoc instead of vdev to avoid the value
lost when random MAC setting happends.

Change-Id: I35299da59156dc1197adaa3350b0d11255b76c2e
CRs-Fixed: 3551773
This commit is contained in:
Paul Zhang
2023-07-10 21:46:45 +08:00
committed by Rahul Choudhary
parent 0b1ebf053f
commit 11a1a57d1d
5 changed files with 57 additions and 4 deletions

View File

@@ -1160,6 +1160,23 @@ QDF_STATUS mlme_update_tgt_mlo_caps_in_cfg(struct wlan_objmgr_psoc *psoc);
enum phy_ch_width wlan_mlme_convert_eht_op_bw_to_phy_ch_width(
uint8_t channel_width);
/**
* wlan_mlme_get_epcs_capability() - Get mlme epcs capability flag
* @psoc: psoc object
*
* Return: true if epcs capability enabled
*/
bool wlan_mlme_get_epcs_capability(struct wlan_objmgr_psoc *psoc);
/**
* wlan_mlme_set_epcs_capability() - Set mlme epcs capability flag
* @psoc: psoc object
* @flag: epcs capability flag
*
* Return: void
*/
void wlan_mlme_set_epcs_capability(struct wlan_objmgr_psoc *psoc, bool flag);
/**
* wlan_mlme_get_usr_disable_sta_eht() - Get user disable sta eht flag
* @psoc: psoc object
@@ -1178,6 +1195,17 @@ bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc);
void wlan_mlme_set_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc,
bool disable);
#else
static inline
bool wlan_mlme_get_epcs_capability(struct wlan_objmgr_psoc *psoc)
{
return false;
}
static inline
void wlan_mlme_set_epcs_capability(struct wlan_objmgr_psoc *psoc, bool flag)
{
}
static inline
bool wlan_mlme_get_usr_disable_sta_eht(struct wlan_objmgr_psoc *psoc)
{

View File

@@ -1727,6 +1727,7 @@ enum station_prefer_bw {
* @mlo_support_link_band: band bitmap that sta mlo supports
* @mlo_max_simultaneous_links: number of simultaneous links
* @mlo_prefer_percentage: percentage to boost/reduce mlo scoring
* @epcs_capability: epcs capability enable or disable flag
* @usr_disable_eht: user disable the eht for STA
*/
struct wlan_mlme_sta_cfg {
@@ -1762,6 +1763,7 @@ struct wlan_mlme_sta_cfg {
int8_t mlo_prefer_percentage;
#endif
#ifdef WLAN_FEATURE_11BE
bool epcs_capability;
bool usr_disable_eht;
#endif
};