Devices with Ethernet ports have Wi-Fi turned off by default for security reasons. This page contains basic settings to enable Wi-Fi.
Edit to configure (if not there click Add to create a network):<!-- -->
* In **General Setup**, select the ''Country Code'' where your OpenWrt device is used. This is to ensure your Wi-Fi meets local regulations. Note this was formerly in the **Advanced Settings** tab.
* In **General Setup**, enter an ''ESSID'', the name for your Wi-Fi network.
* In **Wireless Security**, select an ''Encryption'' method, "WPA2-PSK" or "WPA3-SAE" is recommended.
* In **Wireless Security**, enter a ''Key'', the password devices use to connect to your Wi-Fi network.
* As desired, configure any other settings such as a channel and width, KRACK countermeasures, or 802.11r.
* Click ''Save'' when you're done with these settings.
- Click ''Save & Apply''.
- Finally, click ''Enable'' on each network you would like to activate.
To comply with your local regulatory laws, the country code for the radios on your device must be set. The default 00 (Rest of the World) country code limits operation to the limited set of channels and transmission power that is allowed anywhere in the world. You will typically have more available channels and higher power levels when you set the country code to your own. Be aware that setting the wrong country code could get you in trouble with local authorities because selecting a channel or transmitting at higher power than is allowed could interfere with other equipment, like radar. You can also interfere with your neighbor's devices.
On Linux based devices, like OpenWrt, the database of regulatory domains comes from the wireless-regdb. In there is the list of countries sorted alphabetically by their [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO 3166-1 alpha-2) with allowed frequencies, channel bandwith, and transmission strength (dBm) or power (mW). If you plan to set your country code using the web GUI, do that from the dropdown, but if you intend to do it via command line, take note of your [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO 3166-1 alpha-2) code on the link.
This section is not a complete howto on creating a fine tuned Wi-Fi network. It just shows important steps to set the basics for enabling Wi-Fi on the command line and meet the legal regulations of your country:
$ ssh root@192.168.1.1uci show wireless to see all the wireless configurations and how many Wi-Fi chips (called “radio” in the config) there are on the device. Identify the radio number (0, 1, 2, etc) that are you aiming to configure, e.g., radio0, radio1, radio2.uci commit wireless.wifi reload.