Skip to content

Commit 0905774

Browse files
Malcolm Priestleygregkh
authored andcommitted
staging: vt6656: Fix drivers TBTT timing counter.
The drivers TBTT counter is not synchronized with mac80211 timestamp. Reorder the functions and use vnt_update_next_tbtt to do the final synchronize. Fixes: c151587 ("staging: vt6656: implement TSF counter") Cc: stable <[email protected]> Signed-off-by: Malcolm Priestley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0f8240b commit 0905774

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

drivers/staging/vt6656/main_usb.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -770,12 +770,15 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
770770
vnt_mac_reg_bits_on(priv, MAC_REG_TFTCTL,
771771
TFTCTL_TSFCNTREN);
772772

773-
vnt_adjust_tsf(priv, conf->beacon_rate->hw_value,
774-
conf->sync_tsf, priv->current_tsf);
775-
776773
vnt_mac_set_beacon_interval(priv, conf->beacon_int);
777774

778775
vnt_reset_next_tbtt(priv, conf->beacon_int);
776+
777+
vnt_adjust_tsf(priv, conf->beacon_rate->hw_value,
778+
conf->sync_tsf, priv->current_tsf);
779+
780+
vnt_update_next_tbtt(priv,
781+
conf->sync_tsf, conf->beacon_int);
779782
} else {
780783
vnt_clear_current_tsf(priv);
781784

0 commit comments

Comments
 (0)