|
@@ -52,6 +52,7 @@ QDF_STATUS wlan_twt_cfg_init(struct wlan_objmgr_psoc *psoc)
|
|
|
twt_cfg->bcast_responder_enabled = CFG_TWT_GET_BCAST_RES(bcast_conf);
|
|
|
twt_cfg->enable_twt_24ghz = cfg_get(psoc, CFG_ENABLE_TWT_24GHZ);
|
|
|
twt_cfg->flex_twt_sched = cfg_default(CFG_HE_FLEX_TWT_SCHED);
|
|
|
+ twt_cfg->is_twt_enabled_in_11n = cfg_get(psoc, CFG_TWT_ENABLE_IN_11N);
|
|
|
twt_cfg->req_flag = false;
|
|
|
twt_cfg->res_flag = false;
|
|
|
|
|
@@ -317,3 +318,19 @@ wlan_twt_cfg_get_bcast_responder(struct wlan_objmgr_psoc *psoc, bool *val)
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
+QDF_STATUS
|
|
|
+wlan_twt_cfg_get_support_in_11n_mode(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool *val)
|
|
|
+{
|
|
|
+ struct twt_psoc_priv_obj *twt_psoc_obj;
|
|
|
+
|
|
|
+ twt_psoc_obj = wlan_twt_psoc_get_comp_private_obj(psoc);
|
|
|
+ if (!twt_psoc_obj) {
|
|
|
+ *val = cfg_default(CFG_TWT_ENABLE_IN_11N);
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+ }
|
|
|
+
|
|
|
+ *val = twt_psoc_obj->cfg_params.is_twt_enabled_in_11n;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|