Increasing OpenWrt's default WiFi access point dtim_period

What would it take to boost the 'dtim_period' default from the current 2 to 3 (or even 5)?

3 is what Apple recommends...

https://blogs.arubanetworks.com/industries/802-11-tim-and-dtim-information-elements/
https://www.sniffwifi.com/2016/05/go-to-sleep-go-to-sleep-go-to-sleep.html
https://www.snbforums.com/threads/dtim-and-beacon-interval-with-iphones.20232/

Smartphones are known to drop incoming non-unicast packets if the AP's DTIM setting is too low.
They do this to stay asleep for longer and thus to save battery power...
Don't expect them to change...

This in turn results in all sorts of various connectivity problems as some ARP/ND/mDNS packets are lost...

I work on Android Networking and I think even 5 wouldn't be necessarily be a bad default value, but we should at least go to 3...

Why is the current default dtim_period '2' (at least per https://openwrt.org/docs/guide-user/network/wifi/basic ) - is this simply coming from hostapd sources? Or is this a deliberate choice on the part of the OpenWrt devs?

3 Likes