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>
This commit is contained in:
parent
28f534d953
commit
8943430b9f
1 changed files with 3 additions and 3 deletions
|
@ -189,7 +189,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||||
|
|
||||||
pending.call("wpa_supplicant", "phy_status", {
|
pending.call("wpa_supplicant", "phy_status", {
|
||||||
phy: phydev.phy,
|
phy: phydev.phy,
|
||||||
radio: phydev.radio,
|
radio: phydev.radio ?? -1,
|
||||||
});
|
});
|
||||||
return "check_phy";
|
return "check_phy";
|
||||||
case "check_phy":
|
case "check_phy":
|
||||||
|
@ -202,7 +202,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||||
}
|
}
|
||||||
pending.call("wpa_supplicant", "phy_set_state", {
|
pending.call("wpa_supplicant", "phy_set_state", {
|
||||||
phy: phydev.phy,
|
phy: phydev.phy,
|
||||||
radio: phydev.radio,
|
radio: phydev.radio ?? -1,
|
||||||
stop: true
|
stop: true
|
||||||
});
|
});
|
||||||
return "wpas_stopped";
|
return "wpas_stopped";
|
||||||
|
@ -211,7 +211,7 @@ function __iface_pending_next(pending, state, ret, data)
|
||||||
hostapd.printf(`hostapd.add_iface failed for phy ${phy} ifname=${bss.ifname}`);
|
hostapd.printf(`hostapd.add_iface failed for phy ${phy} ifname=${bss.ifname}`);
|
||||||
pending.call("wpa_supplicant", "phy_set_state", {
|
pending.call("wpa_supplicant", "phy_set_state", {
|
||||||
phy: phydev.phy,
|
phy: phydev.phy,
|
||||||
radio: phydev.radio,
|
radio: phydev.radio ?? -1,
|
||||||
stop: false
|
stop: false
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue