Configuring an OpenWrt AP for WNM Sleep
Features > WNM Sleep
The following instructions are for a Morse Micro OpenWRT 2.1.2 access point. It is assumed that you have access to the MM6108-Web GUI User Guide (version 3.0.1).
To configure the AP refer to section 3.1.2 Access point configuration. This will set up the AP in the default configuration.
BSS Max Idle Period Configuration
To allow STAs to enter WNM Sleep for a longer period of time, it is necessary to increase the BSS Max Idle Period of the AP from its default value. The BSS Max Idle Period needs to be set to at least the duration that the STA will be expected to sleep.
To configure the BSS Max Idle Period on a Morse Micro OpenWRT AP open the OpenWRT LuCI web interface.
1. Using the top navigation menu, browse to ‘Morse -> Access Point Configuration’ page
2. Navigate to the ‘Advanced - Wireless’ section and set the ‘Max Inactivity’ parameter to the desired value.
3. Click ‘Save’ to apply the configuration.
WNM Sleep Mode
In order to utilize WNM sleep we need to configure the AP enable WNM Sleep Mode – by default this is disabled. This configuration option is not exposed via the LuCI interface. It is configured using a generic UCI option via the shell – see
https://openwrt.org/docs/guide-user/network/wifi/basic and Section 7, Advanced CLI & manual configuration, of the MM6108-Web GUI User Guide.
Navigate to the top menu and select Morse -> Shell (for advanced users the CLI is also available via SSH and serial console). The shell credentials are the same as the web UI.
Once you have logged in you will be greeted with a Linux shell. This is where you will enter commands.
1. We need to get the name of the wireless interface that we wish to configure. To do this we can run cat /etc/config/wireless. This is also where we can view the configured parameters. The wifi-iface with our HaLow AP configuration is the interface we want to modify. In the case of the example below this is default_radio1.
2. Now that we have the interface we can set the UCI parameter
a. Configure the parameter for the interface:
uci set wireless.default_radio1.wnm_sleep_mode=1
b. Display the changes that we have made:
uci changes
c. This applies the changes to the interface:
uci commit
3. Finally we need to restart the interface for the changes to take effect
service network restart