wlan: Fixed to avoid overwriting of dynamic sap
Fixed to avoid overwriting of dynamic sap channel range values from ini
during sap initialization
Change-Id: I51ef77ed7e9963825c5bf178e126b6b3de77c552
CR-Fixed: 421645
(cherry picked from commit 543172b8bfce7de0dbfccb4e864c9b31ae0f0b92)
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 1c6e7f0..6075341 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -1354,6 +1354,7 @@
v_CONTEXT_t pVosContext = (WLAN_HDD_GET_CTX(pHostapdAdapter))->pvosContext;
struct qc_mac_acl_entry *acl_entry = NULL;
v_SINT_t i;
+ hdd_context_t *pHddCtx = WLAN_HDD_GET_CTX(pHostapdAdapter);
ENTER();
@@ -1410,8 +1411,14 @@
*/
else
{
- hdd_config_t *hdd_pConfig= (WLAN_HDD_GET_CTX(pHostapdAdapter))->cfg_ini;
- WLANSAP_SetChannelRange(hHal,hdd_pConfig->apStartChannelNum,hdd_pConfig->apEndChannelNum,hdd_pConfig->apOperatingBand);
+ if(1 != pHddCtx->is_dynamic_channel_range_set)
+ {
+ hdd_config_t *hdd_pConfig= (WLAN_HDD_GET_CTX(pHostapdAdapter))->cfg_ini;
+ WLANSAP_SetChannelRange(hHal, hdd_pConfig->apStartChannelNum,
+ hdd_pConfig->apEndChannelNum,hdd_pConfig->apOperatingBand);
+ }
+
+ pHddCtx->is_dynamic_channel_range_set = 0;
}
}
else