From: Johannes Berg Date: Sat, 11 Apr 2009 18:47:24 +0000 (+0200) Subject: accept managed/mgd for station interface X-Git-Tag: v0.9.13~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a65df165ed78e4bf9936c4514628564170cf16e6;p=thirdparty%2Fiw.git accept managed/mgd for station interface --- diff --git a/interface.c b/interface.c index 971c3b6..c2c48d2 100644 --- a/interface.c +++ b/interface.c @@ -109,11 +109,13 @@ static int get_if_type(int *argc, char ***argv, enum nl80211_iftype *type) } else if (strcmp(tpstr, "wds") == 0) { *type = NL80211_IFTYPE_WDS; return 1; - } else if (strcmp(tpstr, "station") == 0) { + } else if (strcmp(tpstr, "managed") == 0 || + strcmp(tpstr, "mgd") == 0 || + strcmp(tpstr, "station") == 0) { *type = NL80211_IFTYPE_STATION; return 1; } else if (strcmp(tpstr, "mp") == 0 || - strcmp(tpstr, "mesh") == 0) { + strcmp(tpstr, "mesh") == 0) { *type = NL80211_IFTYPE_MESH_POINT; return 1; }