From 19c8146a917b51f08f9f95ae24272c76e10d363b Mon Sep 17 00:00:00 2001 From: mpi Date: Tue, 9 Jan 2018 10:00:12 +0000 Subject: [PATCH] Do not silently truncate the firmware channel number. Fix build with gcc, ok stsp@ --- sys/dev/pci/if_iwn.c | 4 ++-- 1 file 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 @@ -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. */ -- 2.20.1