]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: fix more eeprom endian bugs
authorJohannes Berg <johannes@sipsolutions.net>
Mon, 14 Dec 2009 22:12:09 +0000 (14:12 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 21 Dec 2009 16:32:07 +0000 (11:32 -0500)
commitc65ce0fe0bbd58e2a4f7302b91e12e8a1072e615
tree5c4d75da72c31eb33f9c2c18827018a62ac3093c
parent871d70aecabc95ccd219f897e21f4c82d5c73016
iwlwifi: fix more eeprom endian bugs

I've also for a long time had a problem with the
temperature calculation code, which I had fixed
by byte-swapping the values, and now it turns out
that was the correct fix after all.

Also, any use of iwl_eeprom_query_addr() that is
for more than a u8 must be cast to little endian,
and some structs as well.

Fix all this. Again, no real impact on platforms
that already are little endian.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Cc: stable@kernel.org
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-5000-hw.h
drivers/net/wireless/iwlwifi/iwl-5000.c
drivers/net/wireless/iwlwifi/iwl-eeprom.h