About the wireless connection to upsuqared

Hi everyone, I can't connect to the wifi by the dongle.
Here is the website I followed: https://www.linuxbabe.com/ubuntu/connect-to-wi-fi-from-terminal-on-ubuntu-18-04-19-04-with-wpa-supplicant
Here is the command on my board: wlxc... - is my dongle name, ourname - is the wifi name, password - is the password of ourname.

upsquared@ubuntu:~$ iwconfig
wlxc… IEEE 802.11 ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=20 dBm
Retry short limit:7 RTS thr=2347 B Fragment thr:off
Power Management:off

enp2s0 no wireless extensions.

lo no wireless extensions.

docker0 no wireless extensions.

enp3s0 no wireless extensions.

upsquared@ubuntu:~$ sudo iwlist wlxc… scan | grep ESSID
ESSID:"GMlab-01"
ESSID:"RSL_lab"
ESSID:"ourname"
upsquared@ubuntu:~$ sudo apt install wpasupplicant
Reading package lists... Done
Building dependency tree
Reading state information... Done
wpasupplicant is already the newest version (2.4-0ubuntu6.6).
0 upgraded, 0 newly installed, 0 to remove and 139 not upgraded.
upsquared@ubuntu:~$ wpa_passphrase ourname password | sudo tee /etc/wpa_suppli cant.conf
network={
ssid=" ourname "
#psk=" password "
psk=0e3f4feffac29e9ec76530aefd9d06d963d35a4ea6fc93cc61565d5eeddd9cf9
}

upsquared@ubuntu:~$ sudo wpa_supplicant -c /etc/wpa_supplicant.conf -i wlxc…
Successfully initialized wpa_supplicant
wlxc…: SME: Trying to authenticate with 6c:72:20:3f:2f:78 (SSID=' ourname ' freq=2462 MHz)
wlxc…: Trying to associate with 6c:72:20:3f:2f:78 (SSID=' ourname ' fre q=2462 MHz)
wlxc…: Associated with 6c:72:20:3f:2f:78
wlxc…: CTRL-EVENT-DISCONNECTED bssid=6c:72:20:3f:2f:78 reason=3 locall y_generated=1
wlxc…: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlxc…: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlxc…: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1

It continued the last command repeatedly... I don't know what is the problem.

Thank you!

Answers

Privacy Policy