]> git.baikalelectronics.ru Git - kernel.git/commit
ath5k: correct endianness of frame duration
authorBob Copeland <me@bobcopeland.com>
Tue, 25 Jan 2011 04:31:44 +0000 (23:31 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 27 Jan 2011 21:41:07 +0000 (16:41 -0500)
commit630614cf85f5fcd717ff8ccdf4031ff97b6b8675
tree96dde912b61cd33138516cc8bb4f463bc774250d
parent9ae917c2e57e37e60f7513acbb738fc9b61ad207
ath5k: correct endianness of frame duration

The ath5k version of ieee80211_generic_frame_duration() returns
an __le16 for standard modes but a cpu-endian int for turbo/half/
quarter rates.  Make it always return cpu-endian values.

Signed-off-by: Bob Copeland <me@bobcopeland.com>
Acked-by: Bruno Randolf <br1@einfach.org>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath5k/pcu.c