ath9k: use u32 when calculate tsf
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 27 Nov 2015 08:37:10 +0000 (09:37 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Dec 2015 14:50:45 +0000 (16:50 +0200)
Use u32 while ath9k_hw_gettsf32() and
ath9k_hw_gen_timer_start() require u32.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath9k/channel.c

index 5640e88c6569c8afb5e23017d3131c9cf9a02f7b..28bbbef7cabda2cdd06e0c4c2d3d8f0da94f5070 100644 (file)
@@ -1405,7 +1405,7 @@ static void ath9k_update_p2p_ps_timer(struct ath_softc *sc, struct ath_vif *avp)
 {
        struct ath_common *common = ath9k_hw_common(sc->sc_ah);
        struct ath_hw *ah = sc->sc_ah;
-       s32 tsf, target_tsf;
+       u32 tsf, target_tsf;
 
        if (!avp || !avp->noa.has_next_tsf)
                return;
@@ -1427,7 +1427,7 @@ static void ath9k_update_p2p_ps_timer(struct ath_softc *sc, struct ath_vif *avp)
                __func__, avp->noa.absent, tsf, target_tsf,
                (target_tsf - tsf) / 1000);
 
-       ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, (u32) target_tsf, 1000000);
+       ath9k_hw_gen_timer_start(ah, sc->p2p_ps_timer, target_tsf, 1000000);
 }
 
 static void ath9k_update_p2p_ps(struct ath_softc *sc, struct ieee80211_vif *vif)