diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2022-03-19 15:19:52 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2022-03-19 15:19:52 +0000 |
commit | 98de2e81da4c393a1e18ae87d82e26d16c1a8339 (patch) | |
tree | 65c454024f336783637bee37df5c6cd4f7f1fe50 /sys/dev | |
parent | 2f4829a55156e6286ad703063d7ad161fb9b9e83 (diff) |
Fix wrong logic in a check in iwm_vht_single_rate_control() to match
what was intended.
ok phessler@
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_iwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c index e82db1f229a..5cca30fccf2 100644 --- a/sys/dev/pci/if_iwm.c +++ b/sys/dev/pci/if_iwm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_iwm.c,v 1.396 2022/03/19 14:50:01 stsp Exp $ */ +/* $OpenBSD: if_iwm.c,v 1.397 2022/03/19 15:19:51 stsp Exp $ */ /* * Copyright (c) 2014, 2016 genua gmbh <info@genua.de> @@ -5550,7 +5550,7 @@ iwm_vht_single_rate_control(struct iwm_softc *sc, struct ieee80211_node *ni, struct iwm_node *in = (void *)ni; /* Ignore Tx reports which don't match our last LQ command. */ - if (txmcs != ni->ni_txmcs && nss != ni->ni_vht_ss) { + if (txmcs != ni->ni_txmcs || nss != ni->ni_vht_ss) { if (++in->lq_rate_mismatch > 15) { /* Try to sync firmware with the driver... */ iwm_setrates(in, 1); |