TP-Link TL-WR802N doesn't connect to WiFi on boot

I have a TP-Link TL-WR802N v4 running OpenWrt 21.02.2 that's not connecting to WiFi consistently after rebooting. I noticed that if the wwan interface comes up and triggers a firewall reload first, WiFi doesn't connect after booting. If the lan triggers a firewall reload first, WiFi works fine. These are the relevant system.log lines:

WiFi Fails after Reboot:

Sun Feb 27 14:41:50 2022 user.notice firewall: Reloading firewall due to ifup of wwan (wlan0)
Sun Feb 27 14:41:50 2022 user.notice firewall: Reloading firewall due to ifup of lan (eth0)

WiFi Works after Reboot:

Sun Feb 27 14:39:42 2022 user.notice firewall: Reloading firewall due to ifup of lan (eth0)
Sun Feb 27 14:39:42 2022 user.notice firewall: Reloading firewall due to ifup of wwan (wlan0)

As a workaround, I added "ifup wwan" in the rc.local startup script to restart the wwan interface after a reboot. WiFi is now working consistently after rebooting.

Should the order the interfaces load make a difference?