summaryrefslogtreecommitdiff
path: root/sys/net80211
diff options
context:
space:
mode:
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)