abhijeet2096 / TL-WN722N-V2

Drivers for TP-LINK TL-WN722N version 2 .Clean ported for kernel 4.4, 4.8, 4.10 ,4.13 ,4.14 & 4.15 from source which was at 4.3
https://abhijeet2096.github.io/TL-WN722N-V2/
MIT License
125 stars 40 forks source link

Unable to turn on Monitor Mode #13

Open MTHD486 opened 6 years ago

MTHD486 commented 6 years ago

Hi,

My kernel: 4.14.0-kali3-amd64. OK to connect to wi-fi, but failed to turn on Monitory mode.

After inputting iwconfig wlan0 mode Monitor, I got SET failed on device wlan0 ; Invalid argument.

Thank you!

MTHD486 commented 6 years ago

Before are the result of ifconfig and iwconfig.

ifconfig

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    inet 192.168.0.117  netmask 255.255.255.0  broadcast 192.168.0.255
    inet6 fe80::b809:60e0:a6c4:92f8  prefixlen 64  scopeid 0x20<link>
    ether c0:25:e9:1c:83:b9  txqueuelen 1000  (Ethernet)
    RX packets, 117  bytes 17299 (16.8 KiB)
    RX errors 0  dropped 16  overruns 0  frame 0
    TX packets 16  bytes 1896 (1.8 KiB)
    TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

iwconfig

      wlan0     IEEE 802.11bgn  ESSID:"Tenda_A17AA0"  Nickname:"<WIFI@REALTEK>"
      Mode:Managed  Frequency:2.427 GHz  Access Point: C8:3A:35:A1:7A:A1   
      Bit Rate:150 Mb/s   Sensitivity:0/0  
      Retry:off   RTS thr:off   Fragment thr:off
      Encryption key:****-****-****-****-****-****-****-****   Security mode:open
      Power Management:off
      Link Quality=100/100  Signal level=100/100  Noise level=0/100
      Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
      Tx excessive retries:0  Invalid misc:0   Missed beacon:0
abhijeet2096 commented 6 years ago

Any other driver implementation in your system will interfere with current drivers , please3 ensure you don't have any other driver not installed !

MTHD486 commented 6 years ago

whenever I rmmod r8188eu (for some trials I tried to remove 8188eu as well) and then check in iwconfig, the wlan0 disappear. As such, that's meaningless for ifconfig wlan0 down and its subsequent steps...

Even if I re-make your driver, wlan0 is still disappeared. If I reboot the system, it would become the original problematic situation which I listed above...

Any ideas? Thanks.

p.s. I used the 'NOT AS DKMS MODULE' approach. So the 8188eu is from the previous fixes.

MTHD486 commented 6 years ago

I just uninstalled the previous package, and so now when I reboot, the 8188eu didn't show up, and only the r8188eu showed up.

wlan0 is still here (unless I rmmod r8188eu which will make r8188eu disappear).

But the error is still the same. When I iwconfig wlan0 mode monitor, there is SET failed on device wlan0 ; Invalid argument.

MTHD486 commented 6 years ago

I just tried the "AS DKMS MODULE" approach to install again (previously I used "NOT AS DKMS MODULE" approach). The error message is still the same.

vamilson commented 6 years ago

Thanks for the update Abhijeet, but I still have problems with the installation of the drive... I am using Kali 2018.1. $uname -r 4.14.0-kali3-amd64

The commands executed are down below: $ sudo apt-get update ...

$ sudo apt-get upgrade ...

$ sudo apt-get install linux-headers-$(uname -r) Reading package lists... Done Building dependency tree Reading state information... Done The following packages were automatically installed and are no longer required: gconf-service gconf2-common libgconf-2-4 libgcr-3-common libjs-excanvas vino Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: linux-headers-4.14.0-kali3-common The following NEW packages will be installed: linux-headers-4.14.0-kali3-amd64 linux-headers-4.14.0-kali3-common 0 upgraded, 2 newly installed, 0 to remove and 57 not upgraded. Need to get 8.320 kB of archives. After this operation, 51,9 MB of additional disk space will be used. Do you want to continue? [Y/n] Y Get:1 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-headers-4.14.0-kali3-common all 4.14.17-1kali1 [7.855 kB] Get:2 http://kali.mirror.globo.tech/kali kali-rolling/main amd64 linux-headers-4.14.0-kali3-amd64 amd64 4.14.17-1kali1 [466 kB] Fetched 8.320 kB in 9s (883 kB/s) Selecting previously unselected package linux-headers-4.14.0-kali3-common. (Reading database ... 337407 files and directories currently installed.) Preparing to unpack .../linux-headers-4.14.0-kali3-common_4.14.17-1kali1_all.deb ... Unpacking linux-headers-4.14.0-kali3-common (4.14.17-1kali1) ... Selecting previously unselected package linux-headers-4.14.0-kali3-amd64. Preparing to unpack .../linux-headers-4.14.0-kali3-amd64_4.14.17-1kali1_amd64.deb ... Unpacking linux-headers-4.14.0-kali3-amd64 (4.14.17-1kali1) ... Setting up linux-headers-4.14.0-kali3-common (4.14.17-1kali1) ... Setting up linux-headers-4.14.0-kali3-amd64 (4.14.17-1kali1) ...

$ sudo apt-get install git dkms git make build-essential Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version (12.4). dkms is already the newest version (2.3-3). git is already the newest version (1:2.16.2-1). make is already the newest version (4.1-9.1). The following packages were automatically installed and are no longer required: gconf-service gconf2-common libgconf-2-4 libgcr-3-common libjs-excanvas vino Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.

