Fixes accessing PHY status in AP+STA configurations
Signed-off-by: Felix Fietkau <nbd@nbd.name>
pending.call("wpa_supplicant", "phy_status", {
phy: phydev.phy,
- radio: phydev.radio,
+ radio: phydev.radio ?? -1,
});
return "check_phy";
case "check_phy":
}
pending.call("wpa_supplicant", "phy_set_state", {
phy: phydev.phy,
- radio: phydev.radio,
+ radio: phydev.radio ?? -1,
stop: true
});
return "wpas_stopped";
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;