]> git.ipfire.org Git - ipfire-2.x.git/commit
udev: Set wireless interfaces into AP mode before adding to bridge
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2020 13:48:19 +0000 (13:48 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Sun, 16 Feb 2020 15:31:06 +0000 (15:31 +0000)
commitb53d8ae99b8e2f4164824413b2f771ae54dbe9a7
tree7e517cd2f5daae3528b2600363854d1b73d30df1
parent943eab6695bfd0ea20178e44effc97b4b61b0e14
udev: Set wireless interfaces into AP mode before adding to bridge

Wireless interfaces cannot be added to the bridge when they are
still running in station mode. At boot time, the interface will
be created and it is attempted to attach it to a bridge, which
fails.

This patch now checks whether the wireless interface is going to
be an access point, changes the mode accordingly and then attaches
the interface to the bridge.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Tested-by: Daniel Weismüller <daniel.weismueller@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/udev/network-hotplug-bridges