Raspberry crash if no webcam detected

Hi, I've been having wifi problems, like constant disconnecting, but only in this situation:
I've noticed that when the cam is connected there is not any problem, the wifi connection is stable,
and my ssh link is perfectly correct.

Every time, when I start the system, and there is not a webcam connected to it, it works for a minute, and then dissconects, and taking a look at the physic screen connected via hdmi, the log on gets stucked, and every command that I write on the terminal has no response, and there is no way to start another log in on a new terminal.

Any idea?
I'm working on a raspberry cm4 module on a waveshare board.
Thanks in advance

Hello @Gigi !

What is the thing with deleting the template right away?

Please answer in your next post: