|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
|
|
|
+ * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved.
|
|
|
*
|
|
|
* Permission to use, copy, modify, and/or distribute this software for
|
|
|
* any purpose with or without fee is hereby granted, provided that the
|
|
@@ -508,7 +508,7 @@ ucfg_mlme_set_pmkid_modes(struct wlan_objmgr_psoc *psoc,
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
-#ifdef WLAN_SUPPORT_TWT
|
|
|
+#if defined(WLAN_SUPPORT_TWT) && defined(WLAN_FEATURE_11AX)
|
|
|
QDF_STATUS
|
|
|
ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
|
|
|
bool *val)
|
|
@@ -521,7 +521,7 @@ ucfg_mlme_get_twt_requestor(struct wlan_objmgr_psoc *psoc,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
- *val = mlme_obj->cfg.twt_cfg.is_twt_requestor_enabled;
|
|
|
+ *val = mlme_obj->cfg.he_caps.dot11_he_cap.twt_request;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -536,7 +536,7 @@ ucfg_mlme_set_twt_requestor(struct wlan_objmgr_psoc *psoc,
|
|
|
if (!mlme_obj)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- mlme_obj->cfg.twt_cfg.is_twt_requestor_enabled = val;
|
|
|
+ mlme_obj->cfg.he_caps.dot11_he_cap.twt_request = val;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -553,7 +553,7 @@ ucfg_mlme_get_twt_responder(struct wlan_objmgr_psoc *psoc,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
- *val = mlme_obj->cfg.twt_cfg.is_twt_responder_enabled;
|
|
|
+ *val = mlme_obj->cfg.he_caps.dot11_he_cap.twt_responder;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -568,7 +568,7 @@ ucfg_mlme_set_twt_responder(struct wlan_objmgr_psoc *psoc,
|
|
|
if (!mlme_obj)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- mlme_obj->cfg.twt_cfg.is_twt_responder_enabled = val;
|
|
|
+ mlme_obj->cfg.he_caps.dot11_he_cap.twt_responder = val;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -585,7 +585,7 @@ ucfg_mlme_get_bcast_twt(struct wlan_objmgr_psoc *psoc,
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
}
|
|
|
|
|
|
- *val = mlme_obj->cfg.twt_cfg.is_twt_bcast_enabled;
|
|
|
+ *val = mlme_obj->cfg.he_caps.dot11_he_cap.broadcast_twt;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -600,7 +600,7 @@ ucfg_mlme_set_bcast_twt(struct wlan_objmgr_psoc *psoc,
|
|
|
if (!mlme_obj)
|
|
|
return QDF_STATUS_E_INVAL;
|
|
|
|
|
|
- mlme_obj->cfg.twt_cfg.is_twt_bcast_enabled = val;
|
|
|
+ mlme_obj->cfg.he_caps.dot11_he_cap.broadcast_twt = val;
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
@@ -637,23 +637,6 @@ ucfg_mlme_set_twt_congestion_timeout(struct wlan_objmgr_psoc *psoc,
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
|
|
|
-QDF_STATUS
|
|
|
-ucfg_mlme_get_enable_twt(struct wlan_objmgr_psoc *psoc,
|
|
|
- bool *val)
|
|
|
-{
|
|
|
- struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
|
|
-
|
|
|
- mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
|
|
- if (!mlme_obj) {
|
|
|
- *val = cfg_default(CFG_ENABLE_TWT);
|
|
|
- return QDF_STATUS_E_INVAL;
|
|
|
- }
|
|
|
-
|
|
|
- *val = mlme_obj->cfg.twt_cfg.is_twt_enabled;
|
|
|
-
|
|
|
- return QDF_STATUS_SUCCESS;
|
|
|
-}
|
|
|
-
|
|
|
QDF_STATUS
|
|
|
ucfg_mlme_set_enable_twt(struct wlan_objmgr_psoc *psoc,
|
|
|
bool val)
|
|
@@ -738,6 +721,36 @@ ucfg_mlme_set_twt_bcast_responder(struct wlan_objmgr_psoc *psoc,
|
|
|
|
|
|
return QDF_STATUS_SUCCESS;
|
|
|
}
|
|
|
+
|
|
|
+QDF_STATUS
|
|
|
+ucfg_mlme_set_twt_bcast_requestor_tgt_cap(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool val)
|
|
|
+{
|
|
|
+ struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
|
|
+
|
|
|
+ mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
|
|
+ if (!mlme_obj)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
+ mlme_obj->cfg.twt_cfg.bcast_requestor_tgt_cap = val;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
+
|
|
|
+QDF_STATUS
|
|
|
+ucfg_mlme_set_twt_bcast_responder_tgt_cap(struct wlan_objmgr_psoc *psoc,
|
|
|
+ bool val)
|
|
|
+{
|
|
|
+ struct wlan_mlme_psoc_ext_obj *mlme_obj;
|
|
|
+
|
|
|
+ mlme_obj = mlme_get_psoc_ext_obj(psoc);
|
|
|
+ if (!mlme_obj)
|
|
|
+ return QDF_STATUS_E_INVAL;
|
|
|
+
|
|
|
+ mlme_obj->cfg.twt_cfg.bcast_responder_tgt_cap = val;
|
|
|
+
|
|
|
+ return QDF_STATUS_SUCCESS;
|
|
|
+}
|
|
|
#endif
|
|
|
|
|
|
QDF_STATUS
|