mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
hostapd: fix passing radio parameter in wpa_supplicant calls
Fixes accessing PHY status in AP+STA configurations
Signed-off-by: Felix Fietkau <nbd@nbd.name>
(cherry picked from commit 8943430b9f
)
This commit is contained in:
parent
f0ff244c69
commit
e40367fa99
@ -186,7 +186,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||
|
||||
pending.call("wpa_supplicant", "phy_status", {
|
||||
phy: phydev.phy,
|
||||
radio: phydev.radio,
|
||||
radio: phydev.radio ?? -1,
|
||||
});
|
||||
return "check_phy";
|
||||
case "check_phy":
|
||||
@ -199,7 +199,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||
}
|
||||
pending.call("wpa_supplicant", "phy_set_state", {
|
||||
phy: phydev.phy,
|
||||
radio: phydev.radio,
|
||||
radio: phydev.radio ?? -1,
|
||||
stop: true
|
||||
});
|
||||
return "wpas_stopped";
|
||||
@ -208,7 +208,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||
hostapd.printf(`hostapd.add_iface failed for phy ${phy} ifname=${bss.ifname}`);
|
||||
pending.call("wpa_supplicant", "phy_set_state", {
|
||||
phy: phydev.phy,
|
||||
radio: phydev.radio,
|
||||
radio: phydev.radio ?? -1,
|
||||
stop: false
|
||||
});
|
||||
return null;
|
||||
|
Loading…
Reference in New Issue
Block a user