Configuring TWT on OpenWrt
Features > Target Wake Time (TWT)
General Configuration
The following guidance is provided for setting the TWT parameters.
TWT Wake Interval (us) - The current default is 30 seconds. The minimum value is recommended to be longer than the beacon interval (default beacon interval is 100ms) at a minimum, and probably a multiple of beacon intervals.
Minimum Wake Duration (us) - can be configured between 1 and 65280us, with the default being the maximum value. Values below 32640 have shown unreliable behaviour in field testing.
Setup command - note that only request and response are currently supported, though demand is also defined in the 802.11 standard.
This guidance doesn’t account for any duty cycle related restrictions that apply in some regions.
OpenWrt
TWT can be configured on STA devices, no changes are required on the AP. To enable TWT on a STA, browse to Network->Wireless in the UI:
Click ‘Edit’ on the HaLow network:
Scroll down to the interface configuration section, and select the ‘Power Save’ tab:
Check the checkbox to enable TWT. Additional options for configuring TWT will become visible.
These features are also available for configuration via UCI.
- Enable in the interface config as:
option twt '1' - Parameters have default values set, with:
setup_command=0
wake_interval=300000000
min_wake_duration=65982 - Note, the twt option does not automatically set:
vendor_keep_alive_offload=1.This should be done by the user in the wifi-device config, as above. - Parameters can be overridden, in the wifi-iface config, as:
option setup_command '1'
option wake_interval '1000000'
option min_wake_duration '123456'