Skip to content

Commit

Permalink
Merge branch 'fix_wifi_clients_null' into wifi_clients_exclude
Browse files Browse the repository at this point in the history
  • Loading branch information
stargieg committed Feb 3, 2025
1 parent 0fe5dec commit 5e53f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openwisp-monitoring/files/lib/openwisp-monitoring/wifi.lua
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function wifi.invert_rx_tx(interface)
end

function wifi.parse_hostapd_clients(clients,exclude_mac)
local data = {}
local data
for mac, properties in pairs(clients) do
if not exclude_mac[mac] then
properties.mac = mac
Expand All @@ -38,7 +38,7 @@ function wifi.parse_hostapd_clients(clients,exclude_mac)
end

function wifi.parse_iwinfo_clients(clients,exclude_mac)
local data = {}
local data
for _, p in pairs(clients) do
if not exclude_mac[p.mac] then
local client = {}
Expand Down

0 comments on commit 5e53f29

Please sign in to comment.