* [PATCH] d80211: Fix max_signal values signedness bug
@ 2007-02-20 19:45 Michael Buesch
0 siblings, 0 replies; only message in thread
From: Michael Buesch @ 2007-02-20 19:45 UTC (permalink / raw)
To: John Linville; +Cc: linux-wireless
char is not signed on all architectures.
This fixes a compiletime warning and bug on PPC.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Index: bu3sch-wireless-dev/include/net/d80211.h
===================================================================
--- bu3sch-wireless-dev.orig/include/net/d80211.h 2007-02-20 20:35:17.000000000 +0100
+++ bu3sch-wireless-dev/include/net/d80211.h 2007-02-20 20:42:13.000000000 +0100
@@ -542,9 +542,9 @@ struct ieee80211_hw {
int channel_change_time;
/* Maximum values for various statistics.
* Leave at 0 to indicate no support. Use negative numbers for dBm. */
- char max_rssi;
- char max_signal;
- char max_noise;
+ s8 max_rssi;
+ s8 max_signal;
+ s8 max_noise;
/* Number of available hardware TX queues for data packets.
* WMM requires at least four queues. */
--
Greetings Michael.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-20 19:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-20 19:45 [PATCH] d80211: Fix max_signal values signedness bug Michael Buesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).