From f44bfdb9fdb48c1298dcce4c1a0ab9ac8b65d396 Mon Sep 17 00:00:00 2001 From: Jay <44783760+jschenke488@users.noreply.github.com> Date: Tue, 29 Oct 2024 09:44:56 -0500 Subject: [PATCH] Fix another NPE when using two APs --- network/access_point.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/access_point.go b/network/access_point.go index 6cb312b2..dd44a6f1 100644 --- a/network/access_point.go +++ b/network/access_point.go @@ -344,6 +344,9 @@ func (ap *AccessPoint) updateTeamWifiBTU() error { } for i := range ap.TeamWifiStatuses { + if ap.TeamWifiStatuses[i] == nil { + continue + } output, err := ap.runCommand(fmt.Sprintf("luci-bwc -i %s && iwinfo %s assoclist", interfaces[i], interfaces[i])) if err == nil { ap.TeamWifiStatuses[i].MBits = parseBtu(output)