Correctly set lowest_present_ofdm in iwm_mvm_ack_rates().
From OpenBSD rev.1.23.
This commit is contained in:
parent
2944c17539
commit
e9f9997b8d
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_iwm.c,v 1.15 2015/02/25 12:41:15 nonaka Exp $ */
|
||||
/* $NetBSD: if_iwm.c,v 1.16 2015/03/02 12:07:27 nonaka Exp $ */
|
||||
/* OpenBSD: if_iwm.c,v 1.18 2015/02/11 01:12:42 brad Exp */
|
||||
|
||||
/*
|
||||
|
@ -105,7 +105,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.15 2015/02/25 12:41:15 nonaka Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.16 2015/03/02 12:07:27 nonaka Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/conf.h>
|
||||
|
@ -4775,8 +4775,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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue