]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
hide interface types "ap" and "ap_vlan" behind "__"
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 14 Apr 2008 13:41:31 +0000 (15:41 +0200)
committerJohannes Berg <johannes@sipsolutions.net>
Mon, 14 Apr 2008 13:41:31 +0000 (15:41 +0200)
These interface types shouldn't be used manually, they're
used by hostapd.

interface.c

index 9d97ad0de49f5b9e1f355f23de10e0b4d3dadf67..f1b038c814d83963f55dac16fe3a7ec15372b711 100644 (file)
@@ -33,10 +33,10 @@ static int get_if_type(int *argc, char ***argv, enum nl80211_iftype *type)
        } else if (strcmp(tpstr, "monitor") == 0) {
                *type = NL80211_IFTYPE_MONITOR;
                return 1;
-       } else if (strcmp(tpstr, "ap") == 0 || strcmp(tpstr, "master") == 0) {
+       } else if (strcmp(tpstr, "__ap") == 0) {
                *type = NL80211_IFTYPE_AP;
                return 1;
-       } else if (strcmp(tpstr, "ap_vlan") == 0) {
+       } else if (strcmp(tpstr, "__ap_vlan") == 0) {
                *type = NL80211_IFTYPE_AP_VLAN;
                return 1;
        } else if (strcmp(tpstr, "wds") == 0) {