$ cd /usr/src/ After Download... $ ls linux-headers-4.14.0-kali3-amd64 linux-kbuild-4.14 volatility-tools linux-headers-4.14.0-kali3-common TL-WN722N-V2

$ sudo dkms add ./TL-WN722N-V2 Creating symlink /var/lib/dkms/8188eu/1.2/source -> /usr/src/8188eu-1.2 DKMS: add completed.

$ sudo dkms build -m 8188eu -v 1.2 Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... 'make' all.......................... cleaning build area..... DKMS: build completed.

$ sudo dkms install -m 8188eu -v 1.2 8188eu: Running module version sanity check.

Original module
    No original module exists within this kernel
Installation
    Installing to /lib/modules/4.14.0-kali3-amd64/kernel/drivers/net/wireless//
    depmod...
    Backing up initrd.img-4.14.0-kali3-amd64 to /boot/initrd.img-4.14.0-kali3-amd64.old-dkms
    Making new initrd.img-4.14.0-kali3-amd64
    (If next boot fails, revert to initrd.img-4.14.0-kali3-amd64.old-dkms image)
    update-initramfs...
    DKMS: install completed.

The Problem: :'(

$ sudo modprobe 8188eu modprobe: ERROR: could not insert '8188eu': Unknown symbol in module, or unknown parameter (see dmesg)

$ sudo dmesg | grep 8188 [ 6544.352433] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. [ 6544.354729] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 6544.387920] usbcore: registered new interface driver r8188eu [ 6544.467063] 8188eu: loading out-of-tree module taints kernel. [ 6544.467774] 8188eu: Unknown symbol x86_indirect_thunk_rbp (err 0) [ 6544.467886] 8188eu: Unknown symbol __x86_indirect_thunk_rax (err 0) [ 6544.467956] 8188eu: Unknown symbol x86_indirect_thunk_rdx (err 0) [ 6544.468050] 8188eu: Unknown symbol x86_indirect_thunk_r13 (err 0) [ 6544.468167] 8188eu: Unknown symbol __x86_indirect_thunk_rcx (err 0) [ 6544.468197] 8188eu: Unknown symbol x86_indirect_thunk_rsi (err 0) [ 6544.468223] 8188eu: Unknown symbol __x86_indirect_thunk_r12 (err 0) [ 6544.468245] 8188eu: Unknown symbol __x86_indirect_thunk_r8 (err 0) [ 6544.524424] r8188eu 2-1.1:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 6548.280828] R8188EU: assoc success

Testing monitor mode:

$ sudo iwconfig wlan0 mode monitor Error for wireless request "Set Mode" (8B06) : SET failed on device wlan0 ; Invalid argument.

I don't know what to do anymore. I need your help, please!

agusnat16 commented 6 years ago

I have the same problem with the latest release of Kali, I hope someone can fix this :)

rtm516 commented 6 years ago

Same issue with RASPBIAN STRETCH LITE Version:April 2018 Release date:2018-04-18 Kernel version:4.14

kadolis commented 6 years ago

I had this working perectly for all of 1 hour last night! than all of a sudden i cant turn on monitor mode anymore! 17.492421] r8188eu: module is from the staging directory, the quality is unknown, you have been warned. [ 17.496731] Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0) [ 17.519225] usbcore: registered new interface driver r8188eu [ 17.527296] rtl8188ee: rtl8188ee: FW Power Save off (module option) [ 17.527327] rtl8188ee: Using firmware rtlwifi/rtl8188efw.bin [ 17.591109] rtl8188ee 0000:02:00.0: firmware: direct-loading firmware rtlwifi/rtl8188efw.bin [ 17.810233] 8188eu: loading out-of-tree module taints kernel. [ 17.811611] 8188eu: Unknown symbol x86_indirect_thunk_rbp (err 0) [ 17.811733] 8188eu: Unknown symbol __x86_indirect_thunk_rax (err 0) [ 17.811822] 8188eu: Unknown symbol x86_indirect_thunk_rdx (err 0) [ 17.811938] 8188eu: Unknown symbol x86_indirect_thunk_r13 (err 0) [ 17.812073] 8188eu: Unknown symbol __x86_indirect_thunk_rcx (err 0) [ 17.812108] 8188eu: Unknown symbol x86_indirect_thunk_rsi (err 0) [ 17.812136] 8188eu: Unknown symbol __x86_indirect_thunk_r12 (err 0) [ 17.812168] 8188eu: Unknown symbol __x86_indirect_thunk_r8 (err 0) [ 30.205831] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 34.505044] R8188EU: assoc success [ 105.254011] R8188EU: indicate disassoc [ 105.406565] R8188EU: indicate disassoc [ 122.146485] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 125.882583] R8188EU: assoc success [ 130.671578] R8188EU: indicate disassoc [ 157.010065] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 180.861225] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 190.011547] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 233.011098] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 286.008535] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 349.015162] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin [ 412.013928] r8188eu 1-2:1.0: firmware: direct-loading firmware rtlwifi/rtl8188eufw.bin I have uninstalled and reinstalled this morning and nothing! it was working perfectly i closed my laptop and went to do a few things came back and nothing! any help is appreciated

ConnorCorrigan commented 6 years ago

I have the same problem, this is the only driver for the device i have installed

kadolis commented 6 years ago

yeah this card has been deemed incompatible! I went ahead and bought an Alfa after 10 days of headaches!

Farhad801099 commented 6 years ago

I am use kali 2018.2 and my kernel is 4.16.0-kali2-amd64

It has same problem. Monitor mode not enable... I am trying last 6days...

Please help.