|
@@ -195,11 +195,15 @@ static void mesh_sync_offset_adjust_tbtt(struct ieee80211_sub_if_data *sdata)
|
|
ifmsh->sync_offset_clockdrift_max);
|
|
ifmsh->sync_offset_clockdrift_max);
|
|
set_bit(MESH_WORK_DRIFT_ADJUST,
|
|
set_bit(MESH_WORK_DRIFT_ADJUST,
|
|
&ifmsh->wrkq_flags);
|
|
&ifmsh->wrkq_flags);
|
|
|
|
+
|
|
|
|
+ ifmsh->adjusting_tbtt = true;
|
|
} else {
|
|
} else {
|
|
msync_dbg(sdata,
|
|
msync_dbg(sdata,
|
|
"TBTT : max clockdrift=%lld; too small to adjust\n",
|
|
"TBTT : max clockdrift=%lld; too small to adjust\n",
|
|
(long long)ifmsh->sync_offset_clockdrift_max);
|
|
(long long)ifmsh->sync_offset_clockdrift_max);
|
|
ifmsh->sync_offset_clockdrift_max = 0;
|
|
ifmsh->sync_offset_clockdrift_max = 0;
|
|
|
|
+
|
|
|
|
+ ifmsh->adjusting_tbtt = false;
|
|
}
|
|
}
|
|
spin_unlock_bh(&ifmsh->sync_offset_lock);
|
|
spin_unlock_bh(&ifmsh->sync_offset_lock);
|
|
}
|
|
}
|