From 98a8a833ab892981ed23cbd2c1394aa00050a29e Mon Sep 17 00:00:00 2001 From: Balaganapathy Palanisamy Date: Mon, 13 Feb 2023 16:28:42 +0530 Subject: [PATCH] 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 --- umac/cmn_services/inc/wlan_cmn.h | 2 ++ wmi/src/wmi_unified_tlv.c | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/umac/cmn_services/inc/wlan_cmn.h b/umac/cmn_services/inc/wlan_cmn.h index d4122f206e..5a9f8de3c7 100644 --- a/umac/cmn_services/inc/wlan_cmn.h +++ b/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, }; /** diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index 082e05b36a..b2ef90ade9 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/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