I. BACKGROUND
1.1 [Email protected]:~$ lsb_release-a
No LSB modules is available.
Distributor Id:ubuntu
Description:ubuntu 16.04.3 LTS
release:16.04
Codename:xenial
1.2 USB Wireless Card
[Email protected]:~$ lsusb|grep Wireless
Bus 001 Device 003:id 0bda:8179 Realtek Semiconductor Corp rtl8188eus 802.11n Wireless Network Adapter
1.3 USB Wireless Card driver used
[Email protected]:~$ lsmod |grep 8188
R8188eu 454656 0
cfg80211 565248 2 Wl,r8188eu
1.4 Lists the current status of the current wireless card device
[Email protected]:~$ sudo rfkill list
0:phy0:wireless LAN
Soft Blocked:no
Hard Blocked:no
1:brcmwl-0: Wireless LAN
Soft Blocked:no
Hard Blocked:no
1.5 List The configuration of the specified wireless network card
[Email protected]:~$ sudo iwconfig wlan1
Wlan1 unassociated Nickname: "<[email protected]>"
mode:managed frequency=2.412 GHz Access point:not-associated
sensitivity:0/0
Retry:off RTS Thr:off Fragment Thr:off
Encryption Key:off
Power Management:off
Link quality:0 Signal level:0 Noise level:0
Rx Invalid nwid:0 Rx Invalid crypt:0 Rx Invalid frag:0
Tx Excessive retries:0 Invalid misc:0 Missed beacon:0
From here you can see the current network card at 2.412GHz frequency
1.6 Listing information for the wireless signal to be connected
[Email protected]:~$ sudo iwlist wlan1 scan
Ell 10-ADDRESS:62:38:3A:43:12:C3
ESSID: "Mywifi"
Protocol:ieee 802.11BGN
Mode:master
frequency:2.472 GHz (Channel 13)
Encryption Key:on
Bit rates:144 MB/s
Extra:wpa_ie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
IE:WPA Version 1
Group Cipher:tkip
Pairwise ciphers (2): TKIP CCMP
Authentication Suites (1): PSK
Extra:rsn_ie=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Ie:ieee 802.11I/WPA2 Version 1
Group Cipher:tkip
Pairwise ciphers (2): TKIP CCMP
Authentication Suites (1): PSK
quality:0 Signal level:0 Noise level:0
From here you can see the chan=13 of the wifi you want to connect to
1.7 list frequency supported by NIC
[Email protected]:~$ sudo iwlist wlan1 frequency
Wlan1 channels in total; Available frequencies:
Channel 01:2.412 GHz
Channel 02:2.417 GHz
Channel 03:2.422 GHz
Channel 04:2.427 GHz
Channel 05:2.432 GHz
Channel 06:2.437 GHz
Channel 07:2.442 GHz
Channel 08:2.447 GHz
Channel 09:2.452 GHz
Channel 10:2.457 GHz
Channel 11:2.462 GHz
Channel 12:2.467 GHz
Channel 13:2.472 GHz
Current frequency=2.412 GHz (Channel 1)
Two. Connect the chan=13 WiFi wireless signal
2.1 Start the Wireless network card (the author's USB wireless card corresponding to the name of Wlan1, please choose according to their own circumstances)
sudo ifconfig wlan1 up
2.2 Connect the encrypted CHAN=13 wireless network (the wpa_supplicant.conf file has wireless network information)
[Email protected]:~ $sudo wpa_supplicant-b-iwlan1-c wpa_supplicant.conf
2.3 The following error message appears with 2.2
Successfully initialized Wpa_supplicant
Nl80211:could not configure driver mode
Nl80211:deinit Ifname=wlan1 disabled_11b_rates=0
Wlan1:failed to initialize driver interface
2.4 Troubleshooting 2.3 Error Hints
[Email protected]:~$ sudo wpa_supplicant-b-iwlan1-c wpa_supplicant.conf-dwext
Successfully initialized Wpa_supplicant
IOCTL[SIOCSIWAP]: Operation not permitted
Ioctl[siocsiwencodeext]: Invalid argument
Ioctl[siocsiwencodeext]: Invalid argument
Do not care about these error messages
2.5 Get IP
[Email protected]:~$ sudo dhclient wlan1
Linux under Connect wireless network appears nl80211:could not configure driver mode Nl80211:deinit ifname=wlan1 disabled_11b_rates=0 wlan1:failed to I Nitialize Driver Interface