]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mac80211_hwsim: do not omit multicast announce of first added radio
authorMartin Willi <martin@strongswan.org>
Tue, 25 Sep 2018 07:51:02 +0000 (09:51 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:52:38 +0000 (14:52 +0100)
commitdb2a11e706bf59d60dbd250f19a383d102a92e69
treeec8dbb063846db89b8731c59fe35b4584a45a035
parentc7b66583c9edb63ab7613a6ff545367175f95125
mac80211_hwsim: do not omit multicast announce of first added radio

[ Upstream commit 28ef8b49a338dc1844e86b7954cfffc7dfa2660a ]

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 <martin@strongswan.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mac80211_hwsim.c