From 02fbc093edac0c65974c2697d83eb488b36a6489 Mon Sep 17 00:00:00 2001 From: Sourav Mohapatra Date: Mon, 8 Jan 2018 17:11:07 +0530 Subject: [PATCH] qcacld-3.0: Initialize uninitialized variable staId In function hdd_hostapd_sap_event_cb the variable staId is not initialized and used as an index element. Initialize the variable staId Change-Id: Ifef98b8c8cfa2ea63c31a5fc54986a4d016ee70a CRs-Fixed: 2162255 --- core/hdd/src/wlan_hdd_hostapd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_hostapd.c b/core/hdd/src/wlan_hdd_hostapd.c index 0da23b274ca0..dcbbf168aa1f 100644 --- a/core/hdd/src/wlan_hdd_hostapd.c +++ b/core/hdd/src/wlan_hdd_hostapd.c @@ -1674,6 +1674,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent, dfs_info.channel = ap_ctx->operating_channel; sme_get_country_code(hdd_ctx->hHal, dfs_info.country_code, &cc_len); + staId = pSapEvent->sapevt.sapStartBssCompleteEvent.staId; switch (sapEvent) { case eSAP_START_BSS_EVENT: