]> 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)
commitdef99bc0613cb2309f24f24428504dccdffd68e8
tree1de6c9c21f3f637ab3cd786b36f5d49170b8feb5
parent35ec47530881fffb089dc6b9af055e1aababb541
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: e7c0c32290d4 ("wifi: mac80211_hwsim: handle links for wmediumd/virtio")
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c