OSDN Git Service

wifi: mac80211: fix link manipulation
authorJohannes Berg <johannes.berg@intel.com>
Wed, 6 Jul 2022 12:03:07 +0000 (14:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 15 Jul 2022 09:43:19 +0000 (11:43 +0200)
commitd3e2439b0f339de319d27118f6de365753081179
treeef6f264337d34dd997c3b03a2687bdbadee2bf31
parent939c4c7e823b161701637720016999ef1f4ae4db
wifi: mac80211: fix link manipulation

When we add non-deflink pointers, we need to remove the
link[0] pointer to deflink in case link[0] is not valid
afterwards. Also, we need to add that back when there
are no more valid links. Reorg the code to fix that.

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