mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 17:41:50 +00:00
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: c15158797d
("staging: vt6656: implement TSF counter")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Link: https://lore.kernel.org/r/375d0b25-e8bc-c8f7-9b10-6cc705d486ee@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0f8240bfc0
commit
09057742af
1 changed files with 6 additions and 3 deletions
|
@ -770,12 +770,15 @@ static void vnt_bss_info_changed(struct ieee80211_hw *hw,
|
||||||
vnt_mac_reg_bits_on(priv, MAC_REG_TFTCTL,
|
vnt_mac_reg_bits_on(priv, MAC_REG_TFTCTL,
|
||||||
TFTCTL_TSFCNTREN);
|
TFTCTL_TSFCNTREN);
|
||||||
|
|
||||||
vnt_adjust_tsf(priv, conf->beacon_rate->hw_value,
|
|
||||||
conf->sync_tsf, priv->current_tsf);
|
|
||||||
|
|
||||||
vnt_mac_set_beacon_interval(priv, conf->beacon_int);
|
vnt_mac_set_beacon_interval(priv, conf->beacon_int);
|
||||||
|
|
||||||
vnt_reset_next_tbtt(priv, conf->beacon_int);
|
vnt_reset_next_tbtt(priv, conf->beacon_int);
|
||||||
|
|
||||||
|
vnt_adjust_tsf(priv, conf->beacon_rate->hw_value,
|
||||||
|
conf->sync_tsf, priv->current_tsf);
|
||||||
|
|
||||||
|
vnt_update_next_tbtt(priv,
|
||||||
|
conf->sync_tsf, conf->beacon_int);
|
||||||
} else {
|
} else {
|
||||||
vnt_clear_current_tsf(priv);
|
vnt_clear_current_tsf(priv);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue