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)
commitc9234a662e38309d6fe272ad80e6cdb8d24654f0
tree96dde912b61cd33138516cc8bb4f463bc774250d
parent15411c27d203e363592d30ab00803254ebe77b90
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