Skip to content

Commit

Permalink
add ipv4 leases into the associations list
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information
blogic committed May 24, 2022
1 parent db15ed7 commit 85104eb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion system/state.uc
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ cursor.foreach("network", "interface", function(d) {
ssid.mode = iface.mode;
ssid.bssid = iface.bssid;

if (length(stations[vap.ifname]))
if (length(stations[vap.ifname])) {
ssid.associations = stations[vap.ifname];
for (let assoc in ssid.associations)
if (length(ip4leases[assic.station]))
assoc.ipaddr_v4 = ip4leases[mac];
}


ssid.iface = vap.ifname;
Expand Down

0 comments on commit 85104eb

Please sign in to comment.