@@ -941,6 +941,15 @@ enum wpa_driver_if_type {
WPA_IF_AP_BSS,
/**
+ * WPA_IF_P2P_DEV - P2P Device
+ *
+ * This interface has no network interface associated with it
+ * and shall be used for P2P management, ie. discovery, go negotiation,
+ * etc.
+ */
+ WPA_IF_P2P_DEV,
+
+ /**
* WPA_IF_P2P_GO - P2P Group Owner
*/
WPA_IF_P2P_GO,
@@ -362,7 +362,8 @@ static int is_sta_interface(enum nl80211_iftype nlmode)
static int is_p2p_interface(enum nl80211_iftype nlmode)
{
return (nlmode == NL80211_IFTYPE_P2P_CLIENT ||
- nlmode == NL80211_IFTYPE_P2P_GO);
+ nlmode == NL80211_IFTYPE_P2P_GO ||
+ nlmode == NL80211_IFTYPE_P2P_DEVICE);
}
@@ -8010,6 +8011,8 @@ static enum nl80211_iftype wpa_driver_nl80211_if_type(
return NL80211_IFTYPE_AP;
case WPA_IF_P2P_GO:
return NL80211_IFTYPE_P2P_GO;
+ case WPA_IF_P2P_DEV:
+ return NL80211_IFTYPE_P2P_DEVICE;
}
return -1;
}