projects
/
mech_eap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6dcfcd
)
nl80211: Add support for P2P Device in add interface
author
David Spinadel
<david.spinadel@intel.com>
Tue, 25 Jun 2013 10:36:04 +0000
(13:36 +0300)
committer
Jouni Malinen
<j@w1.fi>
Tue, 25 Jun 2013 10:36:04 +0000
(13:36 +0300)
Don't try to assign ifindex for P2P Device interface.
Signed-off-by: David Spinadel <david.spinadel@intel.com>
src/drivers/driver_nl80211.c
patch
|
blob
|
history
diff --git
a/src/drivers/driver_nl80211.c
b/src/drivers/driver_nl80211.c
index
cc03c72
..
a9a9c4a
100644
(file)
--- a/
src/drivers/driver_nl80211.c
+++ b/
src/drivers/driver_nl80211.c
@@
-6613,6
+6613,13
@@
static int nl80211_create_iface_once(struct wpa_driver_nl80211_data *drv,
return ret;
}
+ if (iftype == NL80211_IFTYPE_P2P_DEVICE) {
+ wpa_printf(MSG_DEBUG,
+ "nl80211: New P2P Device interface %s created",
+ ifname);
+ return 0;
+ }
+
ifidx = if_nametoindex(ifname);
wpa_printf(MSG_DEBUG, "nl80211: New interface %s created: ifindex=%d",
ifname, ifidx);