summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2016-04-28 13:50:15 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2016-04-28 13:50:15 +0000
commitcee2deb6799cefd700702abb3468e84e2ca764ec (patch)
tree91c508c2be18571aae30ddb01001946e9890bdc3 /sys/net80211
parent99d650a2b08e96918c86cb5c0c97e81af2de4bba (diff)
Copy some ieee8021_node HT information to userspace.
ifconfig needs to be recompiled. ok mpi@
Diffstat (limited to 'sys/net80211')
-rw-r--r--sys/net80211/ieee80211_ioctl.c8
-rw-r--r--sys/net80211/ieee80211_ioctl.h8
2 files changed, 14 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_ioctl.c b/sys/net80211/ieee80211_ioctl.c
index c155ebc8efc..49cd7e04e36 100644
--- a/sys/net80211/ieee80211_ioctl.c
+++ b/sys/net80211/ieee80211_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_ioctl.c,v 1.40 2016/01/04 12:28:46 stsp Exp $ */
+/* $OpenBSD: ieee80211_ioctl.c,v 1.41 2016/04/28 13:50:14 stsp Exp $ */
/* $NetBSD: ieee80211_ioctl.c,v 1.15 2004/05/06 02:58:16 dyoung Exp $ */
/*-
@@ -106,6 +106,12 @@ ieee80211_node2req(struct ieee80211com *ic, const struct ieee80211_node *ni,
nr->nr_flags |= IEEE80211_NODEREQ_AP;
if (ni == ic->ic_bss)
nr->nr_flags |= IEEE80211_NODEREQ_AP_BSS;
+
+ /* HT */
+ nr->nr_htcaps = ni->ni_htcaps;
+ memcpy(nr->nr_rxmcs, ni->ni_rxmcs, sizeof(nr->nr_rxmcs));
+ nr->nr_max_rxrate = ni->ni_max_rxrate;
+ nr->nr_tx_mcs_set = ni->ni_tx_mcs_set;
}
void
diff --git a/sys/net80211/ieee80211_ioctl.h b/sys/net80211/ieee80211_ioctl.h
index ac1376317db..035c1208e2e 100644
--- a/sys/net80211/ieee80211_ioctl.h
+++ b/sys/net80211/ieee80211_ioctl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_ioctl.h,v 1.24 2016/04/27 11:58:10 stsp Exp $ */
+/* $OpenBSD: ieee80211_ioctl.h,v 1.25 2016/04/28 13:50:14 stsp Exp $ */
/* $NetBSD: ieee80211_ioctl.h,v 1.7 2004/04/30 22:51:04 dyoung Exp $ */
/*-
@@ -332,6 +332,12 @@ struct ieee80211_nodereq {
/* Node flags */
u_int8_t nr_flags;
+
+ /* HT */
+ uint16_t nr_htcaps;
+ uint8_t nr_rxmcs[howmany(80,NBBY)];
+ uint16_t nr_max_rxrate; /* in Mb/s, 0 <= rate <= 1023 */
+ uint8_t nr_tx_mcs_set;
};
#define IEEE80211_NODEREQ_STATE(_s) (1 << _s)