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:

committed by
nshrivas

parent
432d711970
commit
7fd7efd5ee
@@ -874,7 +874,7 @@ static QDF_STATUS lim_allocate_and_get_bcn(
|
||||
tSchBeaconStruct *bcn_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)
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
|
||||
@@ -885,7 +885,7 @@ static QDF_STATUS lim_allocate_and_get_bcn(
|
||||
goto free;
|
||||
}
|
||||
|
||||
bcn_l = qdf_mem_malloc(sizeof(tSchBeaconStruct));
|
||||
bcn_l = qdf_mem_malloc_atomic(sizeof(tSchBeaconStruct));
|
||||
if (!bcn_l)
|
||||
goto free;
|
||||
|
||||
|
@@ -4172,7 +4172,7 @@ sir_convert_beacon_frame2_struct(struct mac_context *mac,
|
||||
/* Zero-init our [out] parameter, */
|
||||
qdf_mem_zero((uint8_t *) pBeaconStruct, sizeof(tSirProbeRespBeacon));
|
||||
|
||||
pBeacon = qdf_mem_malloc(sizeof(tDot11fBeacon));
|
||||
pBeacon = qdf_mem_malloc_atomic(sizeof(tDot11fBeacon));
|
||||
if (!pBeacon)
|
||||
return QDF_STATUS_E_NOMEM;
|
||||
|
||||
|
Reference in New Issue
Block a user