Coder Social home page Coder Social logo

rtl8192eu-linux-driver's Introduction

rtl8192eu linux drivers

NOTE: This branch is based on Realtek's driver versioned 4.4.1. master is based on 4.3.1.1 originally.

The official drivers for D-Link DWA-131 Rev E, with patches to keep it working on newer kernels. Also works on Rosewill RNX-N180UBE v2 N300 Wireless Adapter and TP-Link TL-WN821N V6.

NOTE: This is just a "mirror". I have no knowledge about this code or how it works. Expect no support from me or any contributors here. I just think GitHub is a nicer way of keeping track of this than random forum posts and precompiled binaries being sent by email. I don't want someone else to have to spend 5 days of googling and compiling with random patches until it works.

Source for the official drivers

Official drivers were downloaded from D-Link Australia. D-Link USA and the european countries I checked only lists revision A and B. Australia lists all three.

  • Download page for DWA-131
  • Direct download link for Linux drivers
    • GitHub will not link to the ftp:// schema. Raw link contents:

      ftp://files.dlink.com.au/products/DWA-131/REV_E/Drivers/DWA-131_Linux_driver_v4.3.1.1.zip

In addition, you can find the contents of this version in the initial commit of this repo: 1387cf623d54bc2caec533e72ee18ef3b6a1db29

Patches

You can see the applied patches, their sources and/or motivation by looking at the commits. The master branch will mostly be kept clean with a single commit per patch, except for Pull Requests. You can review commit by commit and then record the SHA in order to get a safe reference to use. As long as the SHA stays the same you know that what you get has been reviewed by you.

Note that updates to this README will show up as separate commits. I will not mix changes to this file with changes to the code in case you want to mirror this without the README.

Building and installing using DKMS

This tree supports Dynamic Kernel Module Support (DKMS), a system for generating kernel modules from out-of-tree kernel sources. It can be used to install/uninstall kernel modules, and the module will be automatically rebuilt from source when the kernel is upgraded (for example using your package manager).

  1. Install DKMS and other required tools

    • for normal Linux systems
    sudo apt-get install git linux-headers-generic build-essential dkms
    • for Raspberry Pi
    sudo apt-get install git raspberrypi-kernel-headers build-essential dkms

    Make sure you're installing same headers version as your current running kernel. If you just installed Raspbian it ships with an older kernel version than you'll get headers for after installing raspberrypi-kernel-headers. You must either run sudo apt-get upgrade or install exact same raspberrypi-kernel-headers-XXX version as your kernel is before executing dkms install. If you have version mismatch you'll get "Your kernel headers for kernel XXX cannot be found at YYY" error.

  2. Clone this repository and change your directory to cloned path.

    git clone https://github.com/Mange/rtl8192eu-linux-driver
    cd rtl8192eu-linux-driver
  3. The Makefile is preconfigured to handle most x86/PC versions. However, if you are compiling for something other than an intel x86 architecture, you need to first select the platform.

    • for the Raspberry Pi, you need to set the I386 to n and the ARM_RPI to y:
    ...
    CONFIG_PLATFORM_I386_PC = n
    ...
    CONFIG_PLATFORM_ARM_RPI = y
    • for arm64 devices (e.g. Orange Pi PC 2):
    ...
    CONFIG_PLATFORM_I386_PC = n
    ...
    CONFIG_PLATFORM_ARM_AARCH64 = y
  4. Add the driver to DKMS. This will copy the source to a system directory so that it can used to rebuild the module on kernel upgrades.

    sudo dkms add .
  5. Build and install the driver.

    sudo dkms install rtl8192eu/1.0
  6. Distributions based on Debian & Ubuntu have RTL8XXXU driver present & running in kernelspace. To use our RTL8192EU driver, we need to blacklist RTL8XXXU.

    echo "blacklist rtl8xxxu" | sudo tee /etc/modprobe.d/rtl8xxxu.conf
  7. Force RTL8192EU Driver to be active from boot.

    echo -e "8192eu\n\nloop" | sudo tee /etc/modules
  8. Newer versions of Ubuntu has weird plugging/replugging issue (Check #94). This includes weird idling issues, To fix this:

    echo "options 8192eu rtw_power_mgnt=0 rtw_enusbss=0" | sudo tee /etc/modprobe.d/8192eu.conf
  9. Update changes to Grub & initramfs

    sudo update-grub; sudo update-initramfs -u
  10. Reboot system to load new changes from newly generated initramfs.

    systemctl reboot -i
  11. Check that your kernel has loaded the right module:

    sudo lshw -c network

You should see the line driver=8192eu

If you wish to uninstall the driver at a later point, use sudo dkms uninstall rtl8192eu/1.0. To completely remove the driver from DKMS use sudo dkms remove rtl8192eu/1.0 --all.

Using as AP

Reference: Intelbras IWA 3001 USB WiFi Adapter
Devices using the 8192eu chip can serve as decent access points, with speeds up to ~50Mbps.

Using hostapd to manage your AP, set the proper ht-capab field for this device, which is:

HT_CAPAB=[RX-STBC1][SHORT-GI-40][SHORT-GI-20][DSSS_CCK-40][MAX-AMSDU-7935]

Optionally enable wideband, if you don't have neighbours:
Note that while this will result in a increase in network throughput it may cause clients further away to fail connecting.
It may also make the device work better with repeaters repeating its signal.

HT_CAPAB=[HT40+][RX-STBC1][SHORT-GI-40][SHORT-GI-20][DSSS_CCK-40][MAX-AMSDU-7935] (for channels 1-7), or
HT_CAPAB=[HT40-][RX-STBC1][SHORT-GI-40][SHORT-GI-20][DSSS_CCK-40][MAX-AMSDU-7935] (for channels 5-13)

Changing transmit power

Currently there is no way to change transmit power in the driver with iw or iwconfig tools, as you would with other wireless devices.
The values returned by these tools are purely fictional on this driver. However, you can still manually change the transmit power at compile time by editing the file hal/rl8192e/rtl8192e_phycfg.c and changing the lines below:

/* Manual Transmit Power Control 
   The following options take values from 0 to 63, where:
   0 - disable
   1 - lowest transmit power the device can do
   63 - highest transmit power the device can do
   Note that these options may override your country's regulations about transmit power.
   Setting the device to work at higher transmit powers most of the time may cause premature 
   failure or damage by overheating. Make sure the device has enough airflow before you increase this.
   It is currently unknown what these values translate to in dBm.
*/


// Transmit Power Boost
// This value is added to the device's calculation of transmit power index.
// Useful if you want to keep power usage low while still boosting/decreasing transmit power.
// Can take a negative value as well to reduce power.
// Zero disables it. Default: 2, for a tiny boost.
int transmit_power_boost = 2;
// (ADVANCED) To know what transmit powers this device decides to use dynamically, see:
// https://github.com/lwfinger/rtl8192ee/blob/42ad92dcc71cb15a62f8c39e50debe3a28566b5f/hal/phydm/rtl8192e/halhwimg8192e_rf.c#L1310


// Transmit Power Override
// This value completely overrides the driver's calculations and uses only one value for all transmissions.
// Zero disables it. Default: 0
int transmit_power_override = 0;


/* Manual Transmit Power Control */

Submitting patches

  1. Fork repo
  2. Do your patch in a topic branch
  3. Open a pull request on GH, or send it by email to Magnus Bergmark <[email protected]>.
  4. I'll squash your commits when everything checks out and add it to master.

Copyright and licenses

The original code is copyrighted, but I don't know by whom. The driver download does not contain license information; please open an issue if you are the copyright holder.

Most C files are licensed under GNU General Public License (GPL), version 2.

rtl8192eu-linux-driver's People

Contributors

5kft avatar absolutelynowarranty avatar cgarces avatar clnhub avatar edigaryev avatar ertug avatar gregkh avatar heitbaum avatar kylefmohr avatar lwfinger avatar mange avatar martin-kaiser avatar masterzorag avatar mbuzdalov avatar michaelstraube avatar milhousevh avatar nathanchance avatar nbrondeau avatar nomadmzl avatar orgads avatar pandermusubi avatar pbrochart avatar philpotter avatar phpony avatar pskrgag avatar pterjan avatar satanicraw avatar ssomov avatar wbirkmaier avatar yavincl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rtl8192eu-linux-driver's Issues

Shipped with main kernel

Maybe a strange question, is it possible to get this driver shipped with the main kernel so it is by default available to all?

Ubuntu 16.04 kernel 4.13.0-32

Hi Guys,
not sure what info is required but when following the normal install process i was having issues with 70% packet loss on what should of been a stable connection,
after changing the make file to turn off power management, and set tx power to max the issue seems to have been resolved.

Works on my Ubuntu (studio) 16.04.3 but only after plug out and in

I installed this driver on my Ubuntu (studio) 16.04.3 and rebooted. When I plugged in the wifi dongle, it works. But when I reboot with the dongle plugged in, it doesn't work (it doesn't detect any wifi signals) until I remove it and plug it back in. Then it recognizes wifi signals and connects to mine.
Can anyone help? How can the dongle work without plugging it out and in?

DKMS

I am running Arch Linux, and this module works perfectly.
But how to install using dkms?
After each upgrade i need reinstall the module.

Upload speed limited to 1 Mb/s

Perhaps RTL8192eu supports bit rates up to 54 Mb/s, when connected it only shows 1 Mb/s in connection properties.

