Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Deal with the RSSI as an unsigned value.
details: https://anonhg.NetBSD.org/src/rev/ecdc9fc93585
branches: trunk
changeset: 558144:ecdc9fc93585
user: dyoung <dyoung%NetBSD.org@localhost>
date: Thu Jan 29 09:59:57 2004 +0000
description:
Deal with the RSSI as an unsigned value.
diffstat:
sys/dev/ic/atw.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r fbae1dabd243 -r ecdc9fc93585 sys/dev/ic/atw.c
--- a/sys/dev/ic/atw.c Thu Jan 29 09:55:35 2004 +0000
+++ b/sys/dev/ic/atw.c Thu Jan 29 09:59:57 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: atw.c,v 1.19 2004/01/13 23:37:29 dyoung Exp $ */
+/* $NetBSD: atw.c,v 1.20 2004/01/29 09:59:57 dyoung Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.19 2004/01/13 23:37:29 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.20 2004/01/29 09:59:57 dyoung Exp $");
#include "bpfilter.h"
@@ -2964,7 +2964,8 @@
struct atw_rxsoft *rxs;
struct mbuf *m;
u_int32_t rxstat;
- int i, len, rate, rate0, rssi;
+ int i, len, rate, rate0;
+ u_int32_t rssi;
for (i = sc->sc_rxptr;; i = ATW_NEXTRX(i)) {
rxs = &sc->sc_rxsoft[i];
@@ -3075,7 +3076,7 @@
tap->ar_chan_flags = ic->ic_bss->ni_chan->ic_flags;
/* TBD verify units are dB */
- tap->ar_antsignal = rssi;
+ tap->ar_antsignal = (int)rssi;
/* TBD tap->ar_flags */
M_COPY_PKTHDR(&mb, m);
Home |
Main Index |
Thread Index |
Old Index