Explorar o código

qcacmn: Add twt req and responder flags in peer assoc params

WMI_PEER_TWT_REQ and WMI_PEER_TWT_RESP flags are introduced in peer
flags sent to FW in PEER_ASSOC_CMD. Add corresponding flags in host
structure to indicate peer's support for TWT requester and TWT
responder.

Change-Id: Ic5edb594a95b255fe8ce1091d96c4d886b4d6170
CRs-Fixed: 2290026
Kiran Venkatappa %!s(int64=7) %!d(string=hai) anos
pai
achega
54c2afd28b
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      wmi_unified_tlv.c

+ 6 - 0
wmi_unified_tlv.c

@@ -2313,6 +2313,12 @@ static inline void copy_peer_flags_tlv(
 	 **/
 	if (param->peer_ht_rates.num_rates == 0)
 		cmd->peer_flags &= ~WMI_PEER_HT;
+
+	if (param->twt_requester)
+		cmd->peer_flags |= WMI_PEER_TWT_REQ;
+
+	if (param->twt_responder)
+		cmd->peer_flags |= WMI_PEER_TWT_RESP;
 }
 #endif