Kaynağa Gözat

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
Sourav Mohapatra 7 yıl önce
ebeveyn
işleme
02fbc093ed
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      core/hdd/src/wlan_hdd_hostapd.c

+ 1 - 0
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: