wlan: HDD: Read operatingBand from cfg instead of ini

When iwpriv cmd is used to set the apOperatingBand and channel
range, it does not update the INI param apOperatingBand  but
updates cfg param WNI_CFG_SAP_CHANNEL_SELECT_OPERATING_BAND.
During start BSS the value of operatingBand is taken from INI.

Read the operatingBand value from cfg instead of
INI parameter during startBSS.

Crs-Fixed: 664886

Change-Id: Ia930a4b069c2026b932e1524b63498e40d18d438
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index aed08c9..05dd615 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -2217,7 +2217,9 @@
          (sme_IsFeatureSupportedByDriver(DOT11AC)) &&
           (sme_IsFeatureSupportedByFW(DOT11AC)) )
     {
+        v_U32_t operatingBand = 0;
         pConfig->SapHw_mode = eSAP_DOT11_MODE_11ac;
+        ccmCfgGetInt(hHal, WNI_CFG_SAP_CHANNEL_SELECT_OPERATING_BAND, &operatingBand);
 
         /* If ACS disable and selected channel <= 14
          *  OR
@@ -2229,9 +2231,11 @@
          */
         if (((AUTO_CHANNEL_SELECT != pConfig->channel && pConfig->channel <= SIR_11B_CHANNEL_END)
                     || (AUTO_CHANNEL_SELECT == pConfig->channel &&
-            iniConfig->apOperatingBand == RF_SUBBAND_2_4_GHZ)) &&
+            operatingBand == RF_SUBBAND_2_4_GHZ)) &&
                 iniConfig->enableVhtFor24GHzBand == FALSE)
         {
+            hddLog(LOGW, FL("Setting hwmode to 11n, operatingBand = %d, Channel = %d"),
+                    operatingBand, pConfig->channel);
             pConfig->SapHw_mode = eSAP_DOT11_MODE_11n;
         }
     }