summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwm.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-03-02 13:59:39 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-03-02 13:59:39 +0000
commit061956685a806e2fa5f9b62633151ae9f500f678 (patch)
tree55cec582c03da35fd284b1b4ac1507348075b683 /sys/dev/pci/if_iwm.c
parent82a3f0379b42dfa21a27eee13dab68aa9e99d132 (diff)
Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().
ok kettenis@
Diffstat (limited to 'sys/dev/pci/if_iwm.c')
-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 ec767a3726f..a199a273f12 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.27 2015/03/02 13:56:30 jsg Exp $ */
+/* $OpenBSD: if_iwm.c,v 1.28 2015/03/02 13:59:38 jsg Exp $ */
/*
* Copyright (c) 2014 genua mbh <info@genua.de>
@@ -4686,8 +4686,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_ofdm > adj)
- lowest_present_ofdm = adj;
+ if (lowest_present_ofdm > i)
+ lowest_present_ofdm = i;
}
/*