p54: Fix compilation problem on PPC
PATCH 1/1 p54: Fix compilation problem on PPC
The commit entitled "p54: Fix sparse warnings" introduced a compile error on PPC architecture. Thanks to Johannes Berg <[email protected]> for reporting this problem.
---
John,
This is 2.6.28 material. I hope this comes through OK. I don't have access to my usual way of submitting patches.
Larry
---
Johannes,
Do you have access to a p54 device, or were you just compile testing? In my mind, there is still a big question regarding the endianness of one of the data arrays.
Larry
---
drivers/net/wireless/p54/p54common.c +0 -1
@@ -482,7 +482,6 @@ static int p54_parse_eeprom(struct ieee8printk (KERN_ERR "p54: eeprom parse failed!\n" );return err; } -EXPORT_SYMBOL_GPL (p54_parse_eeprom);static int p54_rssi_to_dbm (struct ieee80211_hw *dev,int rssi) {
Johannes Berg
maintainerQuoted 5 lines · Larry Finger
Johannes,
Do you have access to a p54 device, or were you just compile testing? In my mind, there is still a big question regarding the endianness of one of the data arrays.
No, I don't have a device, was just compiling, sorry. Is there any on the market that isn't too expensive that I could get?
johannes
Quoted 2 lines · Johannes Berg
No, I don't have a device, was just compiling, sorry. Is there any on the market that isn't too expensive that I could get?
This is the one I have:
The current bid is 7,40 Eur.
Larry
Quoted 2 lines · Johannes Berg
No, I don't have a device, was just compiling, sorry. Is there any on the market that isn't too expensive that I could get?
I'm sorry for being late. I have tested an Xterasys XG-600 (miniPCI) on i386 and PowerPC. The same device is working on i386, but not on PowerPC. There are kernel messages running on the console on PowerPC, but I could not capture them yet. The kernel is the current wireless-testing.
I also tested D-Link DWL-G650 (CardBus), but it appears to be unreliable. I could scan only once with it on i386. Most time scanning won't find any APs.
I suspect we should not be mixing little-endian and host-endian structures.
Signature · 2 lines
Regards, Pavel Roskin
Quoted 8 lines · Pavel Roskin
I'm sorry for being late. I have tested an Xterasys XG-600 (miniPCI) on i386 and PowerPC. The same device is working on i386, but not on PowerPC. There are kernel messages running on the console on PowerPC, but I could not capture them yet. The kernel is the current wireless-testing.
I suspect we should not be mixing little-endian and host-endian structures.
Agreed. In data structure "bootrec", there is a data array that gets used once as be32, once as le16, and several times as though it were in native CPU order. That has always look funny to me, but as I can only test on x86_64 architecture, I cannot distinguish le32 from native CPU.
I will prepare a patch to explicitly use those data as le32 for you to test.
Thanks,
Larry