wlan: IBSS: Select proper cbmode if DOT11AC is not supported.

If dot11mode in INI file is auto/11ac and WLAN_FEATURE_11AC
is defined, the phymode is used as 11ac for selecting cbmode
even if DOT11AC feature is not supported by Driver/FW.
This leads to invalid cbmode selection and IBSS is
not started.

Adds a check to set phymode as 11ac during cbmode selection only
if DOT11AC feature is supported by Driver/FW.

CRs-Fixed: 703294

Change-Id: I08972cd25be9cfb6a351884aa10f720633dd9217
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 52fe2c6..a11ea25 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -9479,7 +9479,11 @@
        case eHDD_DOT11_MODE_11ac:
        case eHDD_DOT11_MODE_11ac_ONLY:
 #ifdef WLAN_FEATURE_11AC
-          hddDot11Mode = eHDD_DOT11_MODE_11ac;
+          if ( sme_IsFeatureSupportedByDriver(DOT11AC) &&
+               sme_IsFeatureSupportedByFW(DOT11AC) )
+              hddDot11Mode = eHDD_DOT11_MODE_11ac;
+          else
+              hddDot11Mode = eHDD_DOT11_MODE_11n;
 #else
           hddDot11Mode = eHDD_DOT11_MODE_11n;
 #endif