aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Stewart <pstew@chromium.org>2013-04-19 11:37:46 -0400
committerJohn W. Linville <linville@tuxdriver.com>2013-04-22 15:20:27 -0400
commit5586d3e2f211a7c9c1d5fd639c88c8479b78a13d (patch)
treeb557eadec5c5b0de0cdf5505f9ffa2a014da10c7
parentec9c498991880b387e4783a6eb071ed8d01e45a3 (diff)
mwifiex: Start P2P devices in P2P mode
p2p devices should identify themselves as such to userspace at startup, so the connection manager can decide which interface to start wpa_supplicant instances on. Signed-off-by: Paul Stewart <pstew@chromium.org> Reviewed-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/mwifiex/cfg80211.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
index 47012947a447..8c468c30b2d9 100644
--- a/drivers/net/wireless/mwifiex/cfg80211.c
+++ b/drivers/net/wireless/mwifiex/cfg80211.c
@@ -2136,10 +2136,9 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
2136 2136
2137 /* At start-up, wpa_supplicant tries to change the interface 2137 /* At start-up, wpa_supplicant tries to change the interface
2138 * to NL80211_IFTYPE_STATION if it is not managed mode. 2138 * to NL80211_IFTYPE_STATION if it is not managed mode.
2139 * So, we initialize it to STA mode.
2140 */ 2139 */
2141 wdev->iftype = NL80211_IFTYPE_STATION; 2140 wdev->iftype = NL80211_IFTYPE_P2P_CLIENT;
2142 priv->bss_mode = NL80211_IFTYPE_STATION; 2141 priv->bss_mode = NL80211_IFTYPE_P2P_CLIENT;
2143 2142
2144 /* Setting bss_type to P2P tells firmware that this interface 2143 /* Setting bss_type to P2P tells firmware that this interface
2145 * is receiving P2P peers found during find phase and doing 2144 * is receiving P2P peers found during find phase and doing