From: Martin Willi Date: Tue, 25 Sep 2018 07:51:02 +0000 (+0200) Subject: mac80211_hwsim: do not omit multicast announce of first added radio X-Git-Tag: Ubuntu-5.2.0-15.16~3493^2~33^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=28ef8b49a338dc1844e86b7954cfffc7dfa2660a;p=mirror_ubuntu-eoan-kernel.git mac80211_hwsim: do not omit multicast announce of first added radio The allocation of hwsim radio identifiers uses a post-increment from 0, so the first radio has idx 0. This idx is explicitly excluded from multicast announcements ever since, but it is unclear why. Drop that idx check and announce the first radio as well. This makes userspace happy if it relies on these events. Signed-off-by: Martin Willi Signed-off-by: Johannes Berg --- diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c index 6fccb4d717db..07442ada6dd0 100644 --- a/drivers/net/wireless/mac80211_hwsim.c +++ b/drivers/net/wireless/mac80211_hwsim.c @@ -2934,8 +2934,7 @@ static int mac80211_hwsim_new_radio(struct genl_info *info, hwsim_radios_generation++; spin_unlock_bh(&hwsim_radio_lock); - if (idx > 0) - hwsim_mcast_new_radio(idx, info, param); + hwsim_mcast_new_radio(idx, info, param); return idx;