Skip to content
Commit 5919a07d authored by Janusz Dziedzic's avatar Janusz Dziedzic Committed by Greg Kroah-Hartman
Browse files

cfg80211: correct bridge/4addr mode check



[ Upstream commit 689a0a9f ]

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: ad4bb6f8 ("cfg80211: disallow bridging managed/adhoc interfaces")
Signed-off-by: default avatarJanusz 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: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent dba9e632
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment