diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2018-08-11 10:58:40 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2018-08-11 10:58:40 +0000 |
commit | e8c16cf98b37a3d98c1cb4467676bf2b341ec9fb (patch) | |
tree | 3b6af480e871a598de56a4a446cfda6981e8cc2c /sys | |
parent | 375af396911e5dd3e12a472de8c37bfcaa047313 (diff) |
Add comment explaining why we read basic MCS set only from beacon/probereq.
requested by mpi@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net80211/ieee80211_node.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_node.c b/sys/net80211/ieee80211_node.c index d3164e8305c..6fcbf9334c8 100644 --- a/sys/net80211/ieee80211_node.c +++ b/sys/net80211/ieee80211_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_node.c,v 1.139 2018/08/07 18:13:14 stsp Exp $ */ +/* $OpenBSD: ieee80211_node.c,v 1.140 2018/08/11 10:58:39 stsp Exp $ */ /* $NetBSD: ieee80211_node.c,v 1.14 2004/05/09 09:18:47 dyoung Exp $ */ /*- @@ -1940,6 +1940,11 @@ ieee80211_setup_htop(struct ieee80211_node *ni, const uint8_t *data, ni->ni_htop1 = (data[2] | (data[3] << 8)); ni->ni_htop2 = (data[3] | (data[4] << 8)); + /* + * According to 802.11-2012 Table 8-130 the Basic MCS set is + * only "present in Beacon, Probe Response, Mesh Peering Open + * and Mesh Peering Confirm frames. Otherwise reserved." + */ if (isprobe) memcpy(ni->ni_basic_mcs, &data[6], sizeof(ni->ni_basic_mcs)); |