From: Andrei Otcheretianski Date: Thu, 3 Sep 2015 11:13:17 +0000 (+0300) Subject: iw: nan: Add NAN interface type X-Git-Tag: v4.9~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ed9b77ec519b16637b7e4772173f458f98ffc557;p=thirdparty%2Fiw.git iw: nan: Add NAN interface type Signed-off-by: Andrei Otcheretianski Signed-off-by: Johannes Berg --- diff --git a/interface.c b/interface.c index dfa1d5e..57dd3c3 100644 --- a/interface.c +++ b/interface.c @@ -203,6 +203,9 @@ static int get_if_type(int *argc, char ***argv, enum nl80211_iftype *type, } else if (strcmp(tpstr, "__p2pgo") == 0) { *type = NL80211_IFTYPE_P2P_GO; return 0; + } else if (strcmp(tpstr, "__nan") == 0) { + *type = NL80211_IFTYPE_NAN; + return 0; } fprintf(stderr, "invalid interface type %s\n", tpstr); diff --git a/util.c b/util.c index 9083e45..a338464 100644 --- a/util.c +++ b/util.c @@ -134,6 +134,7 @@ static const char *ifmodes[NL80211_IFTYPE_MAX + 1] = { "P2P-GO", "P2P-device", "outside context of a BSS", + "NAN", }; static char modebuf[100];