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
Dieser Commit ist enthalten in:
Utkarsh Bhatnagar
2020-04-16 05:06:26 +05:30
committet von nshrivas
Ursprung 432d711970
Commit 7fd7efd5ee
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

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