From 15d80e61428749e4265152137061a71b3d6dbc53 Mon Sep 17 00:00:00 2001 From: stsp Date: Sat, 19 Mar 2022 15:19:51 +0000 Subject: [PATCH] Fix wrong logic in a check in iwm_vht_single_rate_control() to match what was intended. ok phessler@ --- sys/dev/pci/if_iwm.c | 4 ++-- 1 file 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 @@ -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); -- 2.20.1