TL-WA3001 is miscalculating IP lease expiration?
Note that I had to enter TL-WA901N as the model in this post as the TL-WA3001 isn't listed. Feel free to update that field.
I'm using a TL-WA3001 as the Wi-Fi access point for my LAN. The WA is in Access Point Mode and is hardwired into the router/firewall/DHCP server which is running OPNsense v25.1.1. The WA doesn't seem to keep the correct time for when its IP lease will expire.
Below is a combination of logs from both units. At 14:48:49 the WA asked to have its lease renewed. OPNsense re-issued the lease for 86400 seconds (1 day). 34 seconds later the WA claimed the lease was half over and asked to renew it. OPNsense happily complied and re-issed it for another 86400 seconds. This continues forever at about 34 second intervals. Other than this the LAN wired/Wi-Fi devices are all working correctly. This lease problem appears to be in the WA firmware.
===================================================================
WA3001 log
2025-02-18 14:49:57 DHCPC INFO [14984] receive ack from server with ip 192.168.15.151, options(subnet=255.255.255.0;router=192.168.15.1;dns=192.168.15.6;lease=86400;serverid=192.168.15.1;cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:49:57 DHCPC INFO [14984] send select request with options(cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:49:57 DHCPC INFO [14984] 1/2 lease passed, enter renewing state
2025-02-18 14:49:23 DHCPC INFO [14984] receive ack from server with ip 192.168.15.151, options(subnet=255.255.255.0;router=192.168.15.1;dns=192.168.15.6;lease=86400;serverid=192.168.15.1;cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:49:23 DHCPC INFO [14984] send select request with options(cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:49:23 DHCPC INFO [14984] 1/2 lease passed, enter renewing state
========================================================
OPNsense log
2025-02-18T14:48:49-05:00 Informational kea-dhcp4 INFO [kea-dhcp4.packets.0x2934574bb000] DHCP4_PACKET_SEND [hwtype=1 a8:6e:84:fe:11:a6], cid=[01:a8:6e:84:fe:11:a6], tid=0xbaa0e63a: trying to send packet DHCPACK (type 5) from 192.168.15.1:67 to 192.168.15.151:68 on interface igc1
2025-02-18T14:48:49-05:00 Informational kea-dhcp4 INFO [kea-dhcp4.leases.0x2934574bb000] DHCP4_LEASE_ALLOC [hwtype=1 a8:6e:84:fe:11:a6], cid=[01:a8:6e:84:fe:11:a6], tid=0xbaa0e63a: lease 192.168.15.151 has been allocated for 86400 seconds
2025-02-18T14:48:49-05:00 Informational kea-dhcp4 INFO [kea-dhcp4.packets.0x2934574bb000] DHCP4_PACKET_RECEIVED [hwtype=1 a8:6e:84:fe:11:a6], cid=[01:a8:6e:84:fe:11:a6], tid=0xbaa0e63a: DHCPREQUEST (type 3) received from 192.168.15.151 to 192.168.15.1 on interface igc1
2025-02-18T14:48:49-05:00 Informational kea-dhcp4 INFO [kea-dhcp4.dhcp4.0x2934574bb000] DHCP4_QUERY_LABEL received query: [hwtype=1 a8:6e:84:fe:11:a6], cid=[01:a8:6e:84:fe:11:a6], tid=0xbaa0e63a
===================================================================
WA3001 log
2025-02-18 14:48:48 dhcpc[14984]: <6> 210054 receive ack from server with ip 192.168.15.151, options(subnet=255.255.255.0;router=192.168.15.1;dns=192.168.15.6;lease=86400;serverid=192.168.15.1;cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:48:48 dhcpc[14984]: <6> 210053 send select request with options(cliid=01/a8:6e:84:fe:11:a6:;)
2025-02-18 14:48:48 dhcpc[14984]: <6> 210058 1/2 lease passed, enter renewing state