Skip to content

Commit

Permalink
hostapd: fix passing radio parameter in wpa_supplicant calls
Browse files Browse the repository at this point in the history
Fixes accessing PHY status in AP+STA configurations

Signed-off-by: Felix Fietkau <[email protected]>
  • Loading branch information
nbd168 committed Dec 19, 2024
1 parent 28f534d commit 8943430
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package/network/services/hostapd/files/hostapd.uc
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,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":
Expand All @@ -202,7 +202,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";
Expand All @@ -211,7 +211,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;
Expand Down

0 comments on commit 8943430

Please sign in to comment.