@@ -844,6 +844,10 @@ struct wpa_driver_capa {
* P2P group operations.
*/
#define WPA_DRIVER_FLAGS_P2P_MGMT_AND_NON_P2P 0x00000008
+/*
+ * Driver supports creation of P2P Device for P2P management.
+ */
+#define WPA_DRIVER_FLAGS_P2P_DEVICE 0x00004000
unsigned int p2p_flags;
int max_scan_ssids;
@@ -2507,6 +2507,9 @@ static int wiphy_info_handler(struct nl_msg *msg, void *arg)
case NL80211_IFTYPE_AP:
capa->flags |= WPA_DRIVER_FLAGS_AP;
break;
+ case NL80211_IFTYPE_P2P_DEVICE:
+ capa->flags |= WPA_DRIVER_FLAGS_P2P_DEVICE;
+ break;
case NL80211_IFTYPE_P2P_GO:
p2p_go_supported = 1;
break;