From: Aaron LI Date: Sun, 12 Apr 2020 13:36:22 +0000 (+0800) Subject: ifconfig(8): Drop two unused macros from ifieee80211.c X-Git-Tag: v6.0.0rc1~1005 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/808e96707e9276922a8cca487369f5774f7c0e63?ds=sidebyside ifconfig(8): Drop two unused macros from ifieee80211.c Obtained from FreeBSD: https://github.com/freebsd/freebsd/commit/1ce3befafefa7226bcff3621562943176fe87ff3 --- diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c index 64b61e67c9..1b91760055 100644 --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -1438,9 +1438,6 @@ getmodeflags(const char *val) return flags; } -#define IEEE80211_CHAN_HTA (IEEE80211_CHAN_HT|IEEE80211_CHAN_5GHZ) -#define IEEE80211_CHAN_HTG (IEEE80211_CHAN_HT|IEEE80211_CHAN_2GHZ) - #define _APPLY(_flags, _base, _param, _v) do { \ if (_flags & IEEE80211_CHAN_HT) { \ if ((_flags & (IEEE80211_CHAN_5GHZ|IEEE80211_CHAN_2GHZ)) == 0) {\ @@ -1630,8 +1627,6 @@ DECL_CMD_FUNC(set80211maxretry, val, d) } #undef _APPLY_RATE #undef _APPLY -#undef IEEE80211_CHAN_HTA -#undef IEEE80211_CHAN_HTG static DECL_CMD_FUNC(set80211fragthreshold, val, d)