Wlan: Advertise HT IBSS feature capability to the wiphy layer.
Supplicant sends the channel info, such as channel is HT
or non-HT. If channel is not non-HT, the kernel allow the IBSS only
if driver supports the NL80211_FEATURE_HT_IBSS feature.
While registering wiphy, the driver doesnt set the feature leading to
IBSS failure.
Added NL80211_FEATURE_HT_IBSS feature in wiphy->features.
CRs-Fixed: 823921
Change-Id: I13113ae87db68de61ba1b0b675c003e9dff56c3a
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 366776e..9eadffe 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -5758,6 +5758,10 @@
}
#endif/*FEATURE_WLAN_SCAN_PNO*/
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0))
+ wiphy->features |= NL80211_FEATURE_HT_IBSS;
+#endif
+
#ifdef CONFIG_ENABLE_LINUX_REG
/* even with WIPHY_FLAG_CUSTOM_REGULATORY,
driver can still register regulatory callback and