LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2019, 04:21 PM   #1
ctrondheim
LQ Newbie
 
Registered: Nov 2017
Posts: 8

Rep: Reputation: Disabled
wifi dongle problems with 14.2 and current


Not sure if this post may be better in 'lq networking'. Someone can let me
know.

I have a TP-link NS812N usb wifi dongle and cannot get get it to work on a
desktop running Slackware. If reboot to windows 7 then dongle works.

From same location I can connect via mobile and a laptop (different
wifi chipset) running 14.2.

lsusb sees dongle as: TP-Link TL-WN812N Version 5 RTL8192EU

I've tried on Slackware 14.2 and current with results as follows:

**Slackware-14.2
Downloaded source file 'TL-WN821N(US)_V6_180508_Linux_beta.zip' which
contains actual module source in:
rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047.zip
Built module 'rtl8192eu' ok but when try to load it with modprobe, fails to
load with error 'Unknown symbol" that's it no more info.

** Slackware-Current
Using same source as above, fails to build with many errors about duplicate
definitions (can provide details if it helps) but website does say that it will work with Linux kernel 2.6.24 ~ 4.9.60 only.

When I use the module (rtl8xxcu) that is included with the kernel (4.19.86)
then that loads ok, and AP's are seen. I enter the key for my AP and try to
connect using NetworkManager. It fails to connect with error: "Wifi network
could not be found", but it does see AP's around my location!

If I use wicd, then it too sees AP's around my location, it displays
'Obtaining ip address' for a long time then stops with message 'Not connected'.

Am including some details below:
Code:
pci output:
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:16.3 Serial controller: Intel Corporation 6 Series/C200 Series Chipset Family KT Controller (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (Lewisville) (rev 05)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 05)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 05)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 05)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev a5)
00:1f.0 ISA bridge: Intel Corporation Q67 Express Chipset LPC Controller (rev 05)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port Desktop SATA AHCI Controller (rev 05)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 05)
Code:
lsusb output:
Bus 002 Device 008: ID 0781:55a5 SanDisk Corp. 
Bus 002 Device 009: ID 2357:0107 TP-Link TL-WN821N Version 5 RTL8192EU
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04b3:3025 IBM Corp. NetVista Full Width Keyboard
Bus 001 Device 003: ID 046d:c00e Logitech, Inc. M-BJ58/M-BJ69 Optical Wheel Mouse
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Code:
iwconfig output:
wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry short limit:7   RTS thr=2347 B   Fragment thr:off
          Encryption key:off
          Power Management:on
Code:
iwlist scan output:
wlan0     Scan completed :
          Cell 01 - Address: 68:8F:2E:CC:F6:78
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=41/70  Signal level=-69 dBm  
                    Encryption key:on
                    ESSID:"sallyann"
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                              36 Mb/s; 48 Mb/s; 54 Mb/s
                    Mode:Master
                    Extra:tsf=00000079d82b370f
                    Extra: Last beacon: 54ms ago
                    IE: Unknown: 00075669746572626F
                    IE: Unknown: 01088C129824B048606C
                    IE: Unknown: 03010B
                    IE: Unknown: 0706434120010B1E
                    IE: Unknown: 2A0101
                    IE: Unknown: 460573D000000C
                    IE: Unknown: 2D1AAD011BFFFFFF00000000000000000001000000000406E6470D00
                    IE: Unknown: 3D160B080400000000000000000000000000000000000000
                    IE: Unknown: 7F0804000F0200000040
                    IE: Unknown: DD180050F2020101800003A4000027A4000042435E0062322F00
                    IE: Unknown: DD0900037F01010000FF7F
                    IE: Unknown: DD168CFDF004000049000003020972018C16000030000000
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
                    IE: Unknown: DD9F0050F204104A0001101044000102103B00010310470010914AED5506A65E03832683FDB7AC2E9B1021001C41746865726F7320436F6D6D756E69636174696F6E732C20496E632E102300044150787810240008415078782D7878781042001253657269616C204E756D62657220486572651054000800060050F20400011011000941746865726F734150100800022008103C0001011049000600372A000120
                    IE: Unknown: DD088CFDF00101020100
