瀏覽代碼

qcacmn: Add TWT requester/responder bits in soc caps

TWT requester/responder capability is reported by FW in service bitmap.
Based on this support set soc's extcap feature bit. This is used while
adding extended capabilities IE to set TWT REQ/RSP bits in IE.

Change-Id: I304e9fa4dc32bd3c2f47901bc34438cb188d138a
CRs-Fixed: 2290026
Kiran Venkatappa 6 年之前
父節點
當前提交
ef65ce37d7

+ 6 - 0
target_if/init_deinit/src/init_event_handler.c

@@ -101,6 +101,12 @@ static int init_deinit_service_ready_event_handler(ol_scn_t scn_handle,
 	if (wmi_service_enabled(wmi_handle, wmi_service_check_cal_version))
 		wlan_psoc_nif_fw_ext_cap_set(psoc, WLAN_SOC_CEXT_SW_CAL);
 
+	if (wmi_service_enabled(wmi_handle, wmi_service_twt_requestor))
+		wlan_psoc_nif_fw_ext_cap_set(psoc, WLAN_SOC_CEXT_TWT_REQUESTER);
+
+	if (wmi_service_enabled(wmi_handle, wmi_service_twt_responder))
+		wlan_psoc_nif_fw_ext_cap_set(psoc, WLAN_SOC_CEXT_TWT_RESPONDER);
+
 	target_if_debug(" TT support %d, Wide BW Scan %d, SW cal %d",
 		wlan_psoc_nif_fw_ext_cap_get(psoc, WLAN_SOC_CEXT_TT_SUPPORT),
 		wlan_psoc_nif_fw_ext_cap_get(psoc, WLAN_SOC_CEXT_WIDEBAND_SCAN),

+ 4 - 0
umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h

@@ -121,6 +121,10 @@
 #define WLAN_SOC_CEXT_WMI_MGMT_REF     0x00000800
 	/* Wideband scan */
 #define WLAN_SOC_CEXT_WIDEBAND_SCAN    0x00001000
+	/* TWT Requester capable */
+#define WLAN_SOC_CEXT_TWT_REQUESTER    0x00002000
+	/* TWT Responder capable */
+#define WLAN_SOC_CEXT_TWT_RESPONDER    0x00004000
 
 /* feature_flags */
 	/* CONF: ATH FF enabled */