Using www.speedtest.net I've checked first connecting via ethernet cable and I got 2 Mb/s upload (that's right accoding with my Internet plan), but when I change to the wireless connection (USB dongle RTL8192eu), I only get 0,8 Mb/s.

The Wifi connection is 70/70 quality, -30dBm and the router is 1 ft away, so there isn't a location or barrier issue. I've tried to change the bit rate using: sudo iwconfig wlan0 rate 11M but nothing happens (or get an error). The acepted bit rates between the WIFI dongle and the access point was obtained using: iwlist command.

Download speed has no issues, it can go up to 10Mb/s so far (may be more with a better internet plan), the issue is in the upload speed.

Need Help, Thank you

i still cant get my driver work!

root@kali:~/rtl8192eu-linux-driver# make install
install -p -m 644 8192eu.ko /lib/modules/4.6.0-kali1-amd64/kernel/drivers/net/wireless/
/sbin/depmod -a 4.6.0-kali1-amd64

I already installed the driver, but I can not connect to a wifi network

Hello, i have a TP-LINK adapter WN823N connect it to kali linux ande install this driver https://github.com/Mange/rtl8192eu-linux-driver.

Before installing the driver i only had one or two networks to "reach" because i did not have a good signal and it was impossible to connect to a network, after installing the driver mentioned above restart my kali linux and when i select, select networks , more networks came out and with good signal then i proceeded to connect to my wifi network, i put the key and it did not connect i stayed there loading, i tried to navigate and i did not have access.

someone help me please

Problems on making file....

Hi, how are you?
Im kinda fine.

Hey, anyone know what TF is going on?

> make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-kali1-amd64/build M=/root/rtl8192eu-linux-driver  modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
  CC [M]  /root/rtl8192eu-linux-driver/core/rtw_cmd.o
In file included from /root/rtl8192eu-linux-driver/include/drv_types.h:32:0,
                 from /root/rtl8192eu-linux-driver/core/rtw_cmd.c:22:
/root/rtl8192eu-linux-driver/include/osdep_service.h: In function ‘thread_enter’:
/root/rtl8192eu-linux-driver/include/osdep_service.h:342:2: error: implicit declaration of function ‘allow_signal’ [-Werror=implicit-function-declaration]
  allow_signal(SIGTERM);
  ^~~~~~~~~~~~
/root/rtl8192eu-linux-driver/include/osdep_service.h: In function ‘flush_signals_thread’:
/root/rtl8192eu-linux-driver/include/osdep_service.h:352:6: error: implicit declaration of function ‘signal_pending’ [-Werror=implicit-function-declaration]
  if (signal_pending (current))
      ^~~~~~~~~~~~~~
/root/rtl8192eu-linux-driver/include/osdep_service.h:354:3: error: implicit declaration of function ‘flush_signals’ [-Werror=implicit-function-declaration]
   flush_signals(current);
   ^~~~~~~~~~~~~
cc1: some warnings being treated as errors
/usr/src/linux-headers-4.13.0-kali1-common/scripts/Makefile.build:307: recipe for target '/root/rtl8192eu-linux-driver/core/rtw_cmd.o' failed
make[4]: *** [/root/rtl8192eu-linux-driver/core/rtw_cmd.o] Error 1
/usr/src/linux-headers-4.13.0-kali1-common/Makefile:1529: recipe for target '_module_/root/rtl8192eu-linux-driver' failed
make[3]: *** [_module_/root/rtl8192eu-linux-driver] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-kali1-amd64'
Makefile:1335: recipe for target 'modules' failed
make: *** [modules] Error 2

thats my uname -r
4.13.0-kali1-amd64

thats my iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.

wlan0     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
          Encryption key:off
          Power Management:off

already tried to put ifconfig wlan0 up
no results....

Anyone?

Device keeps asking for password. Ubuntu 16.04.3

I have installed the driver from the main repository and I can see a list of networks in the area. However, it keeps asking for the password (even if I set the WiFi to open access without password) and does not connect.

Is there a version that supports kernel 4.10?

OS: Ubuntu 16.04.3, kernel: 4.10.0-28-generic

$ lsmod |grep 8192
'8192eu 1101824 0
cfg80211 602112 1 8192eu'

*-network
description: Wireless interface
physical id: 1
bus info: usb@3:9
logical name: wlx18d6c71af449
serial: 18:d6:c7:1a:f4:49
capabilities: ethernet physical wireless
configuration: broadcast=yes driver=rtl8192eu multicast=yes wireless=unassociated

$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

error: Error for wireless request "Set Mode" (8B06)

When I try use monitor mode issue below appears:

root@kali:~/Downloads/2# iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Operation not permitted.

Configurations:

root@kali:~/Downloads/2# uname -r
4.15.0-kali3-amd64

root@kali:~/Downloads/2# iwconfig
lo no wireless extensions.

wlan0 unassociated Nickname:"WIFI@REALTEK"
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

eth0 no wireless extensions.

oot@kali:~/Downloads/2# iw list | grep "Supported interface modes" -A10
Supported interface modes:
* IBSS
* managed
* AP
* monitor
* P2P-client
* P2P-GO
Band 1:
Bitrates (non-HT):
* 1.0 Mbps
* 2.0 Mbps

Always claims that wifi password is incorrect

Wifi device is being listed. It shows correct networks. However, when connecting to any of those, it claims that password is incorrect.

Some info:

Actual device: TP-LINK TL-WN821N v6

Kernel: 4.9.0-4-amd64

  *-network:3
       description: Wireless interface
       physical id: 4
       bus info: usb@1:4
       logical name: wlx7c8bca0588c3
       serial: a2:36:97:c1:55:48
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192eu multicast=yes wireless=unassociated

Not an Issue persay but rather weird

the driver 8192eu state that monitor mode and other custom modes are not supported except for Managed,Master and Ad-Hoc. That is entirely false. On the RTL8xxxu all those modes work. I'm on an antenna based dongle so RLT8xxxu isnt configured for that(Extremely low signal, we talking -100dBm when the internal says -60dBm).

On os_dep/linux/ioctl_linux.c those modes were intentionally removed and on the rest of the source, for what good reason i dont know. If u modify one of the cases from line 1465 and rename it to monitor instead and use iwconfig **** mode monitor, it does recognise just not able to apply since the mode is missing entirely.

bottom line, the chipset supports all these fancy modes but the source does not.

Can't install dkms

After using this:
pi@rpi:~ $ sudo apt-get install git linux-headers-generic build-essential dkms
This happens:

Reading package lists... Done Building dependency tree Reading state information... Done Package linux-headers-generic is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'linux-headers-generic' has no installation candidate

And this won't work:

pi@rpi:~ $ dkms add . -bash: dkms: command not found

kernel 4.4.50-v7+ cannot be found

root@raspberrypi:~/rtl8192eu-arm-linux-driver-master# dkms install rtl8192eu/1.0
Error! echo
Your kernel headers for kernel 4.4.50-v7+ cannot be found at
/lib/modules/4.4.50-v7+/build or /lib/modules/4.4.50-v7+/source.

What is this?

Updated driver for RTL8192eu: v4.3.8_12406.20140929

I've found an updated driver newer than v4.3.1.1_11320.20140505:

The driver v4.3.8_12406.20140929 features:

  1. Support Adaptivity (v7.1)
  2. Fix efuse write failed problem.
  3. Improve performance of Soft-AP mode.
  4. Adjust driver procedure to eliminate RF interference.
  5. Clear up all compile warning.
  6. Fix IOT issue with some AP’s RA mechanism

I've followed this guide to compile it, but I couldn't get it done: https://scdas141.wordpress.com/2017/01/28/how-to-compile-mangertl8192eu-linux-driver-driver/

if someone else (with some compiling skills unlike me) could give it a try...

Cannot install rtl8192eu-linux-driver-master on Kernel 4.9.35

Hello,

After some reading and check my issue with existing post, unfortunatly i cannot install it.

Here is the output:

make && make install ; echo "RETURN VALUE: $?"
make: Warning: File 'Makefile' has modification time 64283 s in the future
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.9.35-v7+/build M=/home/pi/rlt/rtl8192eu-linux-driver-master  modules
make[1]: *** /lib/modules/4.9.35-v7+/build: No such file or directory.  Stop.
Makefile:1335: recipe for target 'modules' failed
make: *** [modules] Error 2
RETURN VALUE: 2

dmesg:

root@raspberrypi:/# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.35-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611) ) #1014 SMP Fri Jun 30 14:47:43 BST 2017
[    0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Raspberry Pi 3 Model B Rev 1.2
[    0.000000] cma: Reserved 8 MiB at 0x3a800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 241664
[    0.000000] free_area_init_node: node 0, pgdat 80c6ee40, node_mem_map b9faa000
[    0.000000]   Normal zone: 2124 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 241664 pages, LIFO batch:31
[    0.000000] percpu: Embedded 14 pages/cpu @b9f64000 s25600 r8192 d23552 u57344
[    0.000000] pcpu-alloc: s25600 r8192 d23552 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 239540
[    0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=a53d0ada-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 936296K/966656K available (7168K kernel code, 484K rwdata, 2012K rodata, 1024K init, 778K bss, 22168K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xbb800000 - 0xff800000   (1088 MB)
    lowmem  : 0x80000000 - 0xbb000000   ( 944 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x80800000   (8160 kB)
      .init : 0x80b00000 - 0x80c00000   (1024 kB)
      .data : 0x80c00000 - 0x80c79014   ( 485 kB)
       .bss : 0x80c7b000 - 0x80d3da64   ( 779 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 19.20MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[    0.000009] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[    0.000027] Switching to timer-based delay loop, resolution 52ns
[    0.000338] Console: colour dummy device 80x30
[    0.001231] console [tty1] enabled
[    0.001280] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.001349] pid_max: default: 32768 minimum: 301
[    0.001712] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001754] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.002777] Disabling cpuset control group subsystem
[    0.002968] CPU: Testing write buffer coherency: ok
[    0.003037] ftrace: allocating 22390 entries in 66 pages
[    0.055695] CPU0: update cpu_capacity 1024
[    0.055766] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.055867] Setting up static identity map for 0x100000 - 0x100034
[    0.058107] CPU1: update cpu_capacity 1024
[    0.058115] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.058832] CPU2: update cpu_capacity 1024
[    0.058838] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.059505] CPU3: update cpu_capacity 1024
[    0.059512] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.059595] Brought up 4 CPUs
[    0.059768] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.059797] CPU: All CPU(s) started in HYP mode.
[    0.059823] CPU: Virtualization extensions available.
[    0.060645] devtmpfs: initialized
[    0.071707] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.072028] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.072090] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.072651] pinctrl core: initialized pinctrl subsystem
[    0.073573] NET: Registered protocol family 16
[    0.075843] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.084712] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.084760] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.084935] Serial: AMBA PL011 UART driver
[    0.086832] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.087379] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[    0.156286] bcm2835-dma 3f007000.dma: DMA legacy API manager at bb80f000, dmachans=0x1
[    0.158147] SCSI subsystem initialized
[    0.158329] usbcore: registered new interface driver usbfs
[    0.158431] usbcore: registered new interface driver hub
[    0.158548] usbcore: registered new device driver usb
[    0.165235] raspberrypi-firmware soc:firmware: Attached to firmware from 2017-07-03 14:16
[    0.166662] clocksource: Switched to clocksource arch_sys_counter
[    0.213518] VFS: Disk quotas dquot_6.6.0
[    0.213630] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.213853] FS-Cache: Loaded
[    0.214124] CacheFiles: Loaded
[    0.226377] NET: Registered protocol family 2
[    0.227316] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.227454] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.227665] TCP: Hash tables configured (established 8192 bind 8192)
[    0.227777] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.227845] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.228079] NET: Registered protocol family 1
[    0.228509] RPC: Registered named UNIX socket transport module.
[    0.228541] RPC: Registered udp transport module.
[    0.228569] RPC: Registered tcp transport module.
[    0.228596] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.229566] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.231871] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.248021] FS-Cache: Netfs 'nfs' registered for caching
[    0.249022] NFS: Registering the id_resolver key type
[    0.249076] Key type id_resolver registered
[    0.249104] Key type id_legacy registered
[    0.251549] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.251695] io scheduler noop registered
[    0.251725] io scheduler deadline registered (default)
[    0.252052] io scheduler cfq registered
[    0.257712] BCM2708FB: allocated DMA memory fa910000
[    0.257767] BCM2708FB: allocated DMA channel 0 @ bb80f000
[    0.308199] Console: switching to colour frame buffer device 228x61
[    0.338731] bcm2835-rng 3f104000.rng: hwrng registered
[    0.338991] vc-cma: Videocore CMA driver
[    0.339112] vc-cma: vc_cma_base      = 0x00000000
[    0.339250] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    0.339407] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    0.339765] vc-mem: phys_addr:0x00000000 mem_base=0x3dc00000 mem_size:0x3f000000(1008 MiB)
[    0.355551] brd: module loaded
[    0.364788] loop: module loaded
[    0.364925] Loading iSCSI transport class v2.0-870.
[    0.365644] usbcore: registered new interface driver smsc95xx
[    0.365818] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.594006] Core Release: 2.80a
[    0.594113] Setting default values for core params
[    0.594284] Finished setting default values for core params
[    0.794826] Using Buffer DMA mode
[    0.794935] Periodic Transfer Interrupt Enhancement - disabled
[    0.795103] Multiprocessor Interrupt Enhancement - disabled
[    0.795265] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.795400] Dedicated Tx FIFOs mode
[    0.795879] WARN::dwc_otg_hcd_init:1032: FIQ DMA bounce buffers: virt = 0xba904000 dma = 0xfa904000 len=9024
[    0.796175] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[    0.796800] dwc_otg: Microframe scheduler enabled
[    0.796852] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x8058ef90
[    0.803626] WARN::hcd_init_fiq:460: FIQ ASM at 0x8058f300 length 36
[    0.810376] WARN::hcd_init_fiq:486: MPHI regs_base at 0xbb87a000
[    0.817058] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.823823] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.830684] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.837419] Init: Port Power? op_state=1
[    0.844086] Init: Power Port (0)
[    0.850817] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.857537] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.864217] usb usb1: Product: DWC OTG Controller
[    0.870800] usb usb1: Manufacturer: Linux 4.9.35-v7+ dwc_otg_hcd
[    0.877482] usb usb1: SerialNumber: 3f980000.usb
[    0.884908] hub 1-0:1.0: USB hub found
[    0.891662] hub 1-0:1.0: 1 port detected
[    0.898983] dwc_otg: FIQ enabled
[    0.898988] dwc_otg: NAK holdoff enabled
[    0.898992] dwc_otg: FIQ split-transaction FSM enabled
[    0.899005] Module dwc_common_port init
[    0.899267] usbcore: registered new interface driver usb-storage
[    0.906132] mousedev: PS/2 mouse device common for all mice
[    0.913832] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.920723] bcm2835-cpufreq: min=600000 max=1200000
[    0.927737] sdhci: Secure Digital Host Controller Interface driver
[    0.934328] sdhci: Copyright(c) Pierre Ossman
[    0.941262] sdhost-bcm2835 3f202000.sdhost: could not get clk, deferring probe
[    0.950270] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[    0.957149] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.966526] ledtrig-cpu: registered to indicate activity on CPUs
[    0.973499] hidraw: raw HID events driver (C) Jiri Kosina
[    0.980550] usbcore: registered new interface driver usbhid
[    0.987383] usbhid: USB HID core driver
[    0.995049] vchiq: vchiq_init_state: slot_zero = 0xba980000, is_master = 0
[    1.003879] Initializing XFRM netlink socket
[    1.011058] NET: Registered protocol family 17
[    1.018050] Key type dns_resolver registered
[    1.025329] Registering SWP/SWPB emulation handler
[    1.033041] registered taskstats version 1
[    1.040327] vc-sm: Videocore shared memory driver
[    1.047400] [vc_sm_connected_init]: start
[    1.054775] [vc_sm_connected_init]: end - returning 0
[    1.067717] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    1.076572] sdhost: log_buf @ ba907000 (fa907000)
[    1.116782] Indeed it is in host mode hprt0 = 00021501
[    1.206693] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    1.211351] random: fast init done
[    1.222960] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[    1.230085] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[    1.296820] of_cfs_init
[    1.303894] of_cfs_init: OK
[    1.308213] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.310257] mmc0: new high speed SDHC card at address 59b4
[    1.311005] mmcblk0: mmc0:59b4       14.9 GiB
[    1.316773] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    1.318327] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.318824]  mmcblk0: p1 p2
[    1.319908] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    1.322702] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    1.336690] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.336836] Indeed it is in host mode hprt0 = 00001101
[    1.391697] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.398890] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    1.413870] devtmpfs: mounted
[    1.422719] Freeing unused kernel memory: 1024K (80b00000 - 80c00000)
[    1.474366] mmc1: new high speed SDIO card at address 0001
[    1.557064] usb 1-1: New USB device found, idVendor=0424, idProduct=9514
[    1.564396] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    1.572561] hub 1-1:1.0: USB hub found
[    1.579921] hub 1-1:1.0: 5 ports detected
[    1.704632] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    1.712707] systemd[1]: Detected architecture 'arm'.
[    1.858492] NET: Registered protocol family 10
[    1.867395] systemd[1]: Inserted module 'ipv6'
[    1.876537] systemd[1]: Set hostname to <raspberrypi>.
[    1.884099] systemd[1]: Initializing machine ID from random generator.
[    1.891740] systemd[1]: Installed transient /etc/machine-id file.
[    1.906736] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.037042] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.044496] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.056408] smsc95xx v1.0.5
[    2.150479] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:14:81:8c
[    2.256751] usb 1-1.2: new high-speed USB device number 4 using dwc_otg
[    2.262876] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    2.266026] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    2.266374] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    2.266448] systemd[1]: Starting Remote File Systems (Pre).
[    2.417435] usb 1-1.2: New USB device found, idVendor=0bda, idProduct=818b
[    2.417445] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.417451] usb 1-1.2: Product: 802.11n NIC
[    2.417457] usb 1-1.2: Manufacturer: Realtek
[    2.417464] usb 1-1.2: SerialNumber: 00e04c000001
[    2.526768] usb 1-1.5: new full-speed USB device number 5 using dwc_otg
[    2.681524] usb 1-1.5: New USB device found, idVendor=045e, idProduct=0745
[    2.689623] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    2.689638] usb 1-1.5: Product: Microsoft® 2.4GHz Transceiver v8.0
[    2.689646] usb 1-1.5: Manufacturer: Microsoft
[    2.707286] input: Microsoft Microsoft® 2.4GHz Transceiver v8.0 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:045E:0745.0001/input/input0
[    2.779049] hid-generic 0003:045E:0745.0001: input,hidraw0: USB HID v1.11 Keyboard [Microsoft Microsoft® 2.4GHz Transceiver v8.0] on usb-3f980000.usb-1.5/input0
[    2.793686] input: Microsoft Microsoft® 2.4GHz Transceiver v8.0 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:045E:0745.0002/input/input1
[    2.857351] hid-generic 0003:045E:0745.0002: input,hidraw1: USB HID v1.11 Mouse [Microsoft Microsoft® 2.4GHz Transceiver v8.0] on usb-3f980000.usb-1.5/input1
[    2.903960] input: Microsoft Microsoft® 2.4GHz Transceiver v8.0 as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.2/0003:045E:0745.0003/input/input2
[    2.977399] hid-generic 0003:045E:0745.0003: input,hiddev0,hidraw2: USB HID v1.11 Device [Microsoft Microsoft® 2.4GHz Transceiver v8.0] on usb-3f980000.usb-1.5/input2
[    3.191767] systemd-udevd[143]: starting version 215
[    3.885415] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    4.538495] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    4.772861] usbcore: registered new interface driver brcmfmac
[    4.899064] brcmfmac: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7
[    4.917981] random: crng init done
[    5.303148] systemd-journald[140]: Received request to flush runtime journal from PID 1
[    6.052902] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    6.052958] brcmfmac: power management disabled
[    6.819065] EXT4-fs (mmcblk0p2): resizing filesystem from 409520 to 3889152 blocks
[    6.961634] uart-pl011 3f201000.serial: no DMA platform data
[    7.678554] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[    9.289409] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
[   17.806086] Bluetooth: Core ver 2.22
[   17.806166] NET: Registered protocol family 31
[   17.806172] Bluetooth: HCI device and connection manager initialized
[   17.806194] Bluetooth: HCI socket layer initialized
[   17.806207] Bluetooth: L2CAP socket layer initialized
[   17.806239] Bluetooth: SCO socket layer initialized
[   20.326232] Bluetooth: HCI UART driver ver 2.3
[   20.326244] Bluetooth: HCI UART protocol H4 registered
[   20.326249] Bluetooth: HCI UART protocol Three-wire (H5) registered
[   20.326425] Bluetooth: HCI UART protocol Broadcom registered
[   20.610417] EXT4-fs (mmcblk0p2): resized to 2621440 blocks
[   28.561173] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   28.561186] Bluetooth: BNEP filters: protocol multicast
[   28.561206] Bluetooth: BNEP socket layer initialized
[   28.666936] Adding 102396k swap on /var/swap.  Priority:-1 extents:4 across:241660k SSFS
[   28.913564] EXT4-fs (mmcblk0p2): resized filesystem to 3889152

