diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index e75416f5..9d1f6f23 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -1337,7 +1337,22 @@ if (phycount > 1 and (wifi_enable ~= "1" or wifi2_enable ~= "1")) or (phycount = end end - html.print("
WAN Wifi ClientEnable  ") + local connected = "/notdone.png" + local cmessage = "Not connected." + local wanintf = aredn.hardware.get_iface_name("wan") + local essid = capture_and_match("iwinfo " .. wanintf .. " info", 'ESSID: "(.+)"') + if essid == wifi3_ssid then + if pingOK then + connected = "/donedone.png" + cmessage = "Connected to Wifi and Internet." + else + connected = "/done.png" + cmessage = "Connected to Wifi. Not connected to Internet." + end + end + + html.print("
WAN Wifi Client ") + html.print("Enable  ") if wifi_enable ~= "1" and wifi2_enable ~= "1" and phycount > 1 then html.print("WAN Wifi Client band