Module Name: src
Committed By: joerg
Date: Tue Sep 22 13:28:02 UTC 2015
Modified Files:
src/sys/dev/ic: athn.c
Log Message:
Avoid left-shift of negative values.
To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/ic/athn.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/athn.c
diff -u src/sys/dev/ic/athn.c:1.10 src/sys/dev/ic/athn.c:1.11
--- src/sys/dev/ic/athn.c:1.10 Thu Jul 24 19:47:15 2014
+++ src/sys/dev/ic/athn.c Tue Sep 22 13:28:02 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: athn.c,v 1.10 2014/07/24 19:47:15 riz Exp $ */
+/* $NetBSD: athn.c,v 1.11 2015/09/22 13:28:02 joerg Exp $ */
/* $OpenBSD: athn.c,v 1.83 2014/07/22 13:12:11 mpi Exp $ */
/*-
@@ -23,7 +23,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.10 2014/07/24 19:47:15 riz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: athn.c,v 1.11 2015/09/22 13:28:02 joerg Exp $");
#ifndef _MODULE
#include "athn_usb.h" /* for NATHN_USB */
@@ -2248,7 +2248,7 @@ athn_hw_reset(struct athn_softc *sc, str
/* Do not mask the subtype field in management frames. */
reg = RW(reg, AR_AES_MUTE_MASK1_FC0_MGMT, 0xff);
reg = RW(reg, AR_AES_MUTE_MASK1_FC1_MGMT,
- ~(IEEE80211_FC1_RETRY | IEEE80211_FC1_PWR_MGT |
+ (uint32_t)~(IEEE80211_FC1_RETRY | IEEE80211_FC1_PWR_MGT |
IEEE80211_FC1_MORE_DATA));
AR_WRITE(sc, AR_AES_MUTE_MASK1, reg);
}