Recovery: reindex interrupted sessions and fix packet counts; actionable AP activation error

This commit is contained in:
Andy Dixon
2026-10-09 18:22:56 +01:00
parent 43cbcc4076
commit d8bfcee2fc
4 changed files with 72 additions and 4 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ func activate(ctx context.Context, n config.Network, files map[string][]byte, st
}
if n.AP.Enabled {
if _, err := run(ctx, 60*time.Second, "nmcli", "--wait", "45", "connection", "up", netgen.ConnName); err != nil {
return err
return fmt.Errorf("the access point did not start. Likely causes: the band/channel is not permitted for country %s or not supported by this radio, or the radio does not support %s in AP mode (%w)", n.AP.Country, strings.ToUpper(n.AP.Security), err)
}
step("access point %q activated", n.AP.SSID)
if _, err := run(ctx, 30*time.Second, "systemctl", "restart", "pilens-dnsmasq.service"); err != nil {