summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2015-03-01 14:56:35 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2015-03-01 14:56:35 +0000
commitdfd39a1735e255ae63c4aff658b4351da72535e4 (patch)
tree968482fdcad1ffdb444a22d92b742cc2b2164699 /sys/dev
parentd2acf2b5e65c461d2f5b36d9040979574c122bae (diff)
Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().
ok phessler@, stsp@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_iwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwm.c b/sys/dev/pci/if_iwm.c
index 12d72e36026..293e082c678 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.22 2015/02/23 09:40:47 stsp Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.23 2015/03/01 14:56:34 kettenis Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
@@ -4681,8 +4681,8 @@ iwm_mvm_ack_rates(struct iwm_softc *sc, struct iwm_node *in,
for (i = IWM_FIRST_OFDM_RATE; i <= IWM_LAST_NON_HT_RATE; i++) {
int adj = i - IWM_FIRST_OFDM_RATE;
ofdm |= (1 << adj);
- if (lowest_present_cck > adj)
- lowest_present_cck = adj;
+ if (lowest_present_ofdm > adj)
+ lowest_present_ofdm = adj;
}
/*