Troubles connecting to a busy AP

Hello guys.

I have a TP-Link CPE610 that I use as client to connect to a public access point that is a little congested. Sometimes it can take more than one hour to successfully associate to the AP, however I have tested a CPE520 with stock firmware and it associates within few minutes.

I'm aware that openwrt's wpa_supplicant adds an incremental delay between failed connection attempts. To avoid this, I wrote a script that checks every 15 seconds if it is already connected, and if not, it resets the interface to restart the counter. That way every 15 seconds it performs a new attempt to connect.

I'm wondering if I could change any settings in openwrt to imitate the behaviour of the stock firmware. I'm pasting below an excerpt the logs of both devices, in case it's helpful.

Any help would be appreciated. Thanks in advance.

CPE610 with OpenWrt

16:31:40 kern.info kernel: [16530.059383] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
16:31:40 daemon.notice wpa_supplicant[23852]: Successfully initialized wpa_supplicant
16:31:41 daemon.notice netifd: Interface 'wwan' is enabled
16:31:43 daemon.notice wpa_supplicant[23853]: wlan0: SME: Trying to authenticate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:43 kern.info kernel: [16532.825287] wlan0: authenticate with 80:b5:75:aa:eb:f0
16:31:43 kern.info kernel: [16532.847542] wlan0: send auth to 80:b5:75:aa:eb:f0 (try 1/3)
16:31:43 daemon.notice wpa_supplicant[23853]: wlan0: Trying to associate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:43 kern.info kernel: [16532.856758] wlan0: authenticated
16:31:43 kern.info kernel: [16532.872385] wlan0: associate with 80:b5:75:aa:eb:f0 (try 1/3)
16:31:43 kern.info kernel: [16532.899301] wlan0: RX AssocResp from 80:b5:75:aa:eb:f0 (capab=0x1401 status=17 aid=0)
16:31:43 kern.info kernel: [16532.907317] wlan0: 80:b5:75:aa:eb:f0 denied association (code=17)
16:31:43 daemon.notice wpa_supplicant[23853]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=80:b5:75:aa:eb:f0 status_code=17
16:31:43 daemon.notice wpa_supplicant[23853]: wlan0: SME: Deauth request to the driver failed
16:31:46 daemon.notice wpa_supplicant[23853]: wlan0: SME: Trying to authenticate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:46 kern.info kernel: [16535.565582] wlan0: authenticate with 80:b5:75:aa:eb:f0
16:31:46 kern.info kernel: [16535.587858] wlan0: send auth to 80:b5:75:aa:eb:f0 (try 1/3)
16:31:46 kern.info kernel: [16535.612474] wlan0: authenticated
16:31:46 daemon.notice wpa_supplicant[23853]: wlan0: Trying to associate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:46 kern.info kernel: [16535.642426] wlan0: associate with 80:b5:75:aa:eb:f0 (try 1/3)
16:31:46 kern.info kernel: [16535.667937] wlan0: RX AssocResp from 80:b5:75:aa:eb:f0 (capab=0x1401 status=17 aid=1590)
16:31:46 kern.info kernel: [16535.676242] wlan0: 80:b5:75:aa:eb:f0 denied association (code=17)
16:31:46 daemon.notice wpa_supplicant[23853]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=80:b5:75:aa:eb:f0 status_code=17
16:31:46 daemon.notice wpa_supplicant[23853]: wlan0: SME: Deauth request to the driver failed
16:31:49 daemon.notice wpa_supplicant[23853]: wlan0: SME: Trying to authenticate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:49 kern.info kernel: [16538.746165] wlan0: authenticate with 80:b5:75:aa:eb:f0
16:31:49 kern.info kernel: [16538.768415] wlan0: send auth to 80:b5:75:aa:eb:f0 (try 1/3)
16:31:49 daemon.notice wpa_supplicant[23853]: wlan0: Trying to associate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:49 kern.info kernel: [16538.777782] wlan0: authenticated
16:31:49 kern.info kernel: [16538.792392] wlan0: associate with 80:b5:75:aa:eb:f0 (try 1/3)
16:31:49 kern.info kernel: [16538.799965] wlan0: RX AssocResp from 80:b5:75:aa:eb:f0 (capab=0x1401 status=17 aid=0)
16:31:49 kern.info kernel: [16538.808033] wlan0: 80:b5:75:aa:eb:f0 denied association (code=17)
16:31:49 daemon.notice wpa_supplicant[23853]: wlan0: CTRL-EVENT-ASSOC-REJECT bssid=80:b5:75:aa:eb:f0 status_code=17
16:31:49 daemon.notice wpa_supplicant[23853]: wlan0: SME: Deauth request to the driver failed
16:31:53 daemon.notice wpa_supplicant[23853]: wlan0: SME: Trying to authenticate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:53 kern.info kernel: [16542.365485] wlan0: authenticate with 80:b5:75:aa:eb:f0
16:31:53 kern.info kernel: [16542.387748] wlan0: send auth to 80:b5:75:aa:eb:f0 (try 1/3)
16:31:53 kern.info kernel: [16542.412392] wlan0: authenticated
16:31:53 daemon.notice wpa_supplicant[23853]: wlan0: Trying to associate with 80:b5:75:aa:eb:f0 (SSID='ssid here' freq=5765 MHz)
16:31:53 kern.info kernel: [16542.442415] wlan0: associate with 80:b5:75:aa:eb:f0 (try 1/3)
16:31:53 kern.info kernel: [16542.562411] wlan0: associate with 80:b5:75:aa:eb:f0 (try 2/3)
16:31:53 kern.info kernel: [16542.573893] wlan0: deauthenticated from 80:b5:75:aa:eb:f0 while associating (Reason: 9=STA_REQ_ASSOC_WITHOUT_AUTH)
16:31:53 daemon.notice wpa_supplicant[23853]: wlan0: CTRL-EVENT-DISCONNECTED bssid=80:b5:75:aa:eb:f0 reason=9
16:31:53 daemon.notice wpa_supplicant[23853]: wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="ssid here" auth_failures=1 duration=10 reason=CONN_FAILED

That repeats over and over until it finally gets associated and receive dhcp settings.

CPE520 with stock firmware

07:41:05 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:41:07 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:41:09 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:41:13 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:41:15 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:41:17 CPE520 kern.notice <25>DHCPC DHCP Service unavailable, recv no OFFER  90
07:42:17 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:42:19 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:42:21 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:42:25 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:42:27 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:42:29 CPE520 kern.notice <25>DHCPC DHCP Service unavailable, recv no OFFER  90
...
07:47:05 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:47:07 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:47:09 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:47:14 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:47:16 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 1 107
07:47:18 CPE520 kern.notice <25>DHCPC DHCP Service unavailable, recv no OFFER  90
07:47:20 CPE520 kern.notice <25>DHCPC perform a DHCP renew  71
07:47:20 CPE520 kern.notice <25>DHCPC Send DISCOVER with request ip 0.0.0.0 and unicast flag 0 107
07:47:20 CPE520 kern.notice <25>DHCPC Recv OFFER from server 10.198.103.1 with ip 10.198.103.204 109
07:47:20 CPE520 kern.notice <25>DHCPC Send REQUEST to server 10.198.103.1 with request ip 10.198.103.2                                                                                        04 117
07:47:21 CPE520 kern.notice <25>DHCPC Recv ACK from server 10.198.103.1 with ip 10.198.103.204 lease t                                                                                        ime 259200 125
07:47:21 CPE520 kern.notice <25>DHCPC:GET ip:10.198.103.204 mask:255.255.255.0 gateway:10.198.103.1 dn                                                                                        s1:181.225.231.110 dns2:181.225.231.120 static route:0 169
07:47:21 CPE520 kern.notice <25>Dynamic IP(DHCP Client) obtained an IP successfully  96