Skip to content

Commit

Permalink
mac80211: mesh: decrease max drift
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pedersen, Thomas authored and Johannes Berg committed Sep 30, 2016
1 parent 354d381 commit 3a53731
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/mac80211/mesh_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* could be, for instance, in case a neighbor is restarted and its TSF counter
* reset.
*/
#define TOFFSET_MAXIMUM_ADJUSTMENT 30000 /* 30 ms */
#define TOFFSET_MAXIMUM_ADJUSTMENT 800 /* 0.8 ms */

struct sync_method {
u8 method;
Expand Down

0 comments on commit 3a53731

Please sign in to comment.