summaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_proto.c
diff options
context:
space:
mode:
authorPeter Hessler <phessler@cvs.openbsd.org>2018-02-06 22:14:53 +0000
committerPeter Hessler <phessler@cvs.openbsd.org>2018-02-06 22:14:53 +0000
commitab079ef5a5ab0ea56145aea2a3796505c9ff98fd (patch)
tree624b1fc21a09033d6a8851e4842486772289049d /sys/net80211/ieee80211_proto.c
parent58b0140b741d2292dca6be5d47a1070e6e384f8f (diff)
convert the test if a node support HT (aka, 11n) into an inline function,
instead of testing some un-obvious bitfield OK stsp@
Diffstat (limited to 'sys/net80211/ieee80211_proto.c')
-rw-r--r--sys/net80211/ieee80211_proto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_proto.c b/sys/net80211/ieee80211_proto.c
index 397973e665d..4e5a78dbd46 100644
--- a/sys/net80211/ieee80211_proto.c
+++ b/sys/net80211/ieee80211_proto.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ieee80211_proto.c,v 1.82 2018/02/05 08:44:13 stsp Exp $ */
+/* $OpenBSD: ieee80211_proto.c,v 1.83 2018/02/06 22:14:52 phessler Exp $ */
/* $NetBSD: ieee80211_proto.c,v 1.8 2004/04/30 23:58:20 dyoung Exp $ */
/*-
@@ -557,7 +557,7 @@ ieee80211_ht_negotiate(struct ieee80211com *ic, struct ieee80211_node *ni)
* Require at least one of the mandatory MCS.
* MCS 0-7 are mandatory but some APs have particular MCS disabled.
*/
- if ((ni->ni_rxmcs[0] & 0xff) == 0) {
+ if (!ieee80211_node_supports_ht(ni)) {
ic->ic_stats.is_ht_nego_no_mandatory_mcs++;
return;
}