]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
mwifiex: Start P2P devices in P2P mode
authorPaul Stewart <pstew@chromium.org>
Fri, 19 Apr 2013 15:37:46 +0000 (08:37 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Apr 2013 19:20:27 +0000 (15:20 -0400)
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>
drivers/net/wireless/mwifiex/cfg80211.c

index 47012947a447b7af836d2355ac5bc55148ba5393..8c468c30b2d9a298718f2926443f494a6694c357 100644 (file)
@@ -2136,10 +2136,9 @@ struct wireless_dev *mwifiex_add_virtual_intf(struct wiphy *wiphy,
 
                /* At start-up, wpa_supplicant tries to change the interface
                 * to NL80211_IFTYPE_STATION if it is not managed mode.
-                * So, we initialize it to STA mode.
                 */
-               wdev->iftype = NL80211_IFTYPE_STATION;
-               priv->bss_mode = NL80211_IFTYPE_STATION;
+               wdev->iftype = NL80211_IFTYPE_P2P_CLIENT;
+               priv->bss_mode = NL80211_IFTYPE_P2P_CLIENT;
 
                /* Setting bss_type to P2P tells firmware that this interface
                 * is receiving P2P peers found during find phase and doing