mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
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>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
943eab6695
commit
b53d8ae99b
@@ -93,6 +93,10 @@ case "${MODE}" in
|
||||
#ip link set "${BRIDGE}" up
|
||||
fi
|
||||
|
||||
if grep -q "INTERFACE=${INTERFACE}" "/var/ipfire/wlanap/settings" 2>/dev/null; then
|
||||
iw dev "${INTERFACE}" set type __ap
|
||||
fi
|
||||
|
||||
# Attach the physical device
|
||||
logger "Attach ${INTERFACE} to ${BRIDGE}"
|
||||
ip link set dev "${INTERFACE}" master "${BRIDGE}"
|
||||
|
||||
Reference in New Issue
Block a user