wifi: mac80211: always initialize link_sta with sta
authorJohannes Berg <johannes.berg@intel.com>
Wed, 15 Feb 2023 09:40:41 +0000 (10:40 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 15 Feb 2023 17:27:35 +0000 (18:27 +0100)
commitab5f171e36063b33aba1dd4c7c6d5031b00b42aa
tree60194cdef53f4482ad8f60e92602c999c95fddad
parent0d846bdc11101ac0ba4d89c2be359af08cb9379b
wifi: mac80211: always initialize link_sta with sta

When we have multiple interfaces receiving the same frame,
such as a multicast frame, one interface might have a sta
and the other not. In this case, link_sta would be set but
not cleared again.

Always set link_sta, so we keep an invariant that link_sta
and sta are either both set or both not set.

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