summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2018-01-09 10:00:12 +0000
committermpi <mpi@openbsd.org>2018-01-09 10:00:12 +0000
commit19c8146a917b51f08f9f95ae24272c76e10d363b (patch)
treee093291dc44446ffe35e2fe2dc458fe9dce1602d
parentmake mpls_input take a struct ifnet *ifp argument. (diff)
downloadwireguard-openbsd-19c8146a917b51f08f9f95ae24272c76e10d363b.tar.xz
wireguard-openbsd-19c8146a917b51f08f9f95ae24272c76e10d363b.zip
Do not silently truncate the firmware channel number.
Fix build with gcc, ok stsp@
-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. */