Skip to content

Commit

Permalink
Update unifi_client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii authored May 13, 2024
1 parent 8d0dc89 commit ad533fd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions unifi_respondd/unifi_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,12 @@ def get_client_count_for_ap(ap_mac, clients, cfg):

def get_ap_channel_usage(ssids, cfg):
"""This function returns the channels used for the Freifunk SSIDs"""
channel5 = None
rx_bytes5 = None
tx_bytes5 = None
channel24 = None
rx_bytes24 = None
tx_bytes24 = None
for ssid in ssids:
if re.search(cfg.ssid_regex, ssid.get("essid", "")):
channel = ssid.get("channel", 0)
Expand Down

0 comments on commit ad533fd

Please sign in to comment.