qcacld-3.0: Add support to get feature set info

Based on the new requirement, add support to get requested
feature set info from different feature components.

Change-Id: I1bfc097c8ae8c4ab678d4dc07b7932cf3272d851
CRs-Fixed: 3262868
This commit is contained in:
Ashish Kumar Dhanotiya
2022-07-26 15:07:58 +05:30
committed by Madan Koyyalamudi
부모 7034ffe097
커밋 2490a83a25
14개의 변경된 파일628개의 추가작업 그리고 0개의 파일을 삭제

파일 보기

@@ -28,6 +28,19 @@
#include <wlan_cmn.h>
#include "sme_api.h"
#ifdef FEATURE_SET
/**
* wlan_mlme_get_feature_info() - Get mlme features
* @psoc: psoc context
* @mlme_feature_set: MLME feature set info structure
*
* Return: None
*/
void wlan_mlme_get_feature_info(
struct wlan_objmgr_psoc *psoc,
struct wlan_mlme_features *mlme_feature_set);
#endif
/**
* wlan_mlme_get_cfg_str() - Copy the uint8_t array for a particular CFG
* @dst: pointer to the destination buffer.

파일 보기

@@ -2740,4 +2740,47 @@ struct wlan_change_bi {
uint8_t session_id;
};
#ifdef FEATURE_SET
/**
* struct wlan_mlme_features - Mlme feature set structure
* @enable_wifi_optimizer: indicates wifi optimizer is enabled or disabled
* @roaming_high_cu_roam_trigger: Roaming high CPU trigger enabled or disabled
* @roaming_emergency_trigger: Roaming emergency trigger enabled or disabled
* @roaming_btm_trihgger: Roaming btm trigger enabled or disabled
* @roaming_idle_trigger: Roaming idle trigger enabled or disabled
* @roaming_wtc_trigger: Roaming wtc trigger enabled or disabled
* @roaming_btcoex_trigger: Roaming btcoex trigger enabled or disabled
* @roaming_btw_wpa_wpa2: Roaming btw wpa wpa2 enabled or disabled
* @roaming_manage_chan_list_api: Roaming manage chan list api enabled or
* disabled
* @roaming_adaptive_11r: Roaming adaptive 11r enabled or disabled
* @roaming_ctrl_api_get_set: Roaming ctrl api get set enabled or disabled
* @roaming_ctrl_api_reassoc: Roaming ctrl api reassoc enabled or disabled
* @roaming_ctrl_get_cu: Roaming ctrl get cu enabled or disabled
* @vendor_req_1_version: Vendor requirement version 1
* @vendor_req_2_version: Vendor requirement version 2
* @sta_dual_p2p_support: STA + dual p2p support enabled or not
* @enable2x2: Enable 2x2
*/
struct wlan_mlme_features {
bool enable_wifi_optimizer;
uint8_t sap_max_num_clients;
bool roaming_high_cu_roam_trigger;
bool roaming_emergency_trigger;
bool roaming_btm_trihgger;
bool roaming_idle_trigger;
bool roaming_wtc_trigger;
bool roaming_btcoex_trigger;
bool roaming_btw_wpa_wpa2;
bool roaming_manage_chan_list_api;
bool roaming_adaptive_11r;
bool roaming_ctrl_api_get_set;
bool roaming_ctrl_api_reassoc;
bool roaming_ctrl_get_cu;
WMI_HOST_VENDOR1_REQ1_VERSION vendor_req_1_version;
WMI_HOST_VENDOR1_REQ2_VERSION vendor_req_2_version;
bool sta_dual_p2p_support;
bool enable2x2;
};
#endif
#endif

파일 보기

@@ -52,5 +52,21 @@ struct twt_context {
uint8_t num_twt_sessions;
struct twt_session_info session_info[WLAN_MAX_TWT_SESSIONS_PER_PEER];
};
#ifdef FEATURE_SET
/**
* struct wlan_twt_features - TWT features info
* @enable_twt: Enable TWT
* enable_twt_requester Enable TWT requester
* @enable_twt_broadcast: Enable TWT broadcast
* @enable_twt_flexible: Enable flexible TWT
*/
struct wlan_twt_features {
bool enable_twt;
bool enable_twt_requester;
bool enable_twt_broadcast;
bool enable_twt_flexible;
};
#endif /* FEATURE_SET */
#endif /* WLAN_SUPPORT_TWT */
#endif /* _WLAN_MLME_TWT_PUBLIC_STRUCT_H_ */