Force connect to WiFi channel
I am not tech savvy. I am staying at a hotel, I have an old MacBook Air and it has very bad problems getting WiFi here. I used Wireless Diagnostics, the hotel has different WiFi channels, I also used the option key plus clicking on the WiFi icon in the menu bar to see what’s going on. I can sometimes get WiFi if I keep forgetting the network in system preferences and/or turning off the WiFi and then turning it back on but I only get it for a few minutes. The WiFi always reverts to this channel (channel 11) that doesn’t work on my computer. I have seen the other channels work on my computer. I am not knowledgeable about programming, I wanted to try to make my computer automatically stay connected to a certain channel through Terminal but it didn’t work. I’m not sure if I entered the command right. Also I want to make sure I can set the WiFi back to normal when I leave here. I want to connect to channel 1, also there is another channel DFS, 140 that is 5 ghz and works faster but doesn’t seem to always work. This is the command I found online. I wasn’t clear if I was supposed to type sudo and then hit return and then type the rest of the command. I also wasn’t sure if I just type in this command when I open Terminal and it shows my name plus the $ sign or if I need to type anything else first and if I’m supposed to type exit after entering the command. Also like I said, I want to be able to set the WiFi back to normal when I leave here and I don’t know how I would do that either. Can anyone help with this? Thanks.
MacBook Air 13″, macOS 11.6