Table of Contents

Enabling a Wi-Fi access point on OpenWrt

Devices with Ethernet ports have Wi-Fi turned off by default for security reasons. This page contains basic settings to enable Wi-Fi.

Setup with the web GUI

  1. Connect to LuCI at http://192.168.1.1, and login with your “root” password.
  2. Go to Network → Wireless. This page lists a separate Wi-Fi network for each physical radio (e.g. one for 2.4 GHz and one for 5 GHz).
  3. For each Wi-Fi network, click 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.
  4. Click Save & Apply.
  5. Finally, click Enable on each network you would like to activate.

About the Country Code

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 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 code on the link.

Troubleshooting

Using the command line

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: