]> git.ipfire.org Git - thirdparty/iw.git/blobdiff - interface.c
add P2P Device handling primitives
[thirdparty/iw.git] / interface.c
index 945362f90ab4d86ec0bf4af17edd9d1568c147e6..810c2b96d25e56c6ce0c09602d33880b5c3f51b0 100644 (file)
@@ -133,6 +133,9 @@ static int get_if_type(int *argc, char ***argv, enum nl80211_iftype *type,
        } else if (strcmp(tpstr, "__p2pcl") == 0) {
                *type = NL80211_IFTYPE_P2P_CLIENT;
                return 0;
+       } else if (strcmp(tpstr, "__p2pdev") == 0) {
+               *type = NL80211_IFTYPE_P2P_DEVICE;
+               return 0;
        } else if (strcmp(tpstr, "__p2pgo") == 0) {
                *type = NL80211_IFTYPE_P2P_GO;
                return 0;