On startup of my laptop, all wifi networks are detected, my laptop connects to the wifi, but I don’t have internet and get wifi with a question mark icon.

Upon running the following command I have immediately an internet connection: resolvectl --no-pager status

Does anybody have a clue what is going on, and how to resolve it?
I am running Fedora Linux 40 (Workstation Edition) firmware Version 2.29 DNS4, DNS6 : Automatic