]> 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)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 25 Oct 2021 13:23:20 +0000 (15:23 +0200)
commit689a0a9f505f7bffdefe6f17fddb41c8ab6344f6
treecdd143266a82c8c7cf3ca1b38c8cf65b071e2cb5
parent09b1d5dc6ce1c9151777f6c4e128a59457704c97
cfg80211: correct bridge/4addr mode check

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: ad4bb6f8883a ("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>
net/wireless/util.c