From 4017ed37d7d190f90cf997d70ba61ba7ccd7d3ce Mon Sep 17 00:00:00 2001 From: Srinivas Girigowda Date: Mon, 26 Jan 2015 16:17:38 -0800 Subject: qcacld: EXTSCAN: Fix to pass the correct available "number_of_results" Currently, in extscan table usage handler; the number of results available is always set to maximum_entries received from the firmware. This maximum_entries is max supported entries which is a constant value, instead we should be using 'entries_in_use' which represents the current number of results available. Hence, fix the code by replacing 'maximum_entries' with 'entries_in_use'. Change-Id: I1f955d2066dce3355922fff61ed2820ae65066de CRs-Fixed: 786867 --- CORE/SERVICES/WMA/wma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index b3d77fd73bae..74e1e911a183 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -2744,7 +2744,7 @@ static int wma_extscan_table_usage_event_handler (void *handle, return -EINVAL; } tbl_usg_ind->requestId = event->request_id; - tbl_usg_ind->numResultsAvailable = event->maximum_entries; + tbl_usg_ind->numResultsAvailable = event->entries_in_use; pMac->sme.pExtScanIndCb(pMac->hHdd, eSIR_EXTSCAN_SCAN_RES_AVAILABLE_IND, -- cgit v1.2.3