wifi: mac80211: refactor some link setup code
authorJohannes Berg <johannes.berg@intel.com>
Mon, 30 May 2022 21:01:50 +0000 (23:01 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 20 Jun 2022 10:55:24 +0000 (12:55 +0200)
commit4b41b2ef9e0d044528062eddbf34589da95c01bc
tree0d03ad35dd667da1fe4a3e2eda1b50fa4e86a5fc
parent762623a6a422198c6b39ea099cc8f80bae1767e9
wifi: mac80211: refactor some link setup code

We don't need to setup lists and work structs every time
we switch the interface type, factor that out into a new
ieee80211_link_init() function and use it.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/iface.c