]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: correct bridge/4addr mode check
authorJanusz Dziedzic <janusz.dziedzic@gmail.com>
Sun, 24 Oct 2021 20:15:46 +0000 (22:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Nov 2021 18:46:15 +0000 (19:46 +0100)
commit3485f135651d69c2bdfb4e2a49f6a2d60112a2f8
tree398f0f89265a24e51bd66c20a1e3524a60679b41
parentd65ac1e635f30676d7f39790695cdb8208421f4d
cfg80211: correct bridge/4addr mode check

[ Upstream commit 689a0a9f505f7bffdefe6f17fddb41c8ab6344f6 ]

Without the patch we fail:

$ sudo brctl addbr br0
$ sudo brctl addif br0 wlp1s0
$ sudo iw wlp1s0 set 4addr on
command failed: Device or resource busy (-16)

Last command failed but iface was already in 4addr mode.

Fixes: 7fef329c9314 ("cfg80211: disallow bridging managed/adhoc interfaces")
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@gmail.com>
Link: https://lore.kernel.org/r/20211024201546.614379-1-janusz.dziedzic@gmail.com
[add fixes tag, fix indentation, edit commit log]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/util.c