i2400m Endian Patch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Inaky,

Attached is a patch, for your review, to resolve an endian issue in op-rfkill.c.  On a big-endian machine the following is emitted by the driver:

i2400m_usb 2-1.3.1:1.0: HW BUG? Unknown RF SW state 0x2000000
i2400m_usb 2-1.3.1:1.0: HW BUG? Unknown RF HW state 0x2000000

sw_rf_switch/hw_rf_switch (struct i2400m_tlv_rf_switches_status) are define as __u8 so the le32_to_cpu() call isn't needed.  The patch works correctly on a big-endian machine.  I didn't test it on a little-endian machine  8(

Regards,
...doug



      
-------------- next part --------------
A non-text attachment was scrubbed...
Name: i2400m-switches-status.patch
Type: text/x-patch
Size: 678 bytes
Desc: not available
URL: <http://lists.linuxwimax.org/pipermail/wimax/attachments/20101207/e201a213/attachment.bin>


[Index of Archives]     [Linux Kernel]     [Linux Wireless]     [Linux Bluetooth]     [Linux Netdev]     [Linux Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux