qcacmn: pass correct argument to qdf_nbuf_alloc

till date we were passing wrong argument to qdfnbuf_alloc
now we are passing the right argument.

Change-Id: Ie3ee8f1d870b410cbea3236d2fa42ae035a67e0f
This commit is contained in:
Tallapragada Kalyan 2017-11-14 12:26:41 +05:30 • committed by snandini
commit a867edf5ee
4 changed files with 5 additions and 6 deletions

View file

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

View file

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

View file

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

View file

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