diff options
author | Pavel Roskin <proski@gnu.org> | 2008-02-26 17:59:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-02-29 15:41:56 -0500 |
commit | 38c07b430b50172b803fe4c7f76cba580ba9931f (patch) | |
tree | ec6e2a2b4013e9e511d5382305994a9dffadcd75 /drivers/net/wireless/ath5k/hw.c | |
parent | e6084239d39a10bac1186611fe7c523cea92c9ec (diff) |
ath5k: fix all endian issues reported by sparse
Changes-licensed-under: ISC
Signed-off-by: Pavel Roskin <proski@gnu.org>
Acked-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
Acked-by: Nick Kossifidis <mickflemm@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath5k/hw.c')
-rw-r--r-- | drivers/net/wireless/ath5k/hw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath5k/hw.c b/drivers/net/wireless/ath5k/hw.c index 998da6be2be3..eec2b806a0de 100644 --- a/drivers/net/wireless/ath5k/hw.c +++ b/drivers/net/wireless/ath5k/hw.c | |||
@@ -531,8 +531,8 @@ static inline void ath5k_hw_write_rate_duration(struct ath5k_hw *ah, | |||
531 | * actual rate for this rate. See mac80211 tx.c | 531 | * actual rate for this rate. See mac80211 tx.c |
532 | * ieee80211_duration() for a brief description of | 532 | * ieee80211_duration() for a brief description of |
533 | * what rate we should choose to TX ACKs. */ | 533 | * what rate we should choose to TX ACKs. */ |
534 | tx_time = ieee80211_generic_frame_duration(sc->hw, | 534 | tx_time = le16_to_cpu(ieee80211_generic_frame_duration(sc->hw, |
535 | sc->vif, 10, &srate); | 535 | sc->vif, 10, &srate)); |
536 | 536 | ||
537 | ath5k_hw_reg_write(ah, tx_time, reg); | 537 | ath5k_hw_reg_write(ah, tx_time, reg); |
538 | 538 | ||