diff --git a/src/RaspAP/Networking/Hotspot/HostapdManager.php b/src/RaspAP/Networking/Hotspot/HostapdManager.php index 0caa1523..f0ba3874 100644 --- a/src/RaspAP/Networking/Hotspot/HostapdManager.php +++ b/src/RaspAP/Networking/Hotspot/HostapdManager.php @@ -209,9 +209,9 @@ class HostapdManager } // bridge handling - if (!empty($params['bridge'])) { + if (!empty($params['bridgeName'])) { $config[] = 'interface=' . $params['interface']; - $config[] = 'bridge=' . $params['bridge']; + $config[] = 'bridge=' . $params['bridgeName']; } else { $config[] = 'interface=' . $params['interface']; } diff --git a/src/RaspAP/Networking/Hotspot/HotspotService.php b/src/RaspAP/Networking/Hotspot/HotspotService.php index 1fff4bde..10e2f912 100644 --- a/src/RaspAP/Networking/Hotspot/HotspotService.php +++ b/src/RaspAP/Networking/Hotspot/HotspotService.php @@ -145,6 +145,7 @@ class HotspotService try { // normalize state flags $validated['interface'] = $apIface; + $validated["bridgeName"] = !empty($states["BridgedEnable"]) ? "br0" : null; $validated['bridge'] = !empty($states['BridgedEnable']); $validated['apsta'] = !empty($states['WifiAPEnable']); $validated['repeater'] = !empty($states['RepeaterEnable']);