mac80211: fixup for mesh TSF adjustment latency in Toffset setpoint
authorJavier Cardona <javier@cozybit.com>
Fri, 20 Apr 2012 16:52:56 +0000 (09:52 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 23 Apr 2012 19:37:41 +0000 (15:37 -0400)
The original patch defined the correction margin but did not apply it.

Signed-off-by: Shinichi Hotori <hotorinn@gmail.com>
Signed-off-by: Yu Niiro <yu.niiro@gmail.com>
Signed-off-by: Javier Cardona <javier@cozybit.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/mesh_sync.c

index ff60d6bcc63164b224ad59400ca29c83a3359fdf..38d30e8ce6dc08f647777b6da179cc7dee56141b 100644 (file)
@@ -195,7 +195,7 @@ static void mesh_sync_offset_rx_bcn_presp(struct ieee80211_sub_if_data *sdata,
                spin_unlock_bh(&ifmsh->sync_offset_lock);
 
        } else {
-               sta->t_offset_setpoint = sta->t_offset;
+               sta->t_offset_setpoint = sta->t_offset - TOFFSET_SET_MARGIN;
                set_sta_flag(sta, WLAN_STA_TOFFSET_KNOWN);
                msync_dbg("STA %pM : offset was invalid, "
                          " sta->t_offset=%lld",