Can't connect with secured wifi networks after installing a desktop-environment

Hi guys, i have a little problem with the wireless adapter TP-Link TL-WN821N v5.
I tried it with this driver, and it worked at the beginning. But when I installed a desktop-environment, the adapter doesn't connect with my wifi network.

Running a VM with Debian 9, Kernel 4.9-0-4

lsusb

Bus 001 Device 002: ID 2357:0107
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

I tried to connect manually with wpa_passphrase and wpa_supplicant. Before the desktop-environment it works, after the install it doens't work anymore.

Successfully initialized wpa_supplicant
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='WLAN-XXXX' freq=2412 MHz)
wlan0: Associated with xx:xx:xx:xx:xx:xx
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WLAN-XXXX" auth_failures=1 duration=10 reason=WRONG_KEY
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=1
wlan0: Reject scan trigger since one is already pending
wlan0: Failed to initiate AP scan
wlan0: Reject scan trigger since one is already pending
wlan0: Failed to initiate AP scan
wlan0: Reject scan trigger since one is already pending
wlan0: Failed to initiate AP scan
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="WLAN-XXXX"
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='WLAN-XXXX' freq=2412 MHz)
wlan0: Associated with xx:xx:xx:xx:xx:xx
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WLAN-XXXX" auth_failures=2 duration=23 reason=WRONG_KEY
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=1
wlan0: CTRL-EVENT-SCAN-FAILED ret=-16 retry=1
wlan0: CTRL-EVENT-SSID-REENABLED id=0 ssid="WLAN-XXXX"
wlan0: Trying to associate with xx:xx:xx:xx:xx:xx (SSID='WLAN-XXXX' freq=2412 MHz)
wlan0: Associated with xx:xx:xx:xx:xx:xx
wlan0: CTRL-EVENT-DISCONNECTED bssid=xx:xx:xx:xx:xx:xx reason=0 locally_generated=1
wlan0: WPA: 4-Way Handshake failed - pre-shared key may be incorrect
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WLAN-XXXX" auth_failures=3 duration=46 reason=WRONG_KEY
wlan0: CTRL-EVENT-SSID-TEMP-DISABLED id=0 ssid="WLAN-XXXX" auth_failures=4 duration=77 reason=CONN_FAILED
wlan0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
wlan0: CTRL-EVENT-ASSOC-REJECT status_code=1
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
wlan0: CTRL-EVENT-TERMINATING

I recognized with ifconfig, that the MAC-address is sometimes changing.

I would be very happy, if you can help me and solve the problem.

Can't build module under Linux kernel 4.10.13

After installing the latest linux kernel as of time (4.10.13) dkms is unable to build the module.
Here is the make log of dkms:

DKMS make.log for rtl8192eu-4.4 for kernel 4.10.13 (x86_64)
Sun Apr 30 15:43:15 EEST 2017
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.10.13/build M=/var/lib/dkms/rtl8192eu/4.4/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.10.13'
CC [M] /var/lib/dkms/rtl8192eu/4.4/build/core/rtw_cmd.o
In file included from ./include/linux/srcu.h:33:0,
from ./include/linux/notifier.h:15,
from ./include/linux/memory_hotplug.h:6,
from ./include/linux/mmzone.h:751,
from ./include/linux/gfp.h:5,
from ./include/linux/slab.h:14,
from /var/lib/dkms/rtl8192eu/4.4/build/include/osdep_service_linux.h:29,
from /var/lib/dkms/rtl8192eu/4.4/build/include/osdep_service.h:41,
from /var/lib/dkms/rtl8192eu/4.4/build/include/drv_types.h:32,
from /var/lib/dkms/rtl8192eu/4.4/build/core/rtw_cmd.c:22:
./include/linux/netfilter.h: In function ‘nf_hook’:
./include/linux/netfilter.h:205:33: error: dereferencing pointer to incomplete type ‘struct net’
hook_head = rcu_dereference(net->nf.hooks[pf][hook]);
^
./include/linux/rcupdate.h:610:10: note: in definition of macro ‘__rcu_dereference_check’
typeof(*p) *________p1 = (typeof(*p) *__force)lockless_dereference(p);
^
./include/linux/rcupdate.h:790:28: note: in expansion of macro ‘rcu_dereference_check’
#define rcu_dereference(p) rcu_dereference_check(p, 0)
^~~~~~~~~~~~~~~~~~~~~
./include/linux/netfilter.h:205:14: note: in expansion of macro ‘rcu_dereference’
hook_head = rcu_dereference(net->nf.hooks[pf][hook]);
^~~~~~~~~~~~~~~
scripts/Makefile.build:294: recipe for target '/var/lib/dkms/rtl8192eu/4.4/build/core/rtw_cmd.o' failed
make[2]: *** [/var/lib/dkms/rtl8192eu/4.4/build/core/rtw_cmd.o] Error 1
Makefile:1490: recipe for target 'module/var/lib/dkms/rtl8192eu/4.4/build' failed
make[1]: *** [module/var/lib/dkms/rtl8192eu/4.4/build] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.10.13'
Makefile:1685: recipe for target 'modules' failed
make: *** [modules] Error 2

TxPower set not working ... stuck at 12 dBm

Hi,

Thanks for putting this driver on a public place and all your work on it!

I am trying to adjust my 8192EU txpower level and it is stuck at 12 dBm ... I have tried many different commands and combinations ... any ideas on how I can set the txpower?

[root@alarm alarm]# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: Not-Associated   
          Tx-Power=12 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
          
[root@alarm alarm]# iw reg set BO
[root@alarm alarm]# iwconfig wlan0 txpower 20
[root@alarm alarm]# iwconfig wlan0
wlan0     IEEE 802.11bgn  ESSID:off/any  
          Mode:Ad-Hoc  Frequency:2.462 GHz  Cell: Not-Associated   
          Tx-Power=12 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on

Finds networks but can't connect

Hello, I've just installed your driver on kali 4.6.0. It recognizes the wireless adapter (tp-link tl-wn823n v2) and finds the networks. But it fails to connect to all of them. I've tried the same on ubuntu 16.10 and have exactly the same issue. Both, Kali and Ubuntu are virtual box machines, is that the problem? If not, do you know any solution? Thanks

issue with networks which don't broadcast the SSID

Hello, I compiled this driver on raspberry pi 3.
I'm using a DLINK DWA-131 Rev E1. It works fine with networks which broadcast the SSID but it doesn't with the ones that don't.

I got this in the log:

Feb  7 17:03:07 raspberrypi kernel: [  434.002893] RTL871X: set the bssid:00:00:00:00:00:00
Feb  7 17:03:07 raspberrypi kernel: [  434.003041] RTL871X: =>rtw_wx_set_essid
Feb  7 17:03:07 raspberrypi kernel: [  434.003048] RTL871X: ssid=g�isQ�J�)ͺ����F|�T��vZ.c3�ɚ, len=32
Feb  7 17:03:07 raspberrypi kernel: [  434.003057] RTL871X: set ssid [g�isQ�J�)ͺ����F|�T��vZ.c3�ɚ�] fw_state=0x00000008
Feb  7 17:03:07 raspberrypi kernel: [  434.003087] RTL871X: <=rtw_wx_set_essid, ret 0

