Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Problem with TP-Link TL-WN722N Wi-Fi usb device
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 336

PostPosted: Wed Mar 30, 2022 9:40 pm    Post subject: [Solved] Problem with TP-Link TL-WN722N Wi-Fi usb device Reply with quote

Hi, guys!

Need help with usb wifi dongle.

Code:
lsusb
Bus 001 Device 003: ID 2357:010c TP-Link TL-WN722N v2/v3 [Realtek RTL8188EUS]


Kernel module r8188eu enabled and kernel rebuit. After reboot lsmod shows that r8188eu module was loaded. RFKILL enabled too.

Code:
ifconfig -a
wlan0: flags=4098<BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.77  netmask 255.255.255.0  broadcast 192.168.1.255
        ether b0:a7:b9:4b:7c:62  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


/etc/conf.d/net:
Code:

config_wlan0="192.168.1.77 netmask 255.255.255.0 brd 192.168.1.255"
routes_wlan0="default via 192.168.1.1"
modules="wpa_supplicant"
wpa_supplicant_wlan0="-D wext"



/etc/wpa_supplicant/wpa_supplicant-92.conf:
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1

network={
  ssid="RTL_8188"
  psk="PASSWORD"
  priority=3
}



Now I trying to start it with script I used to use with old wifi pci card:

Code:
ifconfig -v wlan0 up
ifconfig wlan0 192.168.1.77
ip route add default via 192.168.1.1 dev wlan0
wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-92.conf -dd


Here the output from script when running it line by line:

Code:
#ifconfig -v wlan0 up
SIOCSIFFLAGS: Operation not permitted
WARNING: at least one error occured. (-1)


Code:
# ifconfig wlan0 192.168.1.77
SIOCSIFFLAGS: Operation not permitted


Code:
#ip route add default via 192.168.1.1 dev wlan0
Error: Nexthop has invalid gateway.


Code:
#wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant-92.conf -dd
wpa_supplicant v2.10
random: getrandom() support available
Successfully initialized wpa_supplicant
Initializing interface 'wlan0' conf '/etc/wpa_supplicant/wpa_supplicant-92.conf' driver 'wext' ctrl_interface 'N/A' bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant-92.conf' -> '/etc/wpa_supplicant/wpa_supplicant-92.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant-92.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Line: 11 - start of a new network block
ssid - hexdump_ascii(len=15):
     52 4f 53 54 45 4c 45 43 4f 4d 5f 31 39 46 37      RTL_8188
PSK (ASCII passphrase) - hexdump_ascii(len=8): [REMOVED]
priority=3 (0x3)
PSK (from passphrase) - hexdump(len=32): [REMOVED]
Priority group 3
   id=0 ssid='RTL_8188'
rfkill: Cannot get wiphy information
WEXT: RFKILL status not available
Could not set interface wlan0 flags (UP): Operation not permitted
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
Failed to add interface wlan0
wlan0: Cancelling scan request
wlan0: Cancelling authentication timeout
Off-channel: Clear pending Action frame TX (pending_action_tx=(nil)
QM: Clear all active DSCP policies
wlan0: CTRL-EVENT-DSCP-POLICY clear_all


Any idea why it doesn't work?
_________________
GNU is Not Usable


Last edited by Blind_Sniper on Fri Apr 01, 2022 3:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Wed Mar 30, 2022 9:53 pm    Post subject: Reply with quote

Blind_Sniper,

Is the firmware loaded?

dmesg will tell you all about if its not. It's provided in linux-firmware
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 336

PostPosted: Wed Mar 30, 2022 10:07 pm    Post subject: Reply with quote

few lines from dmesg:

Code:

[ 2557.958686] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 2557.958694] Request firmware failed with error 0xfffffffe
[ 2858.452324] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 2858.452332] Request firmware failed with error 0xfffffffe
[ 3001.812779] r8169 0000:03:00.0 eth0: Link is Down
[ 3001.819838] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3001.819845] Request firmware failed with error 0xfffffffe
[ 3001.821854] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3001.821860] Request firmware failed with error 0xfffffffe
[ 3001.828713] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3001.828720] Request firmware failed with error 0xfffffffe
[ 3001.902710] r8169 0000:03:00.0: Direct firmware load for rtl_nic/rtl8168e-2.fw failed with error -2
[ 3001.902716] r8169 0000:03:00.0: Unable to load firmware rtl_nic/rtl8168e-2.fw (-2)
[ 3001.903537] RTL8211DN Gigabit Ethernet r8169-0-300:00: attached PHY driver (mii_bus:phy_addr=r8169-0-300:00, irq=MAC)
[ 3001.951234] r8169 0000:03:00.0 eth0: Link is Down
[ 3003.496880] r8169 0000:03:00.0 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 3134.338579] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3134.338586] Request firmware failed with error 0xfffffffe
[ 3169.818252] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3169.818260] Request firmware failed with error 0xfffffffe
[ 3313.221681] r8188eu 1-1.4:1.0: Direct firmware load for rtlwifi/rtl8188eufw.bin failed with error -2
[ 3313.221689] Request firmware failed with error 0xfffffffe


Have no idea what does it means...
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54097
Location: 56N 3W

PostPosted: Wed Mar 30, 2022 10:19 pm    Post subject: Reply with quote

Blind_Sniper,

It means that the firmware failed to load, so the device can't work.

Is the file rtlwifi/rtl8188eufw.bin in /lib/firmware?
Code:
$ ls /lib/firmware/rtlwifi/rtl8188eufw.bin
/lib/firmware/rtlwifi/rtl8188eufw.bin

Its provided by linux-firmware.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 336

PostPosted: Wed Mar 30, 2022 10:24 pm    Post subject: Reply with quote

firmware missing. It strange. Why my old pci card worked without linux-firmware?

OK, will install it
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21490

PostPosted: Thu Mar 31, 2022 1:10 am    Post subject: Reply with quote

Blind_Sniper wrote:
Why my old pci card worked without linux-firmware?
Some devices have enough onboard code that they work without an external firmware upload. Some are useless without a firmware upload.
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 336

PostPosted: Thu Mar 31, 2022 10:07 am    Post subject: Reply with quote

Hu wrote:
Blind_Sniper wrote:
Why my old pci card worked without linux-firmware?
Some devices have enough onboard code that they work without an external firmware upload. Some are useless without a firmware upload.


Understood

@Neddy,

I installed linux-firmware and it almost works: if network is opened (without password) dongle connecting and works fine. However I can't connect if password set:

Code:
wlan0: 1: f0:82:61:07:19:f8 ssid='RTL_8188' wpa_ie_len=28 rsn_ie_len=24 caps=0x11 level=0 freq=2412  wps
wpa_parse_wpa_ie_rsn: invalid group cipher 0x8 (000fac02)
wpa_parse_wpa_ie_rsn: invalid group cipher 0x8 (000fac02)
wlan0:    skip RSN IE - parse failed
wlan0:    skip WPA IE - GTK cipher mismatch
wlan0:    reject due to mismatch with WPA/WPA2
wlan0:    No suitable network found


Password is correct, old pci device works with it.
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Blind_Sniper
Guru
Guru


Joined: 20 Apr 2018
Posts: 336

PostPosted: Fri Apr 01, 2022 3:31 pm    Post subject: Reply with quote

Solved by adding tkip USE flag to supplicant.

@Neddy, thanks for your help!
_________________
GNU is Not Usable
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum