|
@@ -26,6 +26,7 @@
|
|
|
#include "wlan_hdd_twt.h"
|
|
|
#include "wlan_hdd_main.h"
|
|
|
#include "wlan_hdd_cfg.h"
|
|
|
+#include "cfg_api.h"
|
|
|
|
|
|
void hdd_twt_print_ini_config(struct hdd_context *hdd_ctx)
|
|
|
{
|
|
@@ -35,3 +36,27 @@ void hdd_twt_print_ini_config(struct hdd_context *hdd_ctx)
|
|
|
hdd_ctx->config->twt_congestion_timeout);
|
|
|
}
|
|
|
|
|
|
+void hdd_update_tgt_twt_cap(struct hdd_context *hdd_ctx,
|
|
|
+ struct wma_tgt_cfg *cfg)
|
|
|
+{
|
|
|
+ struct wma_tgt_services *services = &cfg->services;
|
|
|
+
|
|
|
+ hdd_debug("TWT: enable_twt=%d, tgt Req=%d, Res=%d",
|
|
|
+ hdd_ctx->config->enable_twt, services->twt_requestor,
|
|
|
+ services->twt_responder);
|
|
|
+
|
|
|
+ sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TWT_REQUESTOR,
|
|
|
+ QDF_MIN(services->twt_requestor,
|
|
|
+ hdd_ctx->config->enable_twt));
|
|
|
+
|
|
|
+ sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_TWT_RESPONDER,
|
|
|
+ QDF_MIN(services->twt_responder,
|
|
|
+ hdd_ctx->config->enable_twt));
|
|
|
+
|
|
|
+ /*
|
|
|
+ * Currently broadcast TWT is not supported
|
|
|
+ */
|
|
|
+ sme_cfg_set_int(hdd_ctx->hHal, WNI_CFG_BCAST_TWT,
|
|
|
+ QDF_MIN(0, hdd_ctx->config->enable_twt));
|
|
|
+}
|
|
|
+
|