Skip to content

net: require WiFi country in first-run wizard - #166

Merged
Cd1s merged 3 commits into
mainfrom
fix/161-wifi-country
Oct 18, 2026
Merged

Cd1s merged 3 commits into
mainfrom
fix/161-wifi-country

Conversation

@Cd1s

@Cd1s Cd1s commented Oct 18, 2026

Copy link
Copy Markdown
Owner

What

When the first-run wizard enables WiFi, it now requires a confirmed regulatory country code. The wizard suggests a code from the browser locale or time zone and requires an explicit confirmation; when no suggestion is available, it requires a country selection. Backend WiFi validation enforces the same rule for every config with enabled radios. The WiFi module docs and English UI dictionary are updated, with a 360px mock screenshot included.

Why

An empty country code can leave hostapd without a regulatory domain and silently restrict 5 GHz channels. The wizard now makes the compliance choice visible and prevents an empty country from reaching apply.

Verification

  • cd mr && gofmt -l . && go vet ./...
  • cd mr && go test -count=1 ./...
  • python3 tools/i18n.py check; node --check rootfs/www/ui/core.js
  • sh tools/ci.sh — ALL CHECKS PASSED
  • Chinese mock UI screenshot at 360px: wizard-wifi-360.png

#151 remaining review items were already completed by #157 (API wizard regression, WAN detection tuning and DHCP OFFER doctor hint); this PR resolves its WiFi-country follow-up.

Closes #161
Refs #151

@Cd1s
Cd1s force-pushed the fix/161-wifi-country branch from 6b69c23 to f8ba1c7 Compare October 18, 2026 07:57
@Cd1s
Cd1s merged commit 27f1509 into main Oct 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

wifi: define wizard behavior when regulatory country is empty

1 participant