diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-03-01 14:56:35 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-03-01 14:56:35 +0000 |
commit | dfd39a1735e255ae63c4aff658b4351da72535e4 (patch) | |
tree | 968482fdcad1ffdb444a22d92b742cc2b2164699 /sys/dev | |
parent | d2acf2b5e65c461d2f5b36d9040979574c122bae (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.c | 6 |
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; } /* |