aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/sta_info.h
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2017-10-05 13:39:10 -0400
committerJohannes Berg <johannes.berg@intel.com>2017-10-06 05:47:52 -0400
commit4c02d62fa37a05254a87575c7d430819f77bd6c9 (patch)
tree046e98fd9c69e40bd3453540599883469d342c6d /net/mac80211/sta_info.h
parent753d179ad001b25425beb977d00f2531540e7d42 (diff)
net/mac80211/mesh_plink: Convert timers to use timer_setup()
In preparation for unconditionally passing the struct timer_list pointer to all timer callbacks, switch to using the new timer_setup() and from_timer() to pass the timer pointer explicitly. This requires adding a pointer back to the sta_info since container_of() can't resolve the sta_info. Cc: Johannes Berg <johannes@sipsolutions.net> Cc: "David S. Miller" <davem@davemloft.net> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/sta_info.h')
-rw-r--r--net/mac80211/sta_info.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mac80211/sta_info.h b/net/mac80211/sta_info.h
index a35c964f6217..5c54acd10562 100644
--- a/net/mac80211/sta_info.h
+++ b/net/mac80211/sta_info.h
@@ -344,6 +344,7 @@ DECLARE_EWMA(mesh_fail_avg, 20, 8)
344 * @plink_state: peer link state 344 * @plink_state: peer link state
345 * @plink_timeout: timeout of peer link 345 * @plink_timeout: timeout of peer link
346 * @plink_timer: peer link watch timer 346 * @plink_timer: peer link watch timer
347 * @plink_sta: peer link watch timer's sta_info
347 * @t_offset: timing offset relative to this host 348 * @t_offset: timing offset relative to this host
348 * @t_offset_setpoint: reference timing offset of this sta to be used when 349 * @t_offset_setpoint: reference timing offset of this sta to be used when
349 * calculating clockdrift 350 * calculating clockdrift
@@ -356,6 +357,7 @@ DECLARE_EWMA(mesh_fail_avg, 20, 8)
356 */ 357 */
357struct mesh_sta { 358struct mesh_sta {
358 struct timer_list plink_timer; 359 struct timer_list plink_timer;
360 struct sta_info *plink_sta;
359 361
360 s64 t_offset; 362 s64 t_offset;
361 s64 t_offset_setpoint; 363 s64 t_offset_setpoint;