Skip to contentSkip to conversation

d80211: Fix max_signal values signedness bug

PATCH New Michael Buesch 1 participant 1 message Feb 20, 2007 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: Fix max_signal values signedness bug

char is not signed on all architectures.
This fixes a compiletime warning and bug on PPC.

include/net/d80211.h +3 -3
Index: bu3sch-wireless-dev/include/net/d80211.h
===================================================================
@@ -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. */
Signature · 1 line
Greetings Michael.