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
This commit is contained in:

committed by
snandini

parent
ab088faa4a
commit
02fbc093ed
@@ -1674,6 +1674,7 @@ QDF_STATUS hdd_hostapd_sap_event_cb(tpSap_Event pSapEvent,
|
|||||||
|
|
||||||
dfs_info.channel = ap_ctx->operating_channel;
|
dfs_info.channel = ap_ctx->operating_channel;
|
||||||
sme_get_country_code(hdd_ctx->hHal, dfs_info.country_code, &cc_len);
|
sme_get_country_code(hdd_ctx->hHal, dfs_info.country_code, &cc_len);
|
||||||
|
staId = pSapEvent->sapevt.sapStartBssCompleteEvent.staId;
|
||||||
|
|
||||||
switch (sapEvent) {
|
switch (sapEvent) {
|
||||||
case eSAP_START_BSS_EVENT:
|
case eSAP_START_BSS_EVENT:
|
||||||
|
Reference in New Issue
Block a user