@uxes
I used journalctl to check and these are the logs.
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9518] device (wlan0): Activation: (wifi) association took too long
I tried using the --ask option for nmcli and this is what happens.
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9561] device (wlan0): Activation: (wifi) asking for new secrets
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9588] device (wlan0): no secrets: No agents were available for this request.
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9518] device (wlan0): Activation: (wifi) association took too long
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <info> [1735674844.9522] device (wlan0): state change: config -> need-auth (reason 'none', sys-iface-state: 'managed')
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9561] device (wlan0): Activation: (wifi) asking for new secrets
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9588] device (wlan0): no secrets: No agents were available for this request.
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <info> [1735674844.9590] device (wlan0): state change: need-auth -> failed (reason 'no-secrets', sys-iface-state: 'managed')
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <warn> [1735674844.9674] device (wlan0): Activation: failed for connection 'anon'
Dec 31 14:54:04 ubuntu-phablet NetworkManager[1316]: <info> [1735674844.9703] device (wlan0): state change: failed -> disconnected (reason 'none', sys-iface-state: 'managed')
Dec 31 14:54:07 ubuntu-phablet NetworkManager[1316]: <info> [1735674847.3857] device (wlan0): supplicant interface state: scanning -> disconnected