summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-09 10:00:13 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2018-01-09 10:00:13 +0000
commitd35836052bd8476c2d157f67436f2374caf2696a (patch)
treec9b69fb6aa7fefc7863c33d9554fca7e1981b8be /sys
parentb49b8db05822c660def2ca42bf625955d0cdfa9e (diff)
Do not silently truncate the firmware channel number.
Fix build with gcc, ok stsp@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/if_iwn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwn.c b/sys/dev/pci/if_iwn.c
index ff68fb266b0..edff5e47c5a 100644
--- a/sys/dev/pci/if_iwn.c
+++ b/sys/dev/pci/if_iwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwn.c,v 1.197 2017/12/20 18:20:59 stsp Exp $ */
+/* $OpenBSD: if_iwn.c,v 1.198 2018/01/09 10:00:12 mpi Exp $ */
/*-
* Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -1982,7 +1982,7 @@ iwn_rx_done(struct iwn_softc *sc, struct iwn_rx_desc *desc,
caddr_t head;
uint32_t flags;
int error, len, rssi;
- uint8_t chan;
+ uint16_t chan;
if (desc->type == IWN_MPDU_RX_DONE) {
/* Check for prior RX_PHY notification. */