Any ideas?

Build not working if cross compile

When I try to cross compile this driver for an IMX6.
The build process stops without any error.

Is cross compile supported by this driver?

make ARCH=arm CROSS_COMPILE=arm-v7a-linux-gnueabihf- -C /data/TQ-DEV/TQMa6x.BSP.SW.SRC.Snapshot-20161219/platform-ngc/build-target/kernel-header-4.1/ M=/data/TQ-DEV/TQMa6x.BSP.SW.SRC.Snapshot-20161219/local_src/rtl_module modules 
make: Verzeichnis „/data/TQ-DEV/TQMa6x.BSP.SW.SRC.Snapshot-20161219/platform-ngc/build-target/kernel-header-4.1“ wird betreten

  WARNING: Symbol version dump ./Module.symvers
           is missing; modules will have no dependencies and modversions.

  Building modules, stage 2.
  MODPOST 0 modules
make: Verzeichnis „/data/TQ-DEV/TQMa6x.BSP.SW.SRC.Snapshot-20161219/platform-ngc/build-target/kernel-header-4.1“ wird verlassen

TP-LINK TL-WN823N V2 WiFi adapter

I've been testing this driver for a few days, and I can tell that it works nice with TP-LINK TL-WN823N V2 WiFi adapter . I've got transfer around 170 mbit/s. There's a few problems with replugging/unplugging the device. I always get the following log:

Aug 14 12:14:07 morfikownia kernel: ------------[] cut here ]------------
Aug 14 12:14:07 morfikownia kernel: WARNING: CPU: 0 PID: 36955 at /build/linux-aOJbQa/linux-4.6.4/fs/proc/generic.c:564 remove_proc_entry+0x171/0x180
Aug 14 12:14:07 morfikownia kernel: name 'wlan20'
Aug 14 12:14:07 morfikownia kernel: Modules linked in: 8192eu(OE) veth(E) nls_utf8(E) nls_cp437(E) vfat(E) fat(E) uas(E) usb_storage(E) fuse(E) cpuid(E) cpufreq_conservative(E) cpufreq_userspace(E) cpufreq_powersave(E) cpufreq_stats(E) bridge(E) stp(E) llc(E) drbg(E) ansi_cprng(E) ctr(E) ccm(E) nf_log_ipv4(E) nf_log_common(E) xt_LOG(E) xt_limit(E) xt_pkttype(E) ipt_REJECT(E) nf_reject_ipv4(E) ipt_SYNPROXY(E) nf_synproxy_core(E) xt_conntrack(E) nf_conntrack_netlink(E) iptable_filter(E) ipt_MASQUERADE(E) nf_nat_masquerade_ipv4(E) iptable_nat(E) nf_nat_ipv4(E) nf_nat(E) xt_TCPMSS(E) xt_comment(E) xt_statistic(E) xt_owner(E) xt_mark(E) iptable_mangle(E) xt_tcpudp(E) xt_CT(E) xt_multiport(E) xt_set(E) iptable_raw(E) ip_tables(E) hid_a4tech(E) iTCO_wdt(E) iTCO_vendor_support(E) ip_set_hash_ip(E) ip_set_hash_net(E) acpi_cpufreq(E)
Aug 14 12:14:07 morfikownia kernel:  ip_set(E) nfnetlink(E) battery(E) ac(E) intel_powerclamp(E) lpc_ich(E) processor(E) hp_wmi(E) sparse_keymap(E) shpchp(E) sg(E) mfd_core(E) i2c_i801(E) mei_me(E) tpm_tis(E) tpm(E) mei(E) joydev(E) serio_raw(E) nfs(E) fscache(E) arc4(E) brcmsmac(E) cordic(E) brcmutil(E) bcma(E) mac80211(E) cfg80211(E) rfkill(E) evdev(E) eeprom(E) tun(E) xt_recent(E) snd_hda_codec_hdmi(E) snd_hda_codec_realtek(E) snd_hda_codec_generic(E) snd_hda_intel(E) snd_hda_codec(E) snd_hda_core(E) snd_hwdep(E) zram(E) snd_pcm(E) snd_timer(E) snd(E) soundcore(E) act_mirred(E) sch_fq_codel(E) xt_connmark(E) ifb(E) nf_conntrack_ipv6(E) nf_defrag_ipv6(E) nf_conntrack_ipv4(E) nf_defrag_ipv4(E) zsmalloc(E) nf_conntrack(E) cls_cgroup(E) xt_cgroup(E) x_tables(E) coretemp(E) lz4_compress(E) bonding(E) ecryptfs(E) cbc(E) hmac(E)
Aug 14 12:14:07 morfikownia kernel:  encrypted_keys(E) nfsd(E) auth_rpcgss(E) nfs_acl(E) lockd(E) grace(E) parport_pc(E) ppdev(E) sunrpc(E) lp(E) parport(E) loop(E) autofs4(E) ext4(E) ecb(E) lrw(E) glue_helper(E) ablk_helper(E) cryptd(E) aes_x86_64(E) crc16(E) jbd2(E) mbcache(E) btrfs(E) crc32c_generic(E) xor(E) raid6_pq(E) xts(E) gf128mul(E) algif_skcipher(E) af_alg(E) dm_crypt(E) dm_mod(E) sr_mod(E) sd_mod(E) cdrom(E) hid_generic(E) usbhid(E) hid(E) psmouse(E) ahci(E) libahci(E) r8169(E) mii(E) libata(E) scsi_mod(E) i915(E) fjes(E) video(E) i2c_algo_bit(E) thermal(E) wmi(E) drm_kms_helper(E) drm(E) ehci_pci(E) ehci_hcd(E) usbcore(E) usb_common(E) button(E) [last unloaded: 8192eu]
Aug 14 12:14:07 morfikownia kernel: CPU: 0 PID: 36955 Comm: kworker/0:2 Tainted: G        WC OE   4.6.0-1-amd64 #1 Debian 4.6.4-1
Aug 14 12:14:07 morfikownia kernel: Hardware name: Hewlett-Packard HP G62 Notebook PC              /1439, BIOS F.48 11/09/2011
Aug 14 12:14:07 morfikownia kernel: Workqueue: usb_hub_wq hub_event [usbcore]
Aug 14 12:14:07 morfikownia kernel:  0000000000000286 00000000071d7865 ffffffff81311505 ffff88006aa27a38
Aug 14 12:14:07 morfikownia kernel:  0000000000000000 ffffffff8107a50e ffff8800280cd000 ffff88006aa27a90
Aug 14 12:14:07 morfikownia kernel:  ffff8800637b4a80 ffffc900004c2000 ffff8800280cd000 ffff8800637b4a80
Aug 14 12:14:07 morfikownia kernel: Call Trace:
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81311505>] ? dump_stack+0x5c/0x77
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8107a50e>] ? __warn+0xbe/0xe0
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8107a58f>] ? warn_slowpath_fmt+0x5f/0x80
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8126001c>] ? __xlate_proc_name+0x5c/0xa0
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81260c31>] ? remove_proc_entry+0x171/0x180
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0dcbf00>] ? rtw_adapter_proc_deinit+0x74/0x8a [8192eu]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0db774a>] ? rtw_ndev_uninit+0x3b/0x3d [8192eu]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff814c2ebb>] ? rollback_registered_many+0x18b/0x300
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff814c3069>] ? rollback_registered+0x39/0x60
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff814c4050>] ? unregister_netdevice_queue+0x40/0x90
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff814c40b8>] ? unregister_netdev+0x18/0x20
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0db7de1>] ? rtw_unregister_netdevs+0x40/0x5a [8192eu]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0db93b3>] ? rtw_dev_remove+0x32/0x88 [8192eu]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc002272f>] ? usb_unbind_interface+0x7f/0x280 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8143f7da>] ? __device_release_driver+0x9a/0x150
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8143f8ae>] ? device_release_driver+0x1e/0x30
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8143ee79>] ? bus_remove_device+0xf9/0x170
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff8143b267>] ? device_del+0x127/0x250
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0026eab>] ? usb_remove_ep_devs+0x1b/0x30 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc00200ce>] ? usb_disable_device+0x7e/0x260 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0015e40>] ? usb_disconnect+0x90/0x280 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0011c64>] ? set_port_feature+0x44/0x50 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffffc0018077>] ? hub_event+0x767/0x14f0 [usbcore]
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81092dcd>] ? process_one_work+0x15d/0x410
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff810930cd>] ? worker_thread+0x4d/0x480
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81093080>] ? process_one_work+0x410/0x410
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81098f1d>] ? kthread+0xcd/0xf0
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff815c69b2>] ? ret_from_fork+0x22/0x40
Aug 14 12:14:07 morfikownia kernel:  [<ffffffff81098e50>] ? kthread_create_on_node+0x190/0x190
Aug 14 12:14:07 morfikownia kernel: ---[] end trace 0a9b61bbcf52d0e9 ]---

Here's the kernel version:


$ uname -a
Linux morfikownia 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux

Doesn't work with tl-wn822n v4

Ubuntu 16.04:

git clone https://github.com/Mange/rtl8192eu-linux-driver/
cd rtl8192eu-linux-driver
make # added an ignore to date error on makefile
sudo make install
reboot

