wlan: advertise ADHOC support to cfg80211
Currently the WLAN driver does not advertise that it can support any
interfaces of type NL80211_IFTYPE_ADHOC. This prevents IBSS from
working via cfg80211. Add NL80211_IFTYPE_ADHOC as a supported mode
which is mutually exclusive with AP mode. In addition add an
NL80211_IFTYPE_ADHOC entry to the wlan_hdd_txrx_stypes table.
Change-Id: I0900eee1265b74545086c94198602627cc404590
CRs-fixed: 477796
diff --git a/CORE/HDD/src/wlan_hdd_cfg80211.c b/CORE/HDD/src/wlan_hdd_cfg80211.c
index 42d4c7a..9e4a358 100644
--- a/CORE/HDD/src/wlan_hdd_cfg80211.c
+++ b/CORE/HDD/src/wlan_hdd_cfg80211.c
@@ -322,6 +322,16 @@
BIT(SIR_MAC_MGMT_DEAUTH) |
BIT(SIR_MAC_MGMT_ACTION),
},
+ [NL80211_IFTYPE_ADHOC] = {
+ .tx = 0xffff,
+ .rx = BIT(SIR_MAC_MGMT_ASSOC_REQ) |
+ BIT(SIR_MAC_MGMT_REASSOC_REQ) |
+ BIT(SIR_MAC_MGMT_PROBE_REQ) |
+ BIT(SIR_MAC_MGMT_DISASSOC) |
+ BIT(SIR_MAC_MGMT_AUTH) |
+ BIT(SIR_MAC_MGMT_DEAUTH) |
+ BIT(SIR_MAC_MGMT_ACTION),
+ },
[NL80211_IFTYPE_P2P_CLIENT] = {
.tx = 0xffff,
.rx = BIT(SIR_MAC_MGMT_ACTION) |
@@ -367,7 +377,7 @@
},
{
.max = 1,
- .types = BIT(NL80211_IFTYPE_AP),
+ .types = BIT(NL80211_IFTYPE_ADHOC) | BIT(NL80211_IFTYPE_AP),
},
{
.max = 1,