Skip to content

Commit 3a53731

Browse files
Pedersen, Thomasjmberg-intel
Pedersen, Thomas
authored andcommitted
mac80211: mesh: decrease max drift
The old value was 30ms, which means mesh sync will treat any value below as merely TSF drift. This isn't really reasonable (typical drift is < 10us/s) since people probably want to adjust TSF in smaller increments (for ie. beacon collision avoidance) without mesh sync fighting back. Change max drift adjustment to 0.8ms, so manual TSF adjustments can be made in 1ms increments, with some margin. Signed-off-by: Thomas Pedersen <twp@qca.qualcomm.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
1 parent 354d381 commit 3a53731

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/mac80211/mesh_sync.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* could be, for instance, in case a neighbor is restarted and its TSF counter
2929
* reset.
3030
*/
31-
#define TOFFSET_MAXIMUM_ADJUSTMENT 30000 /* 30 ms */
31+
#define TOFFSET_MAXIMUM_ADJUSTMENT 800 /* 0.8 ms */
3232

3333
struct sync_method {
3434
u8 method;

0 commit comments

Comments
 (0)