Page MenuHomeFreeBSD

D50675.diff
No OneTemporary

D50675.diff

diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -3212,6 +3212,33 @@
}
}
+static void
+printrsnxe(if_ctx *ctx, const char *tag, const u_int8_t *ie, size_t ielen)
+{
+ size_t n;
+
+ printf("%s", tag);
+ if (!ctx->args->verbose)
+ return;
+
+ ie += 2, ielen -= 2;
+
+ n = (*ie & 0x0f);
+ printf("<%zu", n + 1);
+
+ /* We do not yet know about more than n=1 (0). */
+ if (n != 0)
+ goto end;
+
+ if (*ie & 0x10)
+ printf(" PTWTOPS");
+ if (*ie & 0x20)
+ printf(" SAE h-t-e");
+
+end:
+ printf(">");
+}
+
#define BE_READ_2(p) \
((u_int16_t) \
((((const u_int8_t *)(p))[1] ) | \
@@ -3620,6 +3647,7 @@
case IEEE80211_ELEMID_TPC: return " TPC";
case IEEE80211_ELEMID_CCKM: return " CCKM";
case IEEE80211_ELEMID_EXTCAP: return " EXTCAP";
+ case IEEE80211_ELEMID_RSN_EXT: return " RSNXE";
}
snprintf(iename_buf, sizeof(iename_buf), " UNKNOWN_ELEMID_%d",
elemid);
@@ -3703,6 +3731,9 @@
case IEEE80211_ELEMID_APCHANREP:
printapchanrep(ctx, " APCHANREP", vp, 2+vp[1]);
break;
+ case IEEE80211_ELEMID_RSN_EXT:
+ printrsnxe(ctx, " RSNXE", vp, 2+vp[1]);
+ break;
default:
if (verbose)
printie(ctx, iename(vp[0]), vp, 2+vp[1], maxcols);

File Metadata

Mime Type
text/plain
Expires
Sat, Apr 25, 12:20 PM (15 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32125005
Default Alt Text
D50675.diff (1 KB)

Event Timeline