]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211_hwsim: fix multi-channel handling in netlink RX
authorJohannes Berg <johannes.berg@intel.com>
Fri, 2 Sep 2022 14:12:49 +0000 (16:12 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Sat, 3 Sep 2022 15:05:44 +0000 (17:05 +0200)
commit90fce6a822843a4f9243c9285084c942d5c6ea6e
tree1e40abe991808f1ac652288aade987ec52a8aef9
parent6fa9e0f694d03d46a735a8332f620b036c0575d3
wifi: mac80211_hwsim: fix multi-channel handling in netlink RX

In netlink RX, now that we can actually have multiple
channel contexts for MLO, things don't work well as we
only keep a single pointer, and then on link switching
we might NULL it, and hit the return if the channel is
NULL.

However, we already use mac80211_hwsim_tx_iter() which
deals with all this, so remove the test and adjust the
remaining code a bit.

This then means we no longer use the chanctx pointer,
so remove it as well.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c