From 2659349a98f0261ac255ea91c02a21202ed20a43 Mon Sep 17 00:00:00 2001 From: Adesh Keremane Date: Mon, 13 Feb 2017 19:03:34 +0530 Subject: qcacld-2.0: Fix for crash observed while starting SAP During ACS while calculating channel weight, using auto_channel_select_weight without initialization led to divide error. Set auto_channel_select_weight in pConfig to the value mentioned in the ini file in wlan_hdd_cfg80211_start_bss. Change-Id: I4de657dd624dd71f12ccb8beec7e90a6051fb384 CRs-Fixed: 2006314 --- CORE/HDD/src/wlan_hdd_cfg80211.c | 1 + 1 file changed, 1 insertion(+) diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c index 34b3e17e607f..f1f1c05ba40f 100644 --- a/CORE/HDD/src/wlan_hdd_cfg80211.c +++ b/CORE/HDD/src/wlan_hdd_cfg80211.c @@ -15858,6 +15858,7 @@ static int wlan_hdd_cfg80211_start_bss(hdd_adapter_t *pHostapdAdapter, break; } + pConfig->auto_channel_select_weight = iniConfig->auto_channel_select_weight; //channel is already set in the set_channel Call back //pConfig->channel = pCommitConfig->channel; -- cgit v1.2.3