lsusb:

bus 001: Device 003: ID 2357:0108

Have I missed a step?

Answer

@jeremyb31's repo does work.

git clone https://github.com/jeremyb31/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
make
sudo make install
reboot

Then it will be shown on iwconfig, although on lsusb it will show as before.

If doesn't work try rfkill list all; lshw -c net

IP: [<f8f86d70>] rtw_ndev_notifier_call+0x13/0x5d [8192eu]

Hello,

After building the driver, the following was prompted:

[  258.028254] usb 5-7: new high-speed USB device number 3 using ehci-pci
[  258.161671] usb 5-7: New USB device found, idVendor=0bda, idProduct=818b
[  258.161691] usb 5-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  258.161704] usb 5-7: Product: 802.11n NIC
[  258.161715] usb 5-7: Manufacturer: Realtek
[  258.161726] usb 5-7: SerialNumber: ----------
[  259.323530] RTL871X: module init start
[  259.323541] RTL871X: rtl8192eu v4.3.1.1_11320.20140505
[  259.323547] RTL871X: build time: Jul  3 2014 14:13:29
[  259.323636] BUG: unable to handle kernel NULL pointer dereference at 00000028
[  259.323893] IP: [<f8f86d70>] rtw_ndev_notifier_call+0x13/0x5d [8192eu]
[  259.324018] *pdpt = 0000000032e6e001 *pde = 0000000000000000 
[  259.324286] Oops: 0000 [#1] SMP 
[  259.324286] Modules linked in: 8192eu(O+) fuse ctr ccm binfmt_misc nfnetlink_queue nfnetlink_log nfnetlink bluetooth sha256_generic cbc joydev arc4 uvcvideo b43 videobuf2_vmalloc videobuf2_memops videobuf2_core v4l2_common bcma videodev mac80211 media iTCO_wdt iTCO_vendor_support hp_wmi cfg80211 sparse_keymap rfkill i915 coretemp lpc_ich snd_hda_codec_idt mfd_core psmouse snd_hda_codec_generic evdev pcspkr serio_raw snd_hda_intel snd_hda_controller rng_core snd_hda_codec drm_kms_helper snd_hwdep drm wmi snd_pcm snd_timer snd i2c_algo_bit battery soundcore ac shpchp video button acpi_cpufreq processor autofs4 ext4 crc16 mbcache jbd2 xts gf128mul algif_skcipher af_alg dm_crypt dm_mod sg sd_mod ata_generic ata_piix libata scsi_mod uhci_hcd ehci_pci ehci_hcd ssb usbcore atl1c usb_common mmc_core pcmcia
[  259.325995]  pcmcia_core thermal thermal_sys
[  259.325995] CPU: 1 PID: 1478 Comm: systemd-udevd Tainted: G           O    4.0.0-kali1-686-pae #1 Debian 4.0.4-1+kali2
[  259.325995] Hardware name: ----------
[  259.325995] task: f364f2a0 ti: f67c4000 task.ti: f67c4000
[  259.325995] EIP: 0060:[<f8f86d70>] EFLAGS: 00010282 CPU: 1
[  259.325995] EIP is at rtw_ndev_notifier_call+0x13/0x5d [8192eu]
[  259.325995] EAX: 00000000 EBX: f8fe9a00 ECX: f67c5dc4 EDX: 00000005
[  259.325995] ESI: c16c4390 EDI: f5631800 EBP: f67c5db0 ESP: f67c5d98
[  259.325995]  DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
[  259.325995] CR0: 8005003b CR2: 00000028 CR3: 35e60000 CR4: 000007f0
[  259.325995] Stack:
[  259.325995]  f67c5db8 f3428393 f6786be8 f67c5db0 f8fe9a00 c16c4390 f67c5dd4 c13e64df
[  259.325995]  c11e389a c16c4300 00000000 f5631800 f4dc5c20 c165e740 f8789000 f67c5ddc
[  259.325995]  f8f870b9 f67c5e60 f878905d f4dc5c20 c1002136 000000d0 c15c25cd f8789000
[  259.325995] Call Trace:
[  259.325995]  [<c13e64df>] ? register_netdevice_notifier+0x7f/0x1a0
[  259.336610]  [<c11e389a>] ? proc_create_data+0x6a/0xc0
[  259.336610]  [<f8789000>] ? 0xf8789000
[  259.336610]  [<f8f870b9>] ? rtw_ndev_notifier_register+0x12/0x14 [8192eu]
[  259.336610]  [<f878905d>] ? rtw_drv_entry+0x5d/0x1000 [8192eu]
[  259.336610]  [<c1002136>] ? do_one_initcall+0xc6/0x200
[  259.336610]  [<f8789000>] ? 0xf8789000
[  259.336610]  [<c113309d>] ? free_pages_prepare+0x1ad/0x2c0
[  259.336610]  [<c116179c>] ? free_vmap_area_noflush+0x2c/0x70
[  259.336610]  [<c14cb53d>] ? do_init_module+0x21/0x198
[  259.336610]  [<c14cb56c>] ? do_init_module+0x50/0x198
[  259.336610]  [<c10d099a>] ? load_module+0x1b4a/0x2300
[  259.336610]  [<c10d130d>] ? SyS_finit_module+0x7d/0xc0
[  259.336610]  [<c11474ab>] ? vm_mmap_pgoff+0x7b/0xa0
[  259.336610]  [<c14d0e5f>] ? sysenter_do_call+0x12/0x12
[  259.336610] Code: c2 02 05 d8 32 00 00 b9 06 00 00 00 e8 e9 f5 ff ff b8 00 00 00 00 5d c3 55 89 e5 56 53 83 ec 10 3e 8d 74 26 00 8b 81 28 01 00 00 <81> 78 28 8e 60 f9 f8 75 35 89 cb 89 d6 83 3d 08 94 fe f8 07 76
[  259.336610] EIP: [<f8f86d70>] rtw_ndev_notifier_call+0x13/0x5d [8192eu] SS:ESP 0068:f67c5d98
[  259.336610] CR2: 0000000000000028
[  259.449971] ---[ end trace e3cc2cdff0eea544 ]---

Any ideas about how to solve this issue?

Support for kernel 4.15?

Got this error:

make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.15.3-2-ARCH/build M=/var/lib/dkms/rtl8192eu/1.0/build modules make[1]: Entering directory '/usr/lib/modules/4.15.3-2-ARCH/build' CC [M] /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o In file included from /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service.h:45:0, from /var/lib/dkms/rtl8192eu/1.0/build/include/drv_types.h:32, from /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.c:22: /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h: In function ‘_init_timer’: /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h:273:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’ ptimer->data = (unsigned long)cntx; ^~ /var/lib/dkms/rtl8192eu/1.0/build/include/osdep_service_linux.h:274:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration] init_timer(ptimer); ^~~~~~~~~~ _init_timer cc1: some warnings being treated as errors make[2]: *** [scripts/Makefile.build:317: /var/lib/dkms/rtl8192eu/1.0/build/core/rtw_cmd.o] Error 1 make[1]: *** [Makefile:1508: _module_/var/lib/dkms/rtl8192eu/1.0/build] Error 2 make[1]: Leaving directory '/usr/lib/modules/4.15.3-2-ARCH/build' make: *** [Makefile:1700: modules] Error 2

I'm guessing it's due to lack of support.

driver is noisy

By default, the driver fills up the log with tons of messages. Here's a 1m capture from syslog

Mar 28 07:14:47 felix kernel: [36720.478330] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:14:47 felix kernel: [36720.480249] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:14:48 felix kernel: [36721.084268] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-LPS_CTRL_LEAVE
Mar 28 07:14:48 felix kernel: [36721.084272] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0
Mar 28 07:14:48 felix kernel: [36721.085136] RTL871X: SetHwReg8192E(enx98ded01a7873): [HW_VAR_MACID_SLEEP] macid=0, org reg_0x4d4=0x00000000
Mar 28 07:14:49 felix kernel: [36722.510485] RTL871X: survey done event(29) band:0 for enx98ded01a7873
Mar 28 07:14:49 felix kernel: [36722.510511] RTL871X: rtw_indicate_scan_done(enx98ded01a7873)
Mar 28 07:14:51 felix kernel: [36724.487026] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:14:51 felix kernel: [36724.487037] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:15:03 felix kernel: [36736.514801] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-TRAFFIC_BUSY
Mar 28 07:15:03 felix kernel: [36736.514807] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0
Mar 28 07:15:05 felix kernel: [36738.518796] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:15:05 felix kernel: [36738.518805] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:15:07 felix kernel: [36740.522856] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-TRAFFIC_BUSY
Mar 28 07:15:07 felix kernel: [36740.522862] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0
Mar 28 07:15:09 felix kernel: [36742.526740] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:15:09 felix kernel: [36742.526745] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:15:29 felix kernel: [36762.566316] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-TRAFFIC_BUSY
Mar 28 07:15:29 felix kernel: [36762.566335] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0
Mar 28 07:15:31 felix kernel: [36764.570029] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:15:31 felix kernel: [36764.570035] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:15:37 felix kernel: [36770.581885] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-TRAFFIC_BUSY
Mar 28 07:15:37 felix kernel: [36770.581890] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0
Mar 28 07:15:39 felix kernel: [36772.585861] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Enter 802.11 power save - WIFI-TRAFFIC_IDLE
Mar 28 07:15:39 felix kernel: [36772.585871] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=2 SmartPS=2 UAPSD=0
Mar 28 07:15:49 felix kernel: [36782.605596] RTL871X: rtw_set_ps_mode(enx98ded01a7873) Leave 802.11 power save - WIFI-TRAFFIC_BUSY
Mar 28 07:15:49 felix kernel: [36782.605603] RTL871X: rtl8192e_set_FwPwrMode_cmd: Mode=0 SmartPS=2 UAPSD=0

