From: Johannes Berg Date: Mon, 14 Apr 2008 13:41:31 +0000 (+0200) Subject: hide interface types "ap" and "ap_vlan" behind "__" X-Git-Tag: v0.9~36 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4d3a72da3f21761bf4f2866a6a3400d4ecf67365;p=thirdparty%2Fiw.git hide interface types "ap" and "ap_vlan" behind "__" These interface types shouldn't be used manually, they're used by hostapd. --- diff --git a/interface.c b/interface.c index 9d97ad0..f1b038c 100644 --- a/interface.c +++ b/interface.c @@ -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) {