Skip to content

Commit

Permalink
Fix another NPE when using two APs (fixes #165).
Browse files Browse the repository at this point in the history
  • Loading branch information
patfair committed Oct 22, 2023
1 parent 20a5cca commit 6171f0d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions network/access_point.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,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)
Expand Down

0 comments on commit 6171f0d

Please sign in to comment.