I was having a lot of trouble setting up my i3 roomba. Finally got it to work by adding the following:
config wifi-iface 'wifinet1'
option device 'radio0'
option mode 'ap'
option ssid 'XXXX'
option key 'YYYYY'
option encryption 'psk2'
option wpa_disable_eapol_key_retries '1'
option network 'lan'
option skip_inactivity_poll '1' <<<<
option max_inactivity '600' <<<<
I had noticed a lot of the following in the logs:
Wed Nov 29 23:08:46 2023 daemon.info hostapd: wlan0: STA 0e:5d:7d:d2:6e:98 IEEE 802.11: disassociated
Wed Nov 29 23:08:47 2023 daemon.info hostapd: wlan0: STA 0e:5d:7d:d2:6e:98 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Wed Nov 29 23:09:08 2023 daemon.info hostapd: wlan0: STA 0e:5d:7d:d2:6e:98 IEEE 802.11: authenticated
Wed Nov 29 23:09:08 2023 daemon.info hostapd: wlan0: STA 0e:5d:7d:d2:6e:98 IEEE 802.11: associated (aid 2)
And when running the setup, I could see a new device appear in the list of connected devices, but it would disconnect before receiving an IP address.
So glad to get this working I figure it might be a common thing with IoT devices as they are very slow.