mac80211: aggregation: Convert timers to use timer_setup()
authorKees Cook <keescook@chromium.org>
Tue, 17 Oct 2017 20:25:45 +0000 (13:25 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Nov 2017 15:55:23 +0000 (16:55 +0100)
commit7cca2acdff2d7c53b4a553756e731693152115d4
tree5310062eac0064e15dcd62b2110fe75be90ffab8
parent44905265bc155e0237c76c25bf5ddf740d85a8f2
mac80211: aggregation: 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 removes the tid mapping array and expands the tid structures to
add a pointer back to the station, along with the tid index itself.

Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: linux-wireless@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: Kees Cook <keescook@chromium.org>
[switch tid variables to u8, the valid range is 0-15 at most,
 initialize tid_tx->sta/tid properly]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/agg-rx.c
net/mac80211/agg-tx.c
net/mac80211/sta_info.c
net/mac80211/sta_info.h