]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ath9k: P2P_CLIENT, send frames after 1ms AP/GO will aprear
authorJanusz Dziedzic <janusz.dziedzic@tieto.com>
Fri, 27 Nov 2015 08:37:09 +0000 (09:37 +0100)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 8 Dec 2015 14:50:41 +0000 (16:50 +0200)
AP/GO will aprear after NOA, wait 1ms to be sure AP
could receive/answer this frames.

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 dddaaeac9433bd25eeb26c0d6aa6d9f95371e788..5640e88c6569c8afb5e23017d3131c9cf9a02f7b 100644 (file)
@@ -1417,6 +1417,8 @@ static void ath9k_update_p2p_ps_timer(struct ath_softc *sc, struct ath_vif *avp)
        target_tsf = avp->noa.next_tsf;
        if (!avp->noa.absent)
                target_tsf -= ATH_P2P_PS_STOP_TIME;
+       else
+               target_tsf += ATH_P2P_PS_STOP_TIME;
 
        if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME)
                target_tsf = tsf + ATH_P2P_PS_STOP_TIME;
@@ -1543,6 +1545,8 @@ void ath9k_p2p_ps_timer(void *priv)
        tsf = ath9k_hw_gettsf32(sc->sc_ah);
        if (!avp->noa.absent)
                tsf += ATH_P2P_PS_STOP_TIME;
+       else
+               tsf -= ATH_P2P_PS_STOP_TIME;
 
        if (!avp->noa.has_next_tsf ||
            avp->noa.next_tsf - tsf > BIT(31))