I managed to silence the power save messages by loading the driver with options 8192eu rtw_power_mgnt=0 rtw_enusbss=0 rtw_ips_mode=0 but I still get the SetHwReg8192E(enx98ded01a7873): [HW_VAR_MACID_SLEEP] every minute, even though it has already connected:

Mar 28 07:41:07 foo kernel: [ 1159.892182] RTL871X: SetHwReg8192E(enx98ded01a7873): [HW_VAR_MACID_SLEEP] macid=0, org reg_0x4d4=0x00000000
Mar 28 07:41:08 foo kernel: [ 1161.307079] RTL871X: survey done event(2d) band:0 for enx98ded01a7873
Mar 28 07:41:08 foo kernel: [ 1161.307100] RTL871X: rtw_indicate_scan_done(enx98ded01a7873)
Mar 28 07:43:07 foo kernel: [ 1279.884516] RTL871X: SetHwReg8192E(enx98ded01a7873): [HW_VAR_MACID_SLEEP] macid=0, org reg_0x4d4=0x00000000
Mar 28 07:43:08 foo kernel: [ 1281.309074] RTL871X: survey done event(2a) band:0 for enx98ded01a7873
Mar 28 07:43:08 foo kernel: [ 1281.309078] RTL871X: rtw_indicate_scan_done(enx98ded01a7873)
Mar 28 07:45:07 foo kernel: [ 1399.872746] RTL871X: SetHwReg8192E(enx98ded01a7873): [HW_VAR_MACID_SLEEP] macid=0, org reg_0x4d4=0x00000000
Mar 28 07:45:08 foo kernel: [ 1401.302292] RTL871X: survey done event(2e) band:0 for enx98ded01a7873
Mar 28 07:45:08 foo kernel: [ 1401.302296] RTL871X: rtw_indicate_scan_done(enx98ded01a7873)

How can I silence that too? I don't need the driver to still scan while it's already connected.

add blacklist and disable-power-manager files

It need for building the akmods.
Same here: https://github.com/pvaret/rtl8192cu-fixes

I tryed to build akmod package and did rewrite necessary files:
https://github.com/F1ash/rtl8192eu-kmod-common/blob/master/blacklist-native-rtl8192.conf
https://github.com/F1ash/rtl8192eu-kmod-common/blob/master/8192eu-disable-power-management.conf

The installed kernel module works, but i can't use adapter as AP. And in dmesg periodically filled by module messages.

TP-LINK TL-WN823N

$ uname -r : 4.12.0-0.rc3.git3.2.fc27.x86_64

not working under ubuntu 17.04 desktop x64

compiles fine for 4.10.20 kernel of ubuntu desktop gnome 17.04 x86_64, its module is loaded and usb device detected by gnome network manager, but i see no light and it cannot connect to any network,,

Support for Linux 4.10

I have been using this patch since Linux 4.7 and it has worked flawlessly ever since. I was wondering if support for Linux 4.10 would be added as it is the default kernel in the upcoming Ubuntu 17.04?

[Mange/rtl8192eu-linux-driver] unable to compile after Kernel 4.9.x upgrade..

Hi,

Many thanks first of all, I have been using this [Mange/rtl8192eu-linux-driver] package since kernel 4.6.x.. Infact, this has been the only working driver package for my TP-LINK TL-WN823N V2 adapter..

But since I upgraded to kernel 4.9.x, I have been unable to compile this package.. I am enclosing the error Root-terminal output for "make && make install":

root@ik--pc:/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master# make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.9.0-5.1-liquorix-amd64/build M=/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master  modules
make[1]: Entering directory '/usr/src/linux-headers-4.9.0-5.1-liquorix-amd64'
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_cmd.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.o
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c: In function ‘aes_cipher’:
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c:1540:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c:1543:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c: In function ‘aes_decipher’:
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c:1925:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
     for (j = 0; j < 8; j++)
     ^~~
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_security.c:1928:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’
  payload_index = hdrlen + 8;
  ^~~~~~~~~~~~~
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_debug.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_io.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_ioctl_query.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_ioctl_set.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_ieee80211.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_mlme.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_mlme_ext.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_wlan_util.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_vht.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_pwrctrl.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_rf.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_recv.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_sta_mgt.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_ap.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_xmit.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_p2p.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_tdls.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_br_ext.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_iol.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_sreset.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_btcoex.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_beamforming.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_odm.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/efuse/rtw_efuse.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/osdep_service.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/os_intfs.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/usb_intf.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/usb_ops_linux.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/ioctl_linux.o
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/ioctl_linux.c: In function ‘rtw_mp_read_reg’:
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/ioctl_linux.c:10395:8: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
        if ( data[i] != '\0' )
        ^~
