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>
Sat, 10 Nov 2018 15:42:42 +0000 (07:42 -0800)
commit5dfa0f7fd953c3e097ccfd520005b504cee19841
treeb9071855576097547697ca990cd4797120aa6211
parent6e93cd9e17e0c101b7203d69be3f1d7f51f6b5a1
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