mwifiex: create an AP interface instead of STA interface
hostapd doesn't know how to do this automatically.
backports-0200-mwifiex-interface-creation.patch
Change-Id: I40c34bd056dc3bb5a49a443b5dd334cadac9ab01
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index 2ef1ec1..5fe0574 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -517,11 +517,11 @@
}
rtnl_lock();
- /* Create station interface by default */
- wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", NET_NAME_ENUM,
- NL80211_IFTYPE_STATION, NULL, NULL);
+ /* Create AP interface by default for Google Fiber TV Box */
+ wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", NET_NAME_ENUM,
+ NL80211_IFTYPE_AP, NULL, NULL);
if (IS_ERR(wdev)) {
- dev_err(adapter->dev, "cannot create default STA interface\n");
+ dev_err(adapter->dev, "cannot create default AP interface\n");
rtnl_unlock();
goto err_add_intf;
}