Set mwifiex default mode to AP.
(based on 36e9ce9c2e8795a750fb648174834d9cc92ece5f but half applied already)
Change-Id: Id2fe6d61ffd6b00295ae46576b15504b20020620
diff --git a/drivers/net/wireless/marvell/mwifiex/main.c b/drivers/net/wireless/marvell/mwifiex/main.c
index 5811abb..2eda407c 100644
--- a/drivers/net/wireless/marvell/mwifiex/main.c
+++ b/drivers/net/wireless/marvell/mwifiex/main.c
@@ -581,12 +581,12 @@
}
rtnl_lock();
- /* Create station interface by default */
+ /* Create AP interface by default for Google Fiber */
wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", NET_NAME_ENUM,
- NL80211_IFTYPE_STATION, NULL, NULL);
+ NL80211_IFTYPE_AP, NULL, NULL);
if (IS_ERR(wdev)) {
mwifiex_dbg(adapter, ERROR,
- "cannot create default STA interface\n");
+ "cannot create default AP interface\n");
rtnl_unlock();
goto err_add_intf;
}