Code:
lsmod | grep rtl:
rtlxxxu     118784   0
mac80211    835584   1 rtlxxxu
Code:
syslog:
...
Nov 28 15:16:25 poseidon dhcpcd[6621]: dhcpcd not running
Nov 28 15:16:25 poseidon dhcpcd[6628]: dhcpcd not running
Nov 28 15:16:25 poseidon dhcpcd[6636]: dhcpcd not running
Nov 28 15:16:57 poseidon dhcpcd[6647]: timed out
Nov 28 15:17:01 poseidon dhcpcd[6692]: dhcpcd not running
Nov 28 15:17:01 poseidon dhcpcd[6698]: dhcpcd not running
...
Code:
dmesg:
...
[    7.171608] usb 2-1.4: This Realtek USB WiFi dongle (0x2357:0x0107) is untested!
[    7.171640] usb 2-1.4: Please report results to Jes.Sorensen@gmail.com
[    7.183157] udevd[694]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=add --device=/dev/dri/card0': No such file or directory
[    7.183904] udevd[695]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=change --device=/dev/dri/card0': No such file or directory
[    7.184651] udevd[696]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=change --device=/dev/dri/card0': No such file or directory
[    7.185350] udevd[697]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=change --device=/dev/dri/card0': No such file or directory
[    7.186182] udevd[698]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=change --device=/dev/dri/card0': No such file or directory
[    7.212751] udevd[700]: failed to execute '/lib/udev/udev-acl' 'udev-acl --action=change --device=/dev/dri/card0': No such file or directory
[    7.338975] usb 2-1.4: Vendor: Realtek
[    7.339013] usb 2-1.4: Product: 802.11n NI
[    7.339043] usb 2-1.4: Serial: 
[    7.339067] usb 2-1.4: rtl8192eu_parse_efuse: dumping efuse (0x200 bytes):
[    7.339121] usb 2-1.4: 00: 29 81 00 7c 01 40 03 00
[    7.339161] usb 2-1.4: 08: 40 74 04 50 14 00 00 00
[    7.339194] usb 2-1.4: 10: 28 28 28 27 27 27 2c 2c
[    7.339227] usb 2-1.4: 18: 2b 2a 2a f2 ef ef ff ff
[    7.339260] usb 2-1.4: 20: ff ff ff ff ff ff ff ff
[    7.339292] usb 2-1.4: 28: ff ff ff ff ff ff ff ff
[    7.339325] usb 2-1.4: 30: ff ff ff ff ff ff ff ff
[    7.339357] usb 2-1.4: 38: ff ff 28 28 27 26 26 26
[    7.339390] usb 2-1.4: 40: 2a 2a 29 28 28 f2 ef ef
[    7.339423] usb 2-1.4: 48: ff ff ff ff ff ff ff ff
[    7.339455] usb 2-1.4: 50: ff ff ff ff ff ff ff ff
[    7.339488] usb 2-1.4: 58: ff ff ff ff ff ff ff ff
[    7.339521] usb 2-1.4: 60: ff ff ff ff ff ff ff ff
[    7.339553] usb 2-1.4: 68: ff ff ff ff ff ff ff ff
[    7.339586] usb 2-1.4: 70: ff ff ff ff ff ff ff ff
[    7.339619] usb 2-1.4: 78: ff ff ff ff ff ff ff ff
[    7.339652] usb 2-1.4: 80: ff ff ff ff ff ff ff ff
[    7.341168] usb 2-1.4: 88: ff ff ff ff ff ff ff ff
[    7.342700] usb 2-1.4: 90: ff ff ff ff ff ff ff ff
[    7.344186] usb 2-1.4: 98: ff ff ff ff ff ff ff ff
[    7.345638] usb 2-1.4: a0: ff ff ff ff ff ff ff ff
[    7.347046] usb 2-1.4: a8: ff ff ff ff ff ff ff ff
[    7.348337] usb 2-1.4: b0: ff ff ff ff ff ff ff ff
[    7.349701] usb 2-1.4: b8: a2 1b 22 00 00 00 ff ff
[    7.351047] usb 2-1.4: c0: ff 01 00 10 00 00 00 ff
[    7.352357] usb 2-1.4: c8: 00 00 ff ff ff ff ff ff
[    7.352988] usb 2-1.4: d0: 57 23 07 01 e7 47 02 50
[    7.353579] usb 2-1.4: d8: 3e aa b4 31 91 0a 03 52
[    7.354165] usb 2-1.4: e0: 65 61 6c 74 65 6b 20 0e
[    7.354726] usb 2-1.4: e8: 03 38 30 32 2e 31 31 6e
[    7.355281] usb 2-1.4: f0: 20 4e 49 43 20 00 00 ff
[    7.355832] usb 2-1.4: f8: ff ff ff ff ff ff ff ff
[    7.356374] usb 2-1.4: 100: ff ff ff ff ff ff ff ff
[    7.356919] usb 2-1.4: 108: ff ff ff ff ff ff ff ff
[    7.357467] usb 2-1.4: 110: ff ff ff ff ff ff ff 0d
[    7.357989] usb 2-1.4: 118: 03 00 05 00 30 00 00 00
[    7.358524] usb 2-1.4: 120: 00 93 ff ff ff ff ff ff
[    7.359037] usb 2-1.4: 128: ff ff ff ff ff ff ff ff
[    7.359537] usb 2-1.4: 130: f6 a8 98 2d 03 92 98 00
[    7.360034] usb 2-1.4: 138: fc 8c 00 11 9b 44 02 0a
[    7.360526] usb 2-1.4: 140: ff ff ff ff ff ff ff ff
[    7.361016] usb 2-1.4: 148: ff ff ff ff ff ff ff ff
[    7.361510] usb 2-1.4: 150: ff ff ff ff ff ff ff ff
[    7.361974] usb 2-1.4: 158: ff ff ff ff ff ff ff ff
[    7.362441] usb 2-1.4: 160: ff ff ff ff ff ff ff ff
[    7.362887] usb 2-1.4: 168: ff ff ff ff ff ff ff ff
[    7.363308] usb 2-1.4: 170: ff ff ff ff ff ff ff ff
[    7.363716] usb 2-1.4: 178: ff ff ff ff ff ff ff ff
[    7.364128] usb 2-1.4: 180: ff ff ff ff ff ff ff ff
[    7.364538] usb 2-1.4: 188: ff ff ff ff ff ff ff ff
[    7.364947] usb 2-1.4: 190: ff ff ff ff ff ff ff ff
[    7.365402] usb 2-1.4: 198: ff ff ff ff ff ff ff ff
[    7.365791] usb 2-1.4: 1a0: ff ff ff ff ff ff ff ff
[    7.366185] usb 2-1.4: 1a8: ff ff ff ff ff ff ff ff
[    7.366561] usb 2-1.4: 1b0: ff ff ff ff ff ff ff ff
[    7.366948] usb 2-1.4: 1b8: ff ff ff ff ff ff ff ff
[    7.367303] usb 2-1.4: 1c0: ff ff ff ff ff ff ff ff
[    7.367655] usb 2-1.4: 1c8: ff ff ff ff ff ff ff ff
[    7.367996] usb 2-1.4: 1d0: ff ff ff ff ff ff ff ff
[    7.368344] usb 2-1.4: 1d8: ff ff ff ff ff ff ff ff
[    7.368692] usb 2-1.4: 1e0: ff ff ff ff ff ff ff ff
[    7.369046] usb 2-1.4: 1e8: ff ff ff ff ff ff ff ff
[    7.369421] usb 2-1.4: 1f0: ff ff ff ff ff ff ff ff
[    7.369748] usb 2-1.4: 1f8: ff ff ff ff ff ff ff ff
[    7.370067] usb 2-1.4: RTL8192EU rev B (SMIC) 2T2R, TX queues 3, WiFi=1, BT=0, GPS=0, HI PA=0
[    7.370419] usb 2-1.4: RTL8192EU MAC: 50:3e:aa:b4:31:91
[    7.370764] usb 2-1.4: rtl8xxxu: Loading firmware rtlwifi/rtl8192eu_nic.bin
[    7.471601] usb 2-1.4: Firmware revision 19.0 (signature 0x92e1)
...
Hope someone can help even to point me in how to debug further
Thanks
 
