wifi: mac80211: fix MLO + AP_VLAN check
authorFelix Fietkau <nbd@nbd.name>
Wed, 14 Dec 2022 13:03:26 +0000 (14:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jan 2023 06:24:32 +0000 (07:24 +0100)
commit10644c9828c8e1024e4a41dd2efd707e748f7fbc
treee805abf9955774bc7bb7d8d8c64cf30b9c2bfb4b
parent1590cee5342ebdb31c48448736081201daad9828
wifi: mac80211: fix MLO + AP_VLAN check

commit f216033d770f7ca0eda491fe01a9f02e7af59576 upstream.

Instead of preventing adding AP_VLAN to MLO enabled APs, this check was
preventing adding more than one 4-addr AP_VLAN regardless of the MLO status.
Fix this by adding missing extra checks.

Fixes: ae960ee90bb1 ("wifi: mac80211: prevent VLANs on MLDs")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Link: https://lore.kernel.org/r/20221214130326.37756-1-nbd@nbd.name
Cc: stable@vger.kernel.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/iface.c