From 7fd7efd5eeadd98d70598033be81334b5c5d58b6 Mon Sep 17 00:00:00 2001 From: Utkarsh Bhatnagar Date: Thu, 16 Apr 2020 05:06:26 +0530 Subject: [PATCH] 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 --- core/mac/src/pe/lim/lim_process_message_queue.c | 4 ++-- core/mac/src/sys/legacy/src/utils/src/parser_api.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/mac/src/pe/lim/lim_process_message_queue.c b/core/mac/src/pe/lim/lim_process_message_queue.c index 762001187c06..a27a2406b37b 100644 --- a/core/mac/src/pe/lim/lim_process_message_queue.c +++ b/core/mac/src/pe/lim/lim_process_message_queue.c @@ -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; diff --git a/core/mac/src/sys/legacy/src/utils/src/parser_api.c b/core/mac/src/sys/legacy/src/utils/src/parser_api.c index 19776a222392..64efedc583bf 100644 --- a/core/mac/src/sys/legacy/src/utils/src/parser_api.c +++ b/core/mac/src/sys/legacy/src/utils/src/parser_api.c @@ -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;