diff --git a/core/mac/src/pe/lim/lim_api.c b/core/mac/src/pe/lim/lim_api.c index 3e8a332876df..6ffcf6ac1e7f 100644 --- a/core/mac/src/pe/lim/lim_api.c +++ b/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, 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) { tpAniSirGlobal pMac; diff --git a/core/wma/inc/wma.h b/core/wma/inc/wma.h index a2e43ee6e27f..a84021ad9910 100644 --- a/core/wma/inc/wma.h +++ b/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 */ 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); /** diff --git a/core/wma/src/wma_mgmt.c b/core/wma/src/wma_mgmt.c index d971d3249ffa..84870a3e8e10 100644 --- a/core/wma/src/wma_mgmt.c +++ b/core/wma/src/wma_mgmt.c @@ -3171,11 +3171,9 @@ end: } int wma_form_rx_packet(qdf_nbuf_t buf, - void *params, + struct mgmt_rx_event_params *mgmt_rx_params, 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; uint8_t vdev_id = WMA_INVALID_VDEV_ID; struct ieee80211_frame *wh; @@ -3362,7 +3360,7 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data, uint32_t data_len) { 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; uint8_t *bufp; qdf_nbuf_t wbuf; @@ -3386,6 +3384,9 @@ static int wma_mgmt_rx_process(void *handle, uint8_t *data, 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), 0, 4, false); if (!wbuf) {