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
This commit is contained in:
Himanshu Agarwal 2017-01-10 14:47:04 +05:30 • committed by qcabuildsw
commit d2e6cde42e
3 changed files with 7 additions and 6 deletions

View file

@ -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;

View file

@ -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);
/**

View file

@ -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) {