mac80211: fix MAC address allocations when local bit set on base addr
authorPaul Fertser <fercerpav@gmail.com>
Fri, 16 Oct 2020 20:24:19 +0000 (23:24 +0300)
committerPetr Štetiar <ynezz@true.cz>
Tue, 22 Dec 2020 17:59:10 +0000 (18:59 +0100)
commit39c8bc4422f0404af5b85c10eeb2c4098d919cdb
treec40638122a458169bb3a5ea627f4a8ea3e10112a
parenta9deace10c0f4c9e82091f579e96aa83f5b7aeb6
mac80211: fix MAC address allocations when local bit set on base addr

Testing with hwsim reveals two problems:

1. phyX/addresses has two addresses and mac80211_get_addr keeps
returning the last one when asked for more;

2. The base address has the local bit set and the operation unsets it.

Fix both.

Fixes: 866790fd827cb0187353cdf484eb46a9b38fb6ba
Reported-by: Zero_Chaos
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh