Commit b77b59ae authored by Janusz Dziedzic's avatar Janusz Dziedzic Committed by Kalle Valo

ath9k: P2P_CLIENT, send frames after 1ms AP/GO will aprear

AP/GO will aprear after NOA, wait 1ms to be sure AP
could receive/answer this frames.
Signed-off-by: default avatarJanusz Dziedzic <janusz.dziedzic@tieto.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 60337ed8
...@@ -1417,6 +1417,8 @@ static void ath9k_update_p2p_ps_timer(struct ath_softc *sc, struct ath_vif *avp) ...@@ -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; target_tsf = avp->noa.next_tsf;
if (!avp->noa.absent) if (!avp->noa.absent)
target_tsf -= ATH_P2P_PS_STOP_TIME; target_tsf -= ATH_P2P_PS_STOP_TIME;
else
target_tsf += ATH_P2P_PS_STOP_TIME;
if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME) if (target_tsf - tsf < ATH_P2P_PS_STOP_TIME)
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) ...@@ -1543,6 +1545,8 @@ void ath9k_p2p_ps_timer(void *priv)
tsf = ath9k_hw_gettsf32(sc->sc_ah); tsf = ath9k_hw_gettsf32(sc->sc_ah);
if (!avp->noa.absent) if (!avp->noa.absent)
tsf += ATH_P2P_PS_STOP_TIME; tsf += ATH_P2P_PS_STOP_TIME;
else
tsf -= ATH_P2P_PS_STOP_TIME;
if (!avp->noa.has_next_tsf || if (!avp->noa.has_next_tsf ||
avp->noa.next_tsf - tsf > BIT(31)) avp->noa.next_tsf - tsf > BIT(31))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment