Lines Matching refs:ifmsh
52 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_adjust_tbtt() local
58 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tbtt()
59 if (ifmsh->sync_offset_clockdrift_max < beacon_int_fraction) { in mesh_sync_adjust_tbtt()
61 (long long) ifmsh->sync_offset_clockdrift_max); in mesh_sync_adjust_tbtt()
62 tsfdelta = -ifmsh->sync_offset_clockdrift_max; in mesh_sync_adjust_tbtt()
63 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_adjust_tbtt()
66 (long long) ifmsh->sync_offset_clockdrift_max, in mesh_sync_adjust_tbtt()
69 ifmsh->sync_offset_clockdrift_max -= beacon_int_fraction; in mesh_sync_adjust_tbtt()
71 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_adjust_tbtt()
84 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_rx_bcn_presp() local
89 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_rx_bcn_presp()
150 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
151 if (t_clockdrift > ifmsh->sync_offset_clockdrift_max) in mesh_sync_offset_rx_bcn_presp()
152 ifmsh->sync_offset_clockdrift_max = t_clockdrift; in mesh_sync_offset_rx_bcn_presp()
153 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_rx_bcn_presp()
170 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_sync_offset_adjust_tbtt() local
173 WARN_ON(ifmsh->mesh_sp_id != IEEE80211_SYNC_METHOD_NEIGHBOR_OFFSET); in mesh_sync_offset_adjust_tbtt()
177 spin_lock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tbtt()
179 if (ifmsh->sync_offset_clockdrift_max > TOFFSET_MINIMUM_ADJUSTMENT) { in mesh_sync_offset_adjust_tbtt()
187 ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tbtt()
188 set_bit(MESH_WORK_DRIFT_ADJUST, &ifmsh->wrkq_flags); in mesh_sync_offset_adjust_tbtt()
190 ifmsh->adjusting_tbtt = true; in mesh_sync_offset_adjust_tbtt()
194 (long long)ifmsh->sync_offset_clockdrift_max); in mesh_sync_offset_adjust_tbtt()
195 ifmsh->sync_offset_clockdrift_max = 0; in mesh_sync_offset_adjust_tbtt()
197 ifmsh->adjusting_tbtt = false; in mesh_sync_offset_adjust_tbtt()
199 spin_unlock_bh(&ifmsh->sync_offset_lock); in mesh_sync_offset_adjust_tbtt()
201 beacon->meshconf->meshconf_cap = ifmsh->adjusting_tbtt ? in mesh_sync_offset_adjust_tbtt()