Setting wireless regulatory domain in OpenWrt

This post shows how to set the correct regulatory domain in OpenWrt to allow the selection of the correct frequency ranges for your country, using the crda package.

Install crda

Open a shell on your router, and update your package list and then install crda with the following commands:

opkg update; opkg install crda

Add the following line to your /etc/profile

export COUNTRY=US

Add the following line to each radio section you want to regulate in your /etc/config/wireless

option country US

Put your country as appropriate (i.e. IT).

Double check

Reboot your router, then type:

iw reg get

to check the available frequency ranges for your country, and:

iw list

to check the nearby wireless networks.

References:

  1. OpenWrt forum

Tags: ,

Rispondi

Questo sito usa Akismet per ridurre lo spam. Scopri come i tuoi dati vengono elaborati.