/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/ioctl_linux.c:10398:10: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’
          j++;
          ^
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/xmit_linux.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/mlme_linux.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/recv_linux.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/ioctl_cfg80211.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/wifi_regd.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/rtw_android.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/os_dep/linux/rtw_proc.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_intf.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_com.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_com_phycfg.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_phy.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_btcoex.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/hal_hci/hal_usb.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/led/hal_usb_led.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/HalPwrSeqCmd.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/Hal8192EPwrSeq.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_xmit.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_sreset.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_hal_init.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_phycfg.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_rf6052.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_dm.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_rxdesc.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_cmd.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/usb/usb_halinit.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/usb/rtl8192eu_led.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/usb/rtl8192eu_xmit.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/usb/rtl8192eu_recv.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/usb/usb_ops_linux.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/rtl8192e/rtl8192e_mp.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/odm_debug.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/odm_AntDiv.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/odm_interface.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/odm_HWConfig.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/odm.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/HalPhyRf.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/HalHWImg8192E_MAC.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/HalHWImg8192E_BB.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/HalHWImg8192E_RF.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/HalHWImg8192E_FW.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/HalPhyRf_8192e.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/odm_RegConfig8192E.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/hal/OUTSRC/rtl8192e/odm_RTL8192E.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/platform/platform_ops.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_mp.o
  CC [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/core/rtw_mp_ioctl.o
  LD [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/8192eu.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/8192eu.mod.o
  LD [M]  /home/ik/Downloads/lm2/rtl8192eu-linux-driver-master/8192eu.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.9.0-5.1-liquorix-amd64'
root@ik--pc:/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master# make install
install -p -m 644 8192eu.ko  /lib/modules/4.9.0-5.1-liquorix-amd64/kernel/drivers/net/wireless/
/sbin/depmod -a 4.9.0-5.1-liquorix-amd64
root@ik--pc:/home/ik/Downloads/lm2/rtl8192eu-linux-driver-master# 

I hope the gurus look into it.. Thanks in Advance!!

Kali 4.6.0 x64 needs support!

When I install the driver, it appears like this:
make: *** lib/modules/4.6.0-kali1-amd64/build M=/"the driver's path" modules
Thx!

TP-Link TL-WN821N v5 problems

Installed with dkms,
Module is loaded

Module Size Used by
cfg80211 524288 0
uvcvideo 86016 0
videobuf2_vmalloc 16384 1 uvcvideo
videobuf2_memops 16384 1 videobuf2_vmalloc
videobuf2_v4l2 20480 1 uvcvideo
videobuf2_core 36864 2 uvcvideo,videobuf2_v4l2
joydev 20480 0
8192eu 901120 0

But i can't get the interface up
3: wlp0s29u1u4u3: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 18:a6:f7:12:8f:26 brd ff:ff:ff:ff:ff:ff

Doing sudo ip link set wlp0s29u1u4u3 up
or sudo ip link set dev wlp0s29u1u4u3 up
does nothing, it stays down and 0 networks listed in NetworkManager

install: cannot stat ‘8192eu.ko’: No such file or directory

Using make install gives me the following :
install -p -m 644 8192eu.ko /lib/modules/4.3.0-kali1-amd64/kernel/drivers/net/wireless/ install: cannot stat ‘8192eu.ko’: No such file or directory Makefile:1341: recipe for target 'install' failed make: *** [install] Error 1

Help is appreciated!

Warning is produced when driver is unloaded

Currently unloading the driver I get the following warnings:


[пн ное 13 18:26:42 2017] ------------[ cut here ]------------
[пн ное 13 18:26:42 2017] WARNING: CPU: 7 PID: 8774 at /build/linux-hwe-lyR8gz/linux-hwe-4.10.0/fs/proc/generic.c:574 remove_proc_entry+0x175/0x180
[пн ное 13 18:26:42 2017] name 'wifi1'
[пн ное 13 18:26:42 2017] CPU: 7 PID: 8774 Comm: rmmod Tainted: G        W  OE   4.10.0-38-generic #42~16.04.1-Ubuntu
[пн ное 13 18:26:42 2017] Hardware name: Dell Inc. Precision T1650/0X9M3X, BIOS A20 12/21/2015
[пн ное 13 18:26:42 2017] Call Trace:
[пн ное 13 18:26:42 2017]  dump_stack+0x63/0x90
[пн ное 13 18:26:42 2017]  __warn+0xcb/0xf0
[пн ное 13 18:26:42 2017]  warn_slowpath_fmt+0x5f/0x80
[пн ное 13 18:26:42 2017]  ? pde_subdir_find+0x4d/0x80
[пн ное 13 18:26:42 2017]  remove_proc_entry+0x175/0x180
[пн ное 13 18:26:42 2017]  rtw_adapter_proc_deinit+0x92/0xac [8192eu]
[пн ное 13 18:26:42 2017]  rtw_ndev_uninit+0x3f/0x42 [8192eu]
[пн ное 13 18:26:42 2017]  rollback_registered_many+0x246/0x420
[пн ное 13 18:26:42 2017]  rollback_registered+0x3c/0x70
[пн ное 13 18:26:42 2017]  unregister_netdevice_queue+0x55/0xc0
[пн ное 13 18:26:42 2017]  unregister_netdev+0x1c/0x30
[пн ное 13 18:26:42 2017]  rtw_unregister_netdevs+0x45/0x60 [8192eu]
[пн ное 13 18:26:42 2017]  rtw_dev_remove+0x25/0x6f [8192eu]
[пн ное 13 18:26:42 2017]  usb_unbind_interface+0x72/0x260
[пн ное 13 18:26:42 2017]  device_release_driver_internal+0x155/0x210
[пн ное 13 18:26:42 2017]  driver_detach+0x3f/0x80
[пн ное 13 18:26:42 2017]  bus_remove_driver+0x55/0xd0
[пн ное 13 18:26:42 2017]  driver_unregister+0x2c/0x50
[пн ное 13 18:26:42 2017]  usb_deregister+0x6e/0xd0
[пн ное 13 18:26:42 2017]  rtw_drv_halt+0x2f/0xa84 [8192eu]
[пн ное 13 18:26:42 2017]  SyS_delete_module+0x1b8/0x220
[пн ное 13 18:26:42 2017]  ? exit_to_usermode_loop+0x90/0xb0
[пн ное 13 18:26:42 2017]  entry_SYSCALL_64_fastpath+0x1e/0xad
[пн ное 13 18:26:42 2017] RIP: 0033:0x7f31e0c768e7
[пн ное 13 18:26:42 2017] RSP: 002b:00007ffe70b8dcc8 EFLAGS: 00000202 ORIG_RAX: 00000000000000b0
[пн ное 13 18:26:42 2017] RAX: ffffffffffffffda RBX: 0000559ace0d51f0 RCX: 00007f31e0c768e7
[пн ное 13 18:26:42 2017] RDX: 000000000000000a RSI: 0000000000000800 RDI: 0000559ace0d5258
[пн ное 13 18:26:42 2017] RBP: 0000000000000003 R08: 0000000000000000 R09: 1999999999999999
[пн ное 13 18:26:42 2017] R10: 0000000000000883 R11: 0000000000000202 R12: 00007ffe70b8ccb0
[пн ное 13 18:26:42 2017] R13: 0000000000000000 R14: 0000000000000000 R15: 0000559ace0d51f0
[пн ное 13 18:26:42 2017] ---[ end trace e507b579398db060 ]---

Followed by:

[пн ное 13 18:26:42 2017] ------------[ cut here ]------------
[пн ное 13 18:26:42 2017] WARNING: CPU: 7 PID: 8774 at /build/linux-hwe-lyR8gz/linux-hwe-4.10.0/fs/proc/generic.c:585 remove_proc_entry+0x158/0x180
[пн ное 13 18:26:42 2017] remove_proc_entry: removing non-empty directory 'net/rtl8192eu', leaking at least 'wlan0'
[пн ное 13 18:26:42 2017] CPU: 7 PID: 8774 Comm: rmmod Tainted: G        W  OE   4.10.0-38-generic #42~16.04.1-Ubuntu
[пн ное 13 18:26:42 2017] Hardware name: Dell Inc. Precision T1650/0X9M3X, BIOS A20 12/21/2015
[пн ное 13 18:26:42 2017] Call Trace:
[пн ное 13 18:26:42 2017]  dump_stack+0x63/0x90
[пн ное 13 18:26:42 2017]  __warn+0xcb/0xf0
[пн ное 13 18:26:42 2017]  warn_slowpath_fmt+0x5f/0x80
[пн ное 13 18:26:42 2017]  remove_proc_entry+0x158/0x180
[пн ное 13 18:26:42 2017]  rtw_drv_proc_deinit+0x47/0x55 [8192eu]
[пн ное 13 18:26:42 2017]  rtw_drv_halt+0x3e/0xa84 [8192eu]
[пн ное 13 18:26:42 2017]  SyS_delete_module+0x1b8/0x220
[пн ное 13 18:26:42 2017]  ? exit_to_usermode_loop+0x90/0xb0
[пн ное 13 18:26:42 2017]  entry_SYSCALL_64_fastpath+0x1e/0xad
[пн ное 13 18:26:42 2017] RIP: 0033:0x7f31e0c768e7
[пн ное 13 18:26:42 2017] RSP: 002b:00007ffe70b8dcc8 EFLAGS: 00000202 ORIG_RAX: 00000000000000b0
[пн ное 13 18:26:42 2017] RAX: ffffffffffffffda RBX: 0000559ace0d51f0 RCX: 00007f31e0c768e7
[пн ное 13 18:26:42 2017] RDX: 000000000000000a RSI: 0000000000000800 RDI: 0000559ace0d5258
[пн ное 13 18:26:42 2017] RBP: 0000000000000003 R08: 0000000000000000 R09: 1999999999999999
[пн ное 13 18:26:42 2017] R10: 0000000000000883 R11: 0000000000000202 R12: 00007ffe70b8ccb0
[пн ное 13 18:26:42 2017] R13: 0000000000000000 R14: 0000000000000000 R15: 0000559ace0d51f0
[пн ное 13 18:26:42 2017] ---[ end trace e507b579398db061 ]---

The problem is that in rtw_adapter_proc_init the device entry is registered like so: dir_dev = rtw_proc_create_dir(dev->name, drv_proc, dev); Later, in rtw_adapter_proc_deinit it's unregistered with remove_proc_entry(dev->name, drv_proc); . The problem is that between registration/unregistration it's possible for the device to be renamed. This causes the unregistration function to fail and leak some memory.

This could be fixed in two ways:

  1. Statically remember the first name with which the device proc entry is created and when unregistering use that statically rather than the name which the net_device currently holds

  2. Implement a netdevice notifier routine which will get called when the device is renamed, at this point the code should remove the old proc entry, and re-create it with the new name.

Create new branch for v4.4.1

The master branch is a little bit outdated, based on v4.3.1.1_11320.20140505

I have merged all your improvements into the v4.4.1 version from realtek.

Can you please create a new branch in order to send a PR from my branch?

The code comes from this tarball

Compilation (I don't have real hardware) was tested by me with:

  • Debian 8 stable with kernel 3.16 and GCC 4.8
  • LibreElec 7 kernel 3.14 and GCC 5.3.1
  • LibreElec 9 kernel 4.10 and 4.11. GCC 6.2.0

Note that LibreElec has one patch for GCC not included in the repository.

The code has been tested with real hardware by @nomadmzl, @masterzorag, @gilcu3 with several kernels, like 4.4.9, 4.8 or 4.11

Please see CGarces#1 for details

This is the changelog based on the release notes:

  • v4.3.8_12406.20140929
  1. Support Adaptivity (v7.1)
  2. Fix efuse write failed problem.
  3. Improve performance of Soft-AP mode.
  4. Adjust driver procedure to eliminate RF interference.
  5. Clear up all compile warning.
  6. Fix IOT issue with some AP’s RA mechanism.
  • v4.3.15_14701.20150715_BTCOEX20150615-41
  1. This driver can support 8192EU and 8192EU+8761AW
  2. Support BT coexist (version BTCOEX20150615-41)
  3. Support Linux kernel 4.0
  4. Support Android 5.0
  5. Support High power feature
  6. Support Sniffer feature (linux)
  7. Update Adaptivity (v8.4)
  8. Fix legacy AP connect issue
  9. Fix P2P listen state setting listen channel issue
  • v4.3.15.2_16504.20160106_BTCOEX20150615-41
  1. Support efuse 5.7.3
  2. Support monitor mode
  3. Fix Adaptivity IPS issue
  4. Fix WEXT concurrent mode issue
  • v4.4.1_17696.20160509_BTCOEX20160412-0042
  1. Support Linux Kernel 4.4.6
  2. Support Android 6.0
  3. Support TDLS
  4. Support proc current_tx_rate
  5. Support proc tx_info_msg /rx_info_msg
  6. Update BT coexist (version BTCOEX20160412-0042)
  7. Update Adaptivity (v9.0)
  8. Fix wpa_supplicant disconnect ignore issue
  9. Fix P2P logo issue

Wifi disconnects every few minutes on Linux 4.8.0-48

Ever since the upgrade to Linux 4.8.0-48, the USB Wifi adapter disconnects every few minutes. So I have to re-plug in the device for it to work.
Note: There is no problem with the network itself as the in-built adapter and even other devices stay connected to the network.

don't support soft ap?

I'm using tenda U1 USB wifi,It support soft app on windows,but not work on ubuntu。

TL-WN822N V 4.0 can connect to open networks but not WPA2-PSK

Hey all,
So got the driver and compiled it, however I can connect only to open wifi networks, any attempt to connect to a WPA2 authenticated network fails.

I have a few other wifi devices and they seem to connect to the network fine.

Using Ubuntu 17.04, kernel 4.10.0-28-generic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.