]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
accept managed/mgd for station interface
authorJohannes Berg <johannes@sipsolutions.net>
Sat, 11 Apr 2009 18:47:24 +0000 (20:47 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Sat, 11 Apr 2009 18:47:24 +0000 (20:47 +0200)
interface.c

index 971c3b64184f795b866c837771e2e497b027fe48..c2c48d2811fe6ad70c6d8766ec60a60e7ea6695d 100644 (file)
@@ -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;
        }