Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wireless: T6318: move country-code to a system wide configuration #1483

Merged
merged 1 commit into from
Jun 17, 2024

Conversation

c-po
Copy link
Member

@c-po c-po commented Jun 15, 2024

Change Summary

Wireless devices are subject to regulations issued by authorities. For any given AP or router, there will most likely be no case where one wireless NIC is located in one country and another wireless NIC in the same device is located in another country, resulting in different regulatory domains to apply to the same box.

Currently, wireless regulatory domains in VyOS need to be configured per-NIC:
set interfaces wireless wlan0 country-code us

This leads to several side-effects:

  • When operating multiple WiFi NICs, they all can have different regulatory domains configured which might offend legislation.
  • Some NICs need additional entries to /etc/modprobe.d/cfg80211.conf to apply regulatory domain settings, such as: "options cfg80211 ieee80211_regdom=US" This is true for the Compex WLE600VX. This setting cannot be done per-interface.

Migrate the first found wireless module country-code from the wireless interface CLI to: system wireless country-code

Related Task(s)

Related PR(s)

Backport

NO

Checklist:

@c-po c-po requested a review from rebortg as a code owner June 15, 2024 19:51
@dmbaturin dmbaturin merged commit 1ce53b2 into current Jun 17, 2024
4 checks passed
@c-po c-po deleted the wireless-regdomain branch June 17, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants