Преглед изворни кода

qcacmn: Add peer type for MLO Bridge

Add peer type for MLO bridge peer. This is a special peer
created on 4-link MLO AP to allow association of some 2-link
MLO STAs.

Change-Id: Id2073ea82582ae67cae03b813d8f7bf44fde9aff
CRs-Fixed: 3412299
Balaganapathy Palanisamy пре 2 година
родитељ
комит
98a8a833ab
2 измењених фајлова са 6 додато и 1 уклоњено
  1. 2 0
      umac/cmn_services/inc/wlan_cmn.h
  2. 4 1
      wmi/src/wmi_unified_tlv.c

+ 2 - 0
umac/cmn_services/inc/wlan_cmn.h

@@ -631,6 +631,7 @@ enum wifi_traffic_ac {
  * @WLAN_PEER_NDP:      NDP Peer
  * @WLAN_PEER_MLO_TEMP: MLO Peer Temp (host only node)
  * @WLAN_PEER_RTT_PASN: Ranging PASN peer
+ * @WLAN_PEER_MLO_BRIDGE: MLO Bridge peer
  */
 enum wlan_peer_type {
 	WLAN_PEER_SELF     = 1,
@@ -645,6 +646,7 @@ enum wlan_peer_type {
 	WLAN_PEER_NDP      = 10,
 	WLAN_PEER_MLO_TEMP = 11,
 	WLAN_PEER_RTT_PASN = 12,
+	WLAN_PEER_MLO_BRIDGE = 13,
 };
 
 /**

+ 4 - 1
wmi/src/wmi_unified_tlv.c

@@ -1875,11 +1875,14 @@ static QDF_STATUS send_vdev_up_cmd_tlv(wmi_unified_t wmi,
 static uint32_t convert_peer_type_host_to_target(uint32_t peer_type)
 {
 	/* Host sets the peer_type as 0 for the peer create command sent to FW
-	 * other than PASN peer create command.
+	 * other than PASN and BRIDGE peer create command.
 	 */
 	if (peer_type == WLAN_PEER_RTT_PASN)
 		return WMI_PEER_TYPE_PASN;
 
+	if (peer_type == WLAN_PEER_MLO_BRIDGE)
+		return WMI_PEER_TYPE_BRIDGE;
+
 	return peer_type;
 }
 #else