qcacld-3.0: Use qdf_mem_malloc_atomic to process beacons

Use qdf_mem_malloc_atomic to allocate memory while processing
beacons to avoid delays.

Change-Id: I5cdbf02302e599559c4b90273912a81308e0e73a
CRs-Fixed: 2665830
This commit is contained in:
Utkarsh Bhatnagar
2020-04-16 05:06:26 +05:30
committed by nshrivas
parent 432d711970
commit 7fd7efd5ee
2 changed files with 3 additions and 3 deletions

View File

@@ -874,7 +874,7 @@ static QDF_STATUS lim_allocate_and_get_bcn(
tSchBeaconStruct *bcn_l = NULL; tSchBeaconStruct *bcn_l = NULL;
cds_pkt_t *pkt_l = NULL; cds_pkt_t *pkt_l = NULL;
pkt_l = qdf_mem_malloc(sizeof(cds_pkt_t)); pkt_l = qdf_mem_malloc_atomic(sizeof(cds_pkt_t));
if (!pkt_l) if (!pkt_l)
return QDF_STATUS_E_FAILURE; return QDF_STATUS_E_FAILURE;
@@ -885,7 +885,7 @@ static QDF_STATUS lim_allocate_and_get_bcn(
goto free; goto free;
} }
bcn_l = qdf_mem_malloc(sizeof(tSchBeaconStruct)); bcn_l = qdf_mem_malloc_atomic(sizeof(tSchBeaconStruct));
if (!bcn_l) if (!bcn_l)
goto free; goto free;

View File

@@ -4172,7 +4172,7 @@ sir_convert_beacon_frame2_struct(struct mac_context *mac,
/* Zero-init our [out] parameter, */ /* Zero-init our [out] parameter, */
qdf_mem_zero((uint8_t *) pBeaconStruct, sizeof(tSirProbeRespBeacon)); qdf_mem_zero((uint8_t *) pBeaconStruct, sizeof(tSirProbeRespBeacon));
pBeacon = qdf_mem_malloc(sizeof(tDot11fBeacon)); pBeacon = qdf_mem_malloc_atomic(sizeof(tDot11fBeacon));
if (!pBeacon) if (!pBeacon)
return QDF_STATUS_E_NOMEM; return QDF_STATUS_E_NOMEM;