From 2eb4ae808864cb8df91d9811675cdd7e3310359c Mon Sep 17 00:00:00 2001 From: Taikuh Date: Wed, 25 Mar 2020 19:50:04 +0800 Subject: [PATCH] Replace arp with iw station dump --- templates/dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/dashboard.php b/templates/dashboard.php index 7f0737a1..4886888e 100755 --- a/templates/dashboard.php +++ b/templates/dashboard.php @@ -11,7 +11,7 @@ if ($arrHostapdConf['BridgedEnable'] == 1) { exec('iw dev '.$client_iface.' station dump | grep -oE '.$MACPattern, $clients); } else { $moreLink = "index.php?page=dhcpd_conf"; - exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.$client_iface.' -n | grep -oE '.$MACPattern.' | paste -sd "|")', $clients); + exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(iw dev '.$client_iface.' station dump | grep -oE '.$MACPattern.' | paste -sd "|")', $clients); } $ifaceStatus = $wlan0up ? "up" : "down"; ?>