Forráskód Böngészése

qcacmn: Add support to handle PEER_OPER_MODE_CHANGE event

Firmware sends PEER_OPER_MODE_CHANGE event to host in SAP
mode when a connected client indicates upgrade/downgrade
of its bandwidth.
Host needs this data as any further SAP bandwidth
upgrade/downgrade should honor the indicated bandwidth for
that specific peer.

Change-Id: If15f491fd970486d8e84d1845866688d837ea2b4
CRs-Fixed: 3604865
Vijay Patil 1 éve
szülő
commit
0adf2938cc

+ 1 - 0
wmi/inc/wmi_unified_param.h

@@ -5357,6 +5357,7 @@ typedef enum {
 #ifdef WLAN_RCC_ENHANCED_AOA_SUPPORT
 	wmi_pdev_enhanced_aoa_phasedelta_eventid,
 #endif
+	wmi_peer_oper_mode_change_event_id,
 	wmi_events_max,
 } wmi_conv_event_id;
 

+ 6 - 0
wmi/inc/wmi_unified_priv.h

@@ -88,6 +88,7 @@
 
 #ifdef WLAN_FEATURE_ROAM_OFFLOAD
 #include <wlan_cm_roam_public_struct.h>
+#include <wlan_mlme_public_struct.h>
 #endif
 
 #ifdef WMI_AP_SUPPORT
@@ -508,6 +509,11 @@ QDF_STATUS
 				 uint8_t *num_keys,
 				 struct qdf_mac_addr *mld_addr);
 #endif
+
+QDF_STATUS
+(*extract_peer_oper_mode_event)(wmi_unified_t wmi_handle,
+				uint8_t *event, uint32_t data_len,
+				struct peer_oper_mode_event *data);
 #endif
 
 #ifdef FEATURE_MEC_OFFLOAD

+ 2 - 0
wmi/src/wmi_unified_tlv.c

@@ -21761,6 +21761,8 @@ static void populate_tlv_events_id(WMI_EVT_ID *event_ids)
 					WMI_PEER_DELETE_RESP_EVENTID;
 	event_ids[wmi_peer_delete_all_response_event_id] =
 					WMI_VDEV_DELETE_ALL_PEER_RESP_EVENTID;
+	event_ids[wmi_peer_oper_mode_change_event_id] =
+					WMI_PEER_OPER_MODE_CHANGE_EVENTID;
 	event_ids[wmi_mgmt_rx_event_id] = WMI_MGMT_RX_EVENTID;
 	event_ids[wmi_host_swba_event_id] = WMI_HOST_SWBA_EVENTID;
 	event_ids[wmi_tbttoffset_update_event_id] =