Old 11-28-2019, 07:20 PM   #2
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 19/ TC64
Posts: 5,338

Rep: Reputation: Disabled
I don't use slack...but you may want to build from this link
https://github.com/Mange/rtl8192eu-linux-driver

and note that there maybe a conflict between drivers and so this part of the readme may be important
Quote:
Distributions based on Debian & Ubuntu have RTL8XXXU driver present & running in kernelspace. To use our RTL8192EU driver, we need to blacklist RTL8XXXU
I also notice that in OP we have TP-Link TL-WN812N Version 5 RTL8192EU and Bus 002 Device 009: ID 2357:0107 TP-Link TL-WN821N Version 5 RTL8192EU....so I assume first mention is a typo?

good luck
 
Old 11-28-2019, 07:27 PM   #3
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,350

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Quote:
**Slackware-14.2
Downloaded source file 'TL-WN821N(US)_V6_180508_Linux_beta.zip' which
contains actual module source in:
rtl8192EU_WiFi_linux_v5.2.19.1_25633.20171222_COEX20171113-0047.zip
Built module 'rtl8192eu' ok but when try to load it with modprobe, fails to
load with error 'Unknown symbol" that's it no more info.
Please provide also the link (source) from where you downloaded the driver. "Unknown symbol" means something went wrong with the module compilation and I remember a recent thread where I learned that some rtlxxxx driver build script was of really poor quality.
https://www.linuxquestions.org/quest...le-4175663910/
Maybe you need to build the kernel before using (building) the driver package you downloaded.

Quote:
When I use the module (rtl8xxcu) that is included with the kernel (4.19.86)
then that loads ok, and AP's are seen. I enter the key for my AP and try to
connect using NetworkManager. It fails to connect with error: "Wifi network
could not be found", but it does see AP's around my location!

If I use wicd, then it too sees AP's around my location, it displays
'Obtaining ip address' for a long time then stops with message 'Not connected'.
The kernel included driver warns you:
Code:
[    7.171608] usb 2-1.4: This Realtek USB WiFi dongle (0x2357:0x0107) is untested!
I have no experience with NetworkManager/wicd and only can advise you to test your configuration in the default Slackware / manual mode.
This recent thread contains the information you'll need:
https://www.linuxquestions.org/quest...rt-4175664834/
I'd suggest to try the manual mode first, before configuring rc.inet1.
Make sure NetworkManager & wicd are not running, then create your /etc/wpa_supplicant.conf with the help of wpa_passphrase, as presented by bassmadrigal in post #2 :
https://www.linuxquestions.org/quest...4/#post6061656
And test your WiFi connection manually by following my instructions at the end of post #3 :
https://www.linuxquestions.org/quest...4/#post6061801
- just change
Code:
/sbin/iwconfig wlan0 essid pascalCase
# to match your ESSID
/sbin/iwconfig wlan0 essid YOURESSID

Last edited by abga; 11-28-2019 at 07:29 PM. Reason: LQ broke the URL
 
Old 11-28-2019, 07:41 PM   #4
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,350

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
@aus9

I also had to blacklist the r8188eu kernel driver if an out-of-tree driver was built and used:
https://www.linuxquestions.org/quest...9/#post6039838
 
Old 11-29-2019, 02:47 AM   #5
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 19/ TC64
Posts: 5,338

Rep: Reputation: Disabled
@abga

thanks for the extra blacklist info.
 
Old 11-29-2019, 10:13 AM   #6
ctrondheim
LQ Newbie
 
Registered: Nov 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
abga:
Quote:
Please provide also the link (source) from where you downloaded the driver. "Unknown symbol" means something went wrong with the module compilation and I remember a recent thread where I learned that some rtlxxxx driver build script was of really poor quality.
here is the link to that source code I used:
https://www.tp-link.com/ca/support/d...t-local#Driver

It is strange when I compile the above on 14.2 it completes successfully without even a warning. But when I repeat
same on current -Werrors spew out. What a difference between two compilers.
I will try the manual mode first as you suggest.

aus9:
Yes it is a typo!
I actually did try driver from https://github.com/Mange/rtl8192eu-linux-driver a while ago
on current and it too would not build with similar errors to TP-Link version. Since then current has
changed and new kernel may be work with. After I try manual mode I'll retry Mange's.

Thanks so much this gives me a direction to work on. Hopefully can mark this post solved soon.
 
Old 11-29-2019, 01:49 PM   #7
abga
Senior Member
 
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,350

Rep: Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752Reputation: 752
Quote:
Originally Posted by ctrondheim View Post
abga:

here is the link to that source code I used:
https://www.tp-link.com/ca/support/d...t-local#Driver

It is strange when I compile the above on 14.2 it completes successfully without even a warning. But when I repeat
same on current -Werrors spew out. What a difference between two compilers.
I will try the manual mode first as you suggest.
Slackware -current provides a newer compiler, that is more "sensible".
Try removing -Werror from the driver makefile(s):
https://www.linuxquestions.org/quest...6/#post5904617
 
Old 11-29-2019, 08:01 PM   #8
aus9
LQ Addict
 
Registered: Oct 2003
Location: Australia
Distribution: MX 19/ TC64
Posts: 5,338

Rep: Reputation: Disabled
Hi
https://www.tp-link.com/ca/support/d...t-local#Driver

defaults to v6....I can then select v5.

so direct link was
https://static.tp-link.com/res/down/...0315_Linux.zip
 
Old 11-30-2019, 08:53 AM   #9
westernira12
LQ Newbie
 
Registered: May 2019
Posts: 2

Rep: Reputation: Disabled
Thanks all for your responses. Referring wifi guide might be helpful in this case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kali and dongle wifi nasser3357 Linux - Networking 3 02-25-2019 03:27 AM
3g dongle connected via ppp daemon unable to send AT commnads to the dongle jarzi Linux - Networking 4 08-07-2015 05:45 AM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 06:37 PM
how to connect to internet via usb dongle (MPS internet dongle) on Fedora 16 O.S danibhai Linux - Newbie 1 07-30-2012 12:03 PM
Need to plug out and in wifi dongle at every boot to get detected calande Linux - Hardware 4 05-29-2011 03:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration