Przeglądaj źródła

qcacld-3.0: Change signature of mgmt rx frame related APIs

Change signature of pe_handle_mgmt_frame, wma_form_rx_packet
and wma_mgmt_rx_process APIs by replacing rx params of type
void pointer with that of struct mgmt_rx_event_params pointer.

Change-Id: Idfa54f1c9bfec22a2cf2e98740765dcd797513df
CRs-Fixed: 1103247
Himanshu Agarwal 8 lat temu
rodzic
commit
d2e6cde42e
3 zmienionych plików z 7 dodań i 6 usunięć
  1. 1 1
      core/mac/src/pe/lim/lim_api.c
  2. 1 1
      core/wma/inc/wma.h
  3. 5 4
      core/wma/src/wma_mgmt.c

+ 1 - 1
core/mac/src/pe/lim/lim_api.c

@@ -1026,7 +1026,7 @@ QDF_STATUS pe_mc_process_handler(struct scheduler_msg *msg)
  */
  */
 static QDF_STATUS pe_handle_mgmt_frame(struct wlan_objmgr_psoc *psoc,
 static QDF_STATUS pe_handle_mgmt_frame(struct wlan_objmgr_psoc *psoc,
 			struct wlan_objmgr_peer *peer, qdf_nbuf_t buf,
 			struct wlan_objmgr_peer *peer, qdf_nbuf_t buf,
-			void *mgmt_rx_params,
+			struct mgmt_rx_event_params *mgmt_rx_params,
 			uint32_t frm_type)
 			uint32_t frm_type)
 {
 {
 	tpAniSirGlobal pMac;
 	tpAniSirGlobal pMac;

+ 1 - 1
core/wma/inc/wma.h

@@ -2342,7 +2342,7 @@ int wma_peer_rx_reorder_queue_remove(void *scn_handle,
  * Return: 0 for success or error code
  * Return: 0 for success or error code
  */
  */
 int wma_form_rx_packet(qdf_nbuf_t buf,
 int wma_form_rx_packet(qdf_nbuf_t buf,
-			void *mgmt_rx_params,
+			struct mgmt_rx_event_params *mgmt_rx_params,
 			cds_pkt_t *rx_pkt);
 			cds_pkt_t *rx_pkt);
 
 
 /**
 /**

+ 5 - 4
core/wma/src/wma_mgmt.c

@@ -3171,11 +3171,9 @@ end:
 }
 }
 
 
 int wma_form_rx_packet(qdf_nbuf_t buf,
 int wma_form_rx_packet(qdf_nbuf_t buf,
-			void *params,
+			struct mgmt_rx_event_params *mgmt_rx_params,
 			cds_pkt_t *rx_pkt)
 			cds_pkt_t *rx_pkt)
 {
 {
-	wmi_host_mgmt_rx_hdr *mgmt_rx_params =
-				(wmi_host_mgmt_rx_hdr *)params;
 	struct wma_txrx_node *iface = NULL;
 	struct wma_txrx_node *iface = NULL;
 	uint8_t vdev_id = WMA_INVALID_VDEV_ID;
 	uint8_t vdev_id = WMA_INVALID_VDEV_ID;
 	struct ieee80211_frame *wh;
 	struct ieee80211_frame *wh;
@@ -3362,7 +3360,7 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
 				  uint32_t data_len)
 				  uint32_t data_len)
 {
 {
 	tp_wma_handle wma_handle = (tp_wma_handle) handle;
 	tp_wma_handle wma_handle = (tp_wma_handle) handle;
-	wmi_host_mgmt_rx_hdr *mgmt_rx_params;
+	struct mgmt_rx_event_params *mgmt_rx_params;
 	struct wlan_objmgr_psoc *psoc;
 	struct wlan_objmgr_psoc *psoc;
 	uint8_t *bufp;
 	uint8_t *bufp;
 	qdf_nbuf_t wbuf;
 	qdf_nbuf_t wbuf;
@@ -3386,6 +3384,9 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data,
 		return -EINVAL;
 		return -EINVAL;
 	}
 	}
 
 
+	mgmt_rx_params->pdev_id = 0;
+	mgmt_rx_params->rx_params = NULL;
+
 	wbuf = qdf_nbuf_alloc(NULL, roundup(mgmt_rx_params->buf_len, 4),
 	wbuf = qdf_nbuf_alloc(NULL, roundup(mgmt_rx_params->buf_len, 4),
 				0, 4, false);
 				0, 4, false);
 	if (!wbuf) {
 	if (!wbuf) {