aboutsummaryrefslogtreecommitdiff
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-06-16 04:17:08 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-06-16 04:17:08 +0000
commitc11c97cc61fe981f77a88b0e1c47e7eca10a0d42 (patch)
tree981c477f48390680424a990c9038d1ceaab48f2c /sbin/ifconfig
parent3e2d36ffa6c58c0f4e3ef57bbe85a9e8e403a1f0 (diff)
downloadsrc-c11c97cc61fe981f77a88b0e1c47e7eca10a0d42.tar.gz
src-c11c97cc61fe981f77a88b0e1c47e7eca10a0d42.zip
[ifconfig] add UAPSD and LPDC flags
* Add UAPSD and LDPC flags * expand the FLAGS section; it's kinda grown since I started hacking on net80211..
Notes
Notes: svn path=/head/; revision=362216
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifieee80211.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index 0adbc67f6d54..d63c9710d8bf 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -125,6 +125,8 @@
#define IEEE80211_NODE_AMSDU_RX 0x040000 /* AMSDU rx enabled */
#define IEEE80211_NODE_AMSDU_TX 0x080000 /* AMSDU tx enabled */
#define IEEE80211_NODE_VHT 0x100000 /* VHT enabled */
+#define IEEE80211_NODE_LDPC 0x200000 /* LDPC enabled */
+#define IEEE80211_NODE_UAPSD 0x400000 /* UAPSD enabled */
#endif
#define MAXCHAN 1536 /* max 1.5K channels */
@@ -2637,6 +2639,10 @@ getflags(int flags)
*cp++ = 't';
if (flags & IEEE80211_NODE_AMSDU_RX)
*cp++ = 'r';
+ if (flags & IEEE80211_NODE_UAPSD)
+ *cp++ = 'U';
+ if (flags & IEEE80211_NODE_LDPC)
+ *cp++ = 'L';
*cp = '\0';
return flagstring;
}
@@ -3846,8 +3852,8 @@ list_stations(int s)
, "TXSEQ"
, "RXSEQ"
);
- else
- printf("%-17.17s %4s %4s %4s %4s %4s %6s %6s %4s %-7s\n"
+ else
+ printf("%-17.17s %4s %4s %4s %4s %4s %6s %6s %4s %-12s\n"
, "ADDR"
, "AID"
, "CHAN"
@@ -3881,8 +3887,8 @@ list_stations(int s)
, gettxseq(si)
, getrxseq(si)
);
- else
- printf("%s %4u %4d %3dM %4.1f %4d %6d %6d %-4.4s %-7.7s"
+ else
+ printf("%s %4u %4d %3dM %4.1f %4d %6d %6d %-4.4s %-12.12s"
, ether_ntoa((const struct ether_addr*)
si->isi_macaddr)
, IEEE80211_AID(si->isi_associd)