]> git.baikalelectronics.ru Git - kernel.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)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 26 Sep 2018 09:20:58 +0000 (11:20 +0200)
commit15ea8066e0a8f259530c043e79acb50f7eaa5987
tree6bbbea39ac06c8bd02a3739e1547a82c3387dc9e
parent59ffbfd589a05703f4766bd553b7257a315d2ec2
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 <martin@strongswan.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c