summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.c
diff options
context:
space:
mode:
authorStone Piao2012-09-26 05:23:40 +0200
committerJohn W. Linville2012-09-28 19:54:05 +0200
commit197f4a2ec99dd3a70b27fba7e827d1fa98114ce3 (patch)
tree44c1f4c17a8c8b1d2482bdb480c3c75a549f560d /drivers/net/wireless/mwifiex/main.c
parentmwifiex: send firmware initialization commands synchronously (diff)
downloadkernel-qcow2-linux-197f4a2ec99dd3a70b27fba7e827d1fa98114ce3.tar.gz
kernel-qcow2-linux-197f4a2ec99dd3a70b27fba7e827d1fa98114ce3.tar.xz
kernel-qcow2-linux-197f4a2ec99dd3a70b27fba7e827d1fa98114ce3.zip
mwifiex: add P2P interface
Due to firmware design, driver needs to add a default P2P interface to implement find phase and action frame handshake. Signed-off-by: Stone Piao <piaoyun@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.c')
-rw-r--r--drivers/net/wireless/mwifiex/main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index 3bb3417932d0..eb22dd248d54 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -369,6 +369,13 @@ static void mwifiex_fw_dpc(const struct firmware *firmware, void *context)
dev_err(adapter->dev, "cannot create default AP interface\n");
goto err_add_intf;
}
+
+ /* Create P2P interface by default */
+ if (!mwifiex_add_virtual_intf(adapter->wiphy, "p2p%d",
+ NL80211_IFTYPE_P2P_CLIENT, NULL, NULL)) {
+ dev_err(adapter->dev, "cannot create default P2P interface\n");
+ goto err_add_intf;
+ }
rtnl_unlock();
mwifiex_drv_get_driver_version(adapter, fmt, sizeof(fmt) - 1);