Эх сурвалжийг харах

qcacmn: Smart Antenna Multi radio support

Smart Antenna WMI cganges to extract pdev_id from
WMI_PEER_RATECODE_LIST_EVENT data.

Change-Id: I726d7615c7c624b20c5bfd5ae3e82bcdc1a9ad28
CRs-Fixed: 2514500
Subrat Mishra 5 жил өмнө
parent
commit
3645c34060

+ 3 - 1
wmi/inc/wmi_unified_api.h

@@ -2457,13 +2457,15 @@ QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(
  * @wmi_handle: wmi handle
  * @evt_buf: pointer to event buffer
  * @peer_mac: Pointer to hold peer mac address
+ * @pdev_id: Pointer to hold pdev_id
  * @rate_cap: Pointer to hold ratecode
  *
  * Return: QDF_STATUS_SUCCESS on success and QDF_STATUS_E_FAILURE for failure
  */
 QDF_STATUS wmi_extract_peer_ratecode_list_ev(
 		wmi_unified_t wmi_handle, void *evt_buf,
-		uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
+		uint8_t *peer_mac, uint32_t *pdev_id,
+		wmi_sa_rate_cap *rate_cap);
 
 /**
  * wmi_extract_bcnflt_stats() - extract bcn fault stats from event

+ 3 - 1
wmi/inc/wmi_unified_priv.h

@@ -1521,7 +1521,9 @@ QDF_STATUS (*extract_peer_sta_kickout_ev)(wmi_unified_t wmi_handle,
 		void *evt_buf, wmi_host_peer_sta_kickout_event *ev);
 
 QDF_STATUS (*extract_peer_ratecode_list_ev)(wmi_unified_t wmi_handle,
-		void *evt_buf, uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap);
+					    void *evt_buf, uint8_t *peer_mac,
+					    uint32_t *pdev_id,
+					    wmi_sa_rate_cap *rate_cap);
 
 QDF_STATUS (*extract_comb_phyerr)(wmi_unified_t wmi_handle, void *evt_buf,
 	uint16_t datalen, uint16_t *buf_offset, wmi_host_phyerr_t *phyerr);

+ 2 - 2
wmi/src/wmi_unified_api.c

@@ -1951,12 +1951,12 @@ QDF_STATUS wmi_extract_pdev_generic_buffer_ev_param(
 
 QDF_STATUS wmi_extract_peer_ratecode_list_ev(
 		wmi_unified_t wmi_handle, void *evt_buf,
-		uint8_t *peer_mac, wmi_sa_rate_cap *rate_cap)
+		uint8_t *peer_mac, uint32_t *pdev_id, wmi_sa_rate_cap *rate_cap)
 {
 	if (wmi_handle->ops->extract_peer_ratecode_list_ev)
 		return wmi_handle->ops->extract_peer_ratecode_list_ev(
 						wmi_handle, evt_buf,
-						peer_mac, rate_cap);
+						peer_mac, pdev_id, rate_cap);
 
 	return QDF_STATUS_E_FAILURE;