]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mac80211_hwsim: fix link change handling
authorJohannes Berg <johannes.berg@intel.com>
Fri, 19 Aug 2022 12:58:42 +0000 (14:58 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 25 Aug 2022 08:41:27 +0000 (10:41 +0200)
commit84d1aaf6ea3fa1807dc54c8997f935348a316592
tree1de6c9c21f3f637ab3cd786b36f5d49170b8feb5
parent294ff28335efd9c0827c0107dd75d86d5dc67cfa
wifi: mac80211_hwsim: fix link change handling

The code for determining which links to update in wmediumd
or virtio was wrong, fix it to remove the deflink only if
there were no old links, and also add the deflink if there
are no other new links.

Fixes: 7765644e19b0 ("wifi: mac80211_hwsim: handle links for wmediumd/virtio")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c