| From d1ab7c70044e6ba7d58a601daf6cf0ce1b34f108 Mon Sep 17 00:00:00 2001 |
| From: Tim Shepard <shep@alum.mit.edu> |
| Date: Fri, 24 Jan 2014 03:06:54 -0500 |
| Subject: [PATCH 4/7] mwifiex: create an AP interface instead of STA interface. |
| |
| hostapd doesn't know how to do this automatically. |
| --- |
| drivers/net/wireless/mwifiex/main.c | 8 ++++---- |
| 1 file changed, 4 insertions(+), 4 deletions(-) |
| |
| diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c |
| index bde7266..f388167 100644 |
| --- a/drivers/net/wireless/mwifiex/main.c |
| +++ b/drivers/net/wireless/mwifiex/main.c |
| @@ -475,11 +475,11 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context) |
| } |
| |
| rtnl_lock(); |
| - /* Create station interface by default */ |
| - wdev = mwifiex_add_virtual_intf(adapter->wiphy, "mlan%d", |
| - NL80211_IFTYPE_STATION, NULL, NULL); |
| + /* Create AP interface by default for google fiber boxen */ |
| + wdev = mwifiex_add_virtual_intf(adapter->wiphy, "wlan%d", |
| + 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; |
| } |
| -- |
| 1.9.1.423.g4596e3a |
| |