diff --git a/dp/wifi3.0/dp_rx.c b/dp/wifi3.0/dp_rx.c index c182f9ee49fa..c59c09c6576a 100644 --- a/dp/wifi3.0/dp_rx.c +++ b/dp/wifi3.0/dp_rx.c @@ -157,7 +157,7 @@ QDF_STATUS dp_rx_buffers_replenish(struct dp_soc *dp_soc, uint32_t mac_id, count = 0; while (count < num_req_buffers) { - rx_netbuf = qdf_nbuf_alloc(dp_pdev->osif_pdev, + rx_netbuf = qdf_nbuf_alloc(dp_soc->osdev, RX_BUFFER_SIZE, RX_BUFFER_RESERVATION, RX_BUFFER_ALIGNMENT, diff --git a/dp/wifi3.0/dp_rx.h b/dp/wifi3.0/dp_rx.h index 30906318d4e1..e7e09ed9e04b 100644 --- a/dp/wifi3.0/dp_rx.h +++ b/dp/wifi3.0/dp_rx.h @@ -462,7 +462,7 @@ static inline int check_x86_paddr(struct dp_soc *dp_soc, qdf_nbuf_t *rx_netbuf, **/ } - *rx_netbuf = qdf_nbuf_alloc(pdev->osif_pdev, + *rx_netbuf = qdf_nbuf_alloc(dp_soc->osdev, RX_BUFFER_SIZE, RX_BUFFER_RESERVATION, RX_BUFFER_ALIGNMENT, diff --git a/dp/wifi3.0/dp_rx_mon_dest.c b/dp/wifi3.0/dp_rx_mon_dest.c index 704e4bc3bd9e..2d8314b9e8dd 100644 --- a/dp/wifi3.0/dp_rx_mon_dest.c +++ b/dp/wifi3.0/dp_rx_mon_dest.c @@ -327,7 +327,6 @@ qdf_nbuf_t dp_rx_mon_restitch_mpdu_from_msdus(struct dp_soc *soc, uint32_t mac_id, qdf_nbuf_t head_msdu, qdf_nbuf_t last_msdu, struct cdp_mon_status *rx_status) { - struct dp_pdev *dp_pdev = soc->pdev_list[mac_id]; qdf_nbuf_t msdu, mpdu_buf, prev_buf, msdu_orig, head_frag_list; uint32_t decap_format, wifi_hdr_len, sec_hdr_len, msdu_llc_len, mpdu_buf_len, decap_hdr_pull_bytes, frag_list_sum_len, dir, @@ -477,7 +476,7 @@ qdf_nbuf_t dp_rx_mon_restitch_mpdu_from_msdus(struct dp_soc *soc, * accomodating any radio-tap /prism like PHY header */ #define MAX_MONITOR_HEADER (512) - mpdu_buf = qdf_nbuf_alloc(dp_pdev->osif_pdev, + mpdu_buf = qdf_nbuf_alloc(soc->osdev, MAX_MONITOR_HEADER + mpdu_buf_len, MAX_MONITOR_HEADER, 4, FALSE); diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 171fbaff5c18..b31fab379b74 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -184,7 +184,7 @@ dp_rx_handle_ppdu_stats(struct dp_soc *soc, struct dp_pdev *pdev, struct dp_peer *peer; struct cdp_rx_indication_ppdu *cdp_rx_ppdu; - ppdu_nbuf = qdf_nbuf_alloc(pdev->osif_pdev, + ppdu_nbuf = qdf_nbuf_alloc(soc->osdev, sizeof(struct hal_rx_ppdu_info), 0, 0, FALSE); if (ppdu_nbuf) { dp_rx_populate_cdp_indication_ppdu(soc, ppdu_info, ppdu_nbuf); @@ -384,7 +384,7 @@ dp_rx_mon_status_srng_process(struct dp_soc *soc, uint32_t mac_id, } /* Allocate a new skb */ - status_nbuf = qdf_nbuf_alloc(pdev->osif_pdev, RX_BUFFER_SIZE, + status_nbuf = qdf_nbuf_alloc(soc->osdev, RX_BUFFER_SIZE, RX_BUFFER_RESERVATION, RX_BUFFER_ALIGNMENT, FALSE); status_buf = qdf_nbuf_data(status_nbuf);