Giter Club home page Giter Club logo

abhijeet2096 / tl-wn722n-v2 Goto Github PK

View Code? Open in Web Editor NEW
126.0 25.0 41.0 1.6 MB

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

Home Page: https://abhijeet2096.github.io/TL-WN722N-V2/

License: MIT License

Makefile 1.70% Shell 0.01% C 92.90% Objective-C 0.24% C++ 5.16%
tl-wn722n driver wireless linux ubuntu monitor monitormode ported tplink v2 realtek rtl8188eu 8188

tl-wn722n-v2's Introduction

TL-WN722N-V2 Drivers clean ported to Kernel 4.4,4.8, 4.10, 4.13, 4.14, 4.15 & 4.18(GNU/LINUX)

TL-WN722N-V2

TL-WN722N-V2

Requirements

Install appropriate "linux-headers" for your linux distribution before make !

For Example for ubuntu [Very Important]

	 $ sudo apt-get install linux-headers

Installation Instruction

AS DKMS MODULE
  1. Install dependencies and Change directory to /usr/src
     $ sudo apt-get install git dkms git make build-essential
     $ cd /usr/src
    
  2. Clone the repository
     $ sudo git clone https://github.com/abhijeet2096/TL-WN722N-V2
    
  3. Add a Symbolic link for dkms to know where source is
     $ sudo dkms add ./TL-WN722N-V2
    
  4. Build the source
     $ sudo dkms build -m 8188eu -v 1.2
    
  5. Install the Build drivers
     $ sudo dkms install -m 8188eu -v 1.2
    
  6. Modprobe it .
     $ sudo modprobe 8188eu
    
  7. Reboot system .
     $ sudo reboot
    
NOT AS DKMS MODULE
  1. Spawn terminal and clone the above repo by
     $ git clone https://github.com/abhijeet2096/TL-WN722N-V2
    
  2. Change the working directory with
     $ cd TL-WN722N-V2
    
  3. Clean using $ sudo make clean .
  4. Compile using $ sudo make all .
  5. Install above driver as
     $ sudo make install
    
  6. Reboot your system !

P.S for uninstalling above driver $ sudo make uninstall

Activating Monitor Mode

  1. Plugin the device .
  2. Spwan terminal $ iwconfig and notice the device name.
  3. $ sudo ifconfig <device-name> down
  4. $ sudo iwconfig <device-name> mode Monitor
  5. $ sudo ifconfig <device-name> up
  6. $ iwconfig output mode should be now "Auto"
  7. Go root $ sudo -i
  8. airmon-ng start <device-name>
  9. `airodump-ng ' 10 Monitor mode should start

Activating/Deactivating LED

  1. Clone this Repository.
  2. Edit include/autoconf.h in your favourite editor
  3. go to line 173 and comment/uncomment #define CONFIG_LED
  4. Make again the drivers
  5. Reboot system

Results

Results are displayed below in table.

Drivers Signal Strength
lwfinger/rtl8188eu 0-10 %
mfruba/kernel 65-75 %
abhijeet2096/TL-WN722N-V2 85-95 %

NOTE: All results are tested from same distance from wifi router !

Donate

Donate

Bugs

I was not able to inject packets. If you want to help please ping me on Email.

About

The Drivers are for TP-LINK TL-WN722N Version 2 . The drivers are ported to kernel 4.4, 4.8 ,4.10, 4.13,4.14 & 4.15 from source from TP-LINK-WEBSITE which was intially made for kernel 4.3 .

Contributors

Abhijeet sharma

  1. Github: http://github.com/abhijeet2096
  2. Email: [email protected]
  3. Mobile: +91-8629015433

[Akhil Singhal]

  1. Github: http://github.com/akhilsinghal1234
  2. Email: [email protected]
  3. Mobile: +91-8629015410

References/Source/Credits

  1. https://github.com/mfruba/kernel
  2. http://www.tp-link.com/us/download/TL-WN722N.html
  3. https://github.com/mfruba/kernel/pull/21/files
  4. diederikdehaas/rtl8812AU#75
  5. https://www.raspberrypi.org/forums/viewtopic.php?p=342670
  6. http://xmodulo.com/build-kernel-module-dkms-linux.html
  7. https://github.com/abperiasamy/rtl8812AU_8821AU_linux/pull/242/commits/af2ee890d7abefb559a0a2aee4b4e0da686ab9a8
  8. https://github.com/jpts/rtl8188eu/blob/master/patches/b.patch
  9. https://github.com/NextThingCo/RTL8723DS/pull/2/files

tl-wn722n-v2's People

Contributors

abhijeet2096 avatar akhilsinghal1234 avatar buffermet avatar darkdrgn2k 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

tl-wn722n-v2's Issues

Not working in kali nethunter

I used all the commands properly but all the time problem arises.
root@kali:/# uname -a
Linux kali 4.4.153-perf+ #1 SMP PREEMPT Thu Sep 17 11:40:21 WIB 2020 aarch64 GNU/Linux

I used the dkms module. But when i tried to install drivers using
$ sudo dkms install -m 8188eu -v 1.2
It shows me this
$ sudo dkms install -m 8188eu -v 1.2
Error! echo
Your kernel headers for kernel 4.4.153-perf+ cannot be found at
/lib/modules/4.4.153-perf+/build or /lib/modules/4.4.153-perf+/source.
You can use the --kernelsourcedir option to tell DKMS where it's located.

What to do pls help

Kernel 4.19

........sudo dkms build -m 8188eu -v 1.2

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-parrot1-13t-amd64 (x86_64)
Consult /var/lib/dkms/8188eu/1.2/build/make.log for more information.

When it will be ready?

hellooooo - i need help with this please

CC [M] /tmp/tl-wn722/core/rtw_cmd.o
In file included from /tmp/tl-wn722/include/osdep_service.h:41:0,
from /tmp/tl-wn722/include/drv_types.h:32,
from /tmp/tl-wn722/core/rtw_cmd.c:22:
/tmp/tl-wn722/include/osdep_service_linux.h: In function ‘_init_timer’:
/tmp/tl-wn722/include/osdep_service_linux.h:265:8: error: ‘_timer {aka struct timer_list}’ has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^
/tmp/tl-wn722/include/osdep_service_linux.h:266:2: error: implicit declaration of function ‘init_timer’ [-Werror=implicit-function-declaration]
init_timer(ptimer);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/tmp/tl-wn722/core/rtw_cmd.o' failed
make[2]: *** [/tmp/tl-wn722/core/rtw_cmd.o] Error 1
Makefile:1552: recipe for target 'module/tmp/tl-wn722' failed
make[1]: *** [module/tmp/tl-wn722] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-22-generic'
Makefile:1369: recipe for target 'modules' failed
make: *** [modules] Error 2

TL-WN722N-V2 doesnt support Monitor Mode and Packet Injection?!?!?!?!!!

You know that TL-WN722N-V2 does not support monitor mode and packet inject? It doesn't. See this
And this for info why

In simple words, v2 has RealTek Chipset which does NOT support Monitor Mode and Packet Injection but v1 has Atheros Chipset which does support Monitor Mode and Packet Injection, I know its ****ing sad that they are randomly shipping v1 and v2, it's no better than any normal adaptor for connecting to the internet. Sorry, the best you could do is ask for a return or save it for later.

Thanks,
Dex Devlon

Airodump-ng does not receive any frames

Dear abhijeet2096,

I successfully managed to compile and install the kernel module on my Kali Linux with kernel 4.14 running on KVM. The monitor mode is also working when I execute your described commands. Great job. I just had to disable the already install driver "r8188eu" to make it work.

But when starting "airmon-ng" I get an error message about that the channel could not be switched:

Error setting channel: command failed: Operation not supported (-95)

Here is the log:
[ 6.900257] RTL871X: module init start
[ 6.900260] RTL871X: rtl8188eu v4.3.0.8_13968.20150417
[ 6.900262] RTL871X: build time: DATE TIME
[ 6.900310] RTL871X:
[ 6.900311] RTL871X: bLength=7
[ 6.900312] RTL871X: bDescriptorType=5
[ 6.900313] RTL871X: bEndpointAddress=81
[ 6.900314] RTL871X: wMaxPacketSize=64
[ 6.900315] RTL871X: bInterval=0
[ 6.900316] RTL871X: RT_usb_endpoint_is_bulk_in = 1
[ 6.900317] RTL871X:
[ 6.900335] RTL871X: bLength=7
[ 6.900336] RTL871X: bDescriptorType=5
[ 6.900336] RTL871X: bEndpointAddress=2
[ 6.900337] RTL871X: wMaxPacketSize=64
[ 6.900338] RTL871X: bInterval=0
[ 6.900339] RTL871X: RT_usb_endpoint_is_bulk_out = 2
[ 6.900340] RTL871X:
[ 6.900341] RTL871X: bLength=7
[ 6.900341] RTL871X: bDescriptorType=5
[ 6.900342] RTL871X: bEndpointAddress=3
[ 6.900343] RTL871X: wMaxPacketSize=64
[ 6.900344] RTL871X: bInterval=0
[ 6.900344] RTL871X: RT_usb_endpoint_is_bulk_out = 3
[ 6.900346] RTL871X: nr_endpoint=3, in_num=1, out_num=2
[ 6.900347] RTL871X: USB_SPEED_FULL
[ 6.900378] RTL871X: CHIP TYPE: RTL8188E
[ 6.900391] RTL871X: register rtw_netdev_ops to netdev_ops
[ 6.900395] RTL871X: rtw_wdev_alloc(padapter=ffffad6040421000)
[ 6.903590] RTL871X: Chip Version Info: CHIP_8188E_Normal_Chip_TSMC_D_CUT_1T1R_RomVer(0)
[ 6.903593] RTL871X: RF_Type is 3!!
[ 6.903598] RTL871X: _ConfigNormalChipOutEP_8188E OutEpQueueSel(0x05), OutEpNumber(2)
[ 6.905743] RTL871X: EEPROM type is E-FUSE
[ 6.905746] RTL871X: ====> _ReadAdapterInfo8188EU
[ 6.907960] RTL871X: Boot from EFUSE, Autoload OK !
[ 6.988067] RTL871X: SetHwReg8188EU: bMacPwrCtrlOn=1
[ 7.007714] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[ 7.034802] RTL871X: efuse_read_phymap_from_txpktbuf bcnhead:0
[ 7.090468] RTL871X: efuse_read_phymap_from_txpktbuf len:125, lenbak:125, aaa:125, aaabak:125
[ 7.494263] RTL871X: efuse_read_phymap_from_txpktbuf read count:123
[ 7.500861] RTL871X: EEPROM ID=0x8129
[ 7.500866] RTL871X: VID = 0x2357, PID = 0x010C
[ 7.500867] RTL871X: Customer ID: 0x00, SubCustomer ID: 0xCD
[ 7.500871] RTL871X: Hal_ReadPowerSavingMode88E...bHWPwrPindetect(0)-bHWPowerdown(0) ,bSupportRemoteWakeup(1)
[ 7.500872] RTL871X: ### PS params=> power_mgnt(1),usbss_enable(0) ###
[ 7.500875] RTL871X: ======= Path 0, Channel 1 =======
[ 7.500876] RTL871X: Index24G_CCK_Base[0][1] = 0x2e
[ 7.500878] RTL871X: Index24G_BW40_Base[0][1] = 0x32
[ 7.500879] RTL871X: ======= Path 0, Channel 2 =======
[ 7.500880] RTL871X: Index24G_CCK_Base[0][2] = 0x2e
[ 7.500881] RTL871X: Index24G_BW40_Base[0][2] = 0x32
[ 7.500882] RTL871X: ======= Path 0, Channel 3 =======
[ 7.500883] RTL871X: Index24G_CCK_Base[0][3] = 0x2e
[ 7.500885] RTL871X: Index24G_BW40_Base[0][3] = 0x32
[ 7.500886] RTL871X: ======= Path 0, Channel 4 =======
[ 7.500887] RTL871X: Index24G_CCK_Base[0][4] = 0x2e
[ 7.500888] RTL871X: Index24G_BW40_Base[0][4] = 0x32
[ 7.500889] RTL871X: ======= Path 0, Channel 5 =======
[ 7.500890] RTL871X: Index24G_CCK_Base[0][5] = 0x2e
[ 7.500891] RTL871X: Index24G_BW40_Base[0][5] = 0x32
[ 7.500909] RTL871X: ======= Path 0, Channel 6 =======
[ 7.500911] RTL871X: Index24G_CCK_Base[0][6] = 0x2d
[ 7.500912] RTL871X: Index24G_BW40_Base[0][6] = 0x31
[ 7.500913] RTL871X: ======= Path 0, Channel 7 =======
[ 7.500914] RTL871X: Index24G_CCK_Base[0][7] = 0x2d
[ 7.500915] RTL871X: Index24G_BW40_Base[0][7] = 0x31
[ 7.500916] RTL871X: ======= Path 0, Channel 8 =======
[ 7.500917] RTL871X: Index24G_CCK_Base[0][8] = 0x2d
[ 7.500919] RTL871X: Index24G_BW40_Base[0][8] = 0x31
[ 7.500920] RTL871X: ======= Path 0, Channel 9 =======
[ 7.500921] RTL871X: Index24G_CCK_Base[0][9] = 0x2c
[ 7.500922] RTL871X: Index24G_BW40_Base[0][9] = 0x30
[ 7.500924] RTL871X: ======= Path 0, Channel 10 =======
[ 7.500925] RTL871X: Index24G_CCK_Base[0][10] = 0x2c
[ 7.500926] RTL871X: Index24G_BW40_Base[0][10] = 0x30
[ 7.500927] RTL871X: ======= Path 0, Channel 11 =======
[ 7.500929] RTL871X: Index24G_CCK_Base[0][11] = 0x2c
[ 7.500930] RTL871X: Index24G_BW40_Base[0][11] = 0x30
[ 7.500931] RTL871X: ======= Path 0, Channel 12 =======
[ 7.500932] RTL871X: Index24G_CCK_Base[0][12] = 0x2c
[ 7.500933] RTL871X: Index24G_BW40_Base[0][12] = 0x30
[ 7.500934] RTL871X: ======= Path 0, Channel 13 =======
[ 7.500935] RTL871X: Index24G_CCK_Base[0][13] = 0x2c
[ 7.500937] RTL871X: Index24G_BW40_Base[0][13] = 0x30
[ 7.500938] RTL871X: ======= Path 0, Channel 14 =======
[ 7.500939] RTL871X: Index24G_CCK_Base[0][14] = 0x2c
[ 7.500940] RTL871X: Index24G_BW40_Base[0][14] = 0x30
[ 7.500941] RTL871X: ======= TxCount 0 =======
[ 7.500943] RTL871X: CCK_24G_Diff[0][0]= 0
[ 7.500944] RTL871X: OFDM_24G_Diff[0][0]= 1
[ 7.500945] RTL871X: BW20_24G_Diff[0][0]= 0
[ 7.500946] RTL871X: BW40_24G_Diff[0][0]= 0
[ 7.500947] RTL871X: EEPROMRegulatory = 0x0
[ 7.500949] RTL871X: mlmepriv.ChannelPlan = 0x21
[ 7.500951] RTL871X: CrystalCap: 0x20
[ 7.500951] RTL871X: EEPROM Customer ID: 0x 0
[ 7.500953] RTL871X: EEPROM : AntDivCfg = 0, TRxAntDivType = 3
[ 7.500954] RTL871X: Board Type: 0x 0
[ 7.500954] RTL871X: ThermalMeter = 0x1b
[ 7.500957] RTL871X: <==== _ReadAdapterInfo8188EU in 596 ms
[ 7.501048] RTL871X: init_channel_set ChannelPlan ID 21 Chan num:13
[ 7.501417] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~~~~
[ 7.501419] RTL871X: pwrctrlpriv.bSupportRemoteWakeup~~~[1]~~~
[ 7.501422] RTL871X: can't get autopm:
[ 7.501425] RTL871X: rtw_macaddr_cfg MAC Address = c0:25:e9:14:53:d0
[ 7.501427] RTL871X: bDriverStopped:1, bSurpriseRemoved:0, bup:0, hw_init_completed:0
[ 7.501439] RTL871X: rtw_ndev_init(wlan0)
[ 7.501810] RTL871X: cfg80211_rtw_get_txpower
[ 7.501828] RTL871X: _rtw_drv_register_netdev, MAC Address (if1) = c0:25:e9:14:53:d0
[ 7.501876] RTL871X: module init ret=0
[ 8.915044] RTL871X: cfg80211_rtw_get_txpower
[ 8.922328] RTL871X: +871x_drv - drv_open, bup=0
[ 8.922333] RTL871X: Set RF Chip ID to RF_6052 and RF type to 1T1R.
[ 8.934913] RTL871X: rtl8188e_FirmwareDownload fw:NIC, size: 13904
[ 8.934920] RTL871X: rtl8188e_FirmwareDownload: fw_ver=b fw_subver=0001 sig=0x88e1, Month=11, Date=27, Hour=30, Minute=36
[ 9.282184] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 4ms), REG_MCUFWDL:0x00030005
[ 9.309213] RTL871X: =====> _8051Reset88E(): 8051 reset success .
[ 9.313645] RTL871X: _FWFreeToGo: Polling FW ready OK! (2, 24ms), REG_MCUFWDL:0x000300c6
[ 9.313648] RTL871X: FWDL success. write_fw:1, 368ms
[ 12.946229] RTL871X: pDM_Odm TxPowerTrackControl = 1
[ 13.802378] RTL871X: rtl8188eu_hal_init in 4880ms
[ 13.813583] RTL871X: hw_var_set_opmode()-4042 mode = 2
[ 13.932419] RTL871X: MAC Address = c0:25:e9:14:53:d0
[ 13.932716] RTL871X: rtw_cfg80211_init_wiphy:rf_type=3
[ 13.932727] RTL871X: -871x_drv - drv_open, bup=1
[ 13.932790] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 13.933121] RTL871X: cfg80211_rtw_get_txpower
[ 13.933232] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 14.029747] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 14.029798] RTL871X: rtl8188e_set_FwJoinBssReport_cmd mstatus(0)
[ 14.036455] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 14.043939] RTL871X: -871x_drv - drv_close, bup=1
[ 14.146301] RTL871X: +871x_drv - drv_open, bup=1
[ 14.146310] RTL871X: -871x_drv - drv_open, bup=1
[ 14.146351] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 14.223298] RTL871X: cfg80211_rtw_get_txpower
[ 14.223318] RTL871X: cfg80211_rtw_get_txpower
[ 14.223439] RTL871X: cfg80211_rtw_get_txpower
[ 14.223452] RTL871X: cfg80211_rtw_get_txpower
[ 14.223868] RTL871X: cfg80211_rtw_get_txpower
[ 14.225270] RTL871X: cfg80211_rtw_flush_pmksa(wlan0)
[ 14.297343] RTL871X: cfg80211_rtw_scan(wlan0)
[ 14.355231] RTL871X: ###=> usb_read_port_complete => urb status(-75)
[ 14.401722] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.401914] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:1
[ 14.421102] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.421290] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:2
[ 14.440649] RTL871X: ###=> usb_read_port_complete => urb status(-84)
[ 14.440666] RTL871X: [dvobj:ffff8aa53dbee800][ERROR] continual_io_error:5 > 4
[ 14.440842] RTL871X: reg 0xe10, usb read 4 fail, status:-71 value=0x0, vendorreq_times:3
[ 14.440845] RTL871X: [dvobj:ffff8aa53dbee800][ERROR] continual_io_error:6 > 4
[ 14.440879] RTL871X: rtw_cmd_thread: DriverStopped(0) SurpriseRemoved(1) break at line 506
[ 14.454641] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.464708] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.486777] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.496843] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.506648] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.517158] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 14.527185] RTL871X: usb_read_port_complete() RX Warning! bDriverStopped(0) OR bSurpriseRemoved(1)
[ 22.496128] RTL871X: rtw_scan_timeout_handler(wlan0) fw_state=808
[ 22.496152] RTL871X: rtw_indicate_scan_done(wlan0)
[ 38.579382] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 38.579387] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 46.006267] RTL871X: cfg80211_rtw_scan(wlan0)
[ 46.006276] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.684987] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 63.684992] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.685011] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 63.685038] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 63.685044] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 63.685046] RTL871X: -871x_drv - drv_close, bup=1
[ 64.692516] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 64.692520] RTL871X: set_mode = IW_MODE_MONITOR
[ 65.698521] RTL871X: +871x_drv - drv_open, bup=1
[ 65.698538] RTL871X: -871x_drv - drv_open, bup=1
[ 65.700506] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1
[ 65.708807] RTL871X: cfg80211_rtw_scan(wlan0)
[ 65.708817] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 66.741345] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 66.741350] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 67.638491] RTL871X: (2)871x_drv - drv_close, bup=1, hw_init_completed=1
[ 67.638497] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 67.638515] RTL871X: rtw_cfg80211_indicate_disconnect(wlan0)
[ 67.638538] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 67.638543] RTL871X: HW_VAR_BASIC_RATE: 0x15f -> 0x15f -> 0x15f
[ 67.638545] RTL871X: -871x_drv - drv_close, bup=1
[ 70.361174] RTL871X: rtw_wx_get_rts, rts_thresh=2347
[ 70.361179] RTL871X: rtw_wx_get_frag, frag_len=2346
[ 70.615486] RTL871X: +871x_drv - drv_open, bup=1
[ 70.615503] RTL871X: -871x_drv - drv_open, bup=1
[ 70.615560] RTL871X: cfg80211_rtw_set_power_mgmt(wlan0) enabled:1, timeout:-1

When I then start airodump-ng, nothing is received. But the log is spammed with the following messages:
[ 466.883556] device wlan0 entered promiscuous mode
[ 466.970839] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 466.970844] RTL871X: set_mode = IW_MODE_MONITOR
[ 467.623251] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 467.623256] RTL871X: set_mode = IW_MODE_MONITOR
[ 468.124174] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 468.124180] RTL871X: set_mode = IW_MODE_MONITOR
[ 468.628232] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 468.628237] RTL871X: set_mode = IW_MODE_MONITOR
[ 469.130639] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 469.130644] RTL871X: set_mode = IW_MODE_MONITOR
[ 469.637510] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 469.637516] RTL871X: set_mode = IW_MODE_MONITOR
[ 470.137076] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 470.137082] RTL871X: set_mode = IW_MODE_MONITOR
[ 470.640417] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 470.640422] RTL871X: set_mode = IW_MODE_MONITOR
[ 471.147399] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 471.147404] RTL871X: set_mode = IW_MODE_MONITOR
[ 471.654304] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 471.654309] RTL871X: set_mode = IW_MODE_MONITOR
[ 472.156125] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 472.156130] RTL871X: set_mode = IW_MODE_MONITOR
[ 472.652697] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 472.652702] RTL871X: set_mode = IW_MODE_MONITOR
[ 473.155289] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 473.155294] RTL871X: set_mode = IW_MODE_MONITOR
[ 473.662487] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 473.662495] RTL871X: set_mode = IW_MODE_MONITOR
[ 474.161720] RTL871X: LeaveAllPowerSaveMode(wlan0): bSurpriseRemoved=1 Skip!
[ 474.161725] RTL871X: set_mode = IW_MODE_MONITOR

Do you have any idea or suggestion?

Thank you in advance!

Screen freezes after installation

After i install the driver using the given instructions and plug-in the device, the screen freezes and doesn't return to normal. The same happens after reboot.

could not insert '8188eu': Unknown symbol in module

Hi!
I'm using kali 2018.1 with kernel version 4.14.0-kali3-amd64, I installed the correct header files and every requirement mentioned in the readme file. But at the last step when I tried to execute the command, it gave the following error:
#sudo modprobe 8188eu
modprobe: ERROR: could not insert '8188eu': Unknown symbol in module, or unknown parameter

I'm installing this as "dkms module"

Please help me solving this error, any help would be appreciated :)

Not working on kernel 4.14

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

Can not compile in kali linux

""
"NO SKRC,we will use default KSRC"
"
"
make ARCH=armv7l CROSS_COMPILE= -C /lib/modules/4.14.69-Re4son-v7+/build M=/root/Downloads/TL-WN722N-V2 modules
make[1]: Entering directory '/usr/src/linux-headers-4.14.69-Re4son-v7+'
Makefile:638: arch/armv7l/Makefile: No such file or directory
make[1]: *** No rule to make target 'arch/armv7l/Makefile'. Stop.
make[1]: Leaving directory '/usr/src/linux-headers-4.14.69-Re4son-v7+'
make: *** [Makefile:1365: modules] Error 2

Unable to compile on raspberry pi

Hello , I am trying to make my wifi adapter work with the raspberry pi 3 . But I get the following error -

"******************************************" "NO SKRC,we will use default KSRC" "******************************************" install -p -m 644 8188eu.ko /lib/modules/4.9.35-v7+/kernel/drivers/net/wireless/ install: cannot stat ‘8188eu.ko’: No such file or directory Makefile:1373: recipe for target 'install' failed make: *** [install] Error 1
my kernel version is 4.9.35-v7+

I am a noob when it comes to linux . so, any help will be appreciated.
Thanks in advance.

Cant Debug Please Help

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all...........................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-kali1-amd64 (x86_64)
Consult /var/lib/dkms/8188eu/1.2/build/make.log for more information.

/usr/src/linux-headers-4.19.0-kali1-common/include/linux/ieee80211.h:1442: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/var/lib/dkms/8188eu/1.2/build/os_dep/linux/os_intfs.c:751:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_de$
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/var/lib/dkms/8188eu/1.2/build/os_dep/linux/os_intfs.c:751:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-kali1-common/scripts/Makefile.build:309: /var/lib/dkms/8188eu/1.2/build/os_dep/linux/os_intfs.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-kali1-common/Makefile:1532: module/var/lib/dkms/8188eu/1.2/build] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kali1-amd64'
make: *** [Makefile:1365: modules] Error 2

Can't compile in kali amd64

I tried the dkms compile and the other one, both ones produce the same error.
Here is output of sudo make all: `

CC [M] /home/TL-WN722N-V2/os_dep/linux/os_intfs.o
In file included from /home/TL-WN722N-V2/include/drv_types.h:35,
from /home/TL-WN722N-V2/os_dep/linux/os_intfs.c:22:
/home/TL-WN722N-V2/include/wifi.h:988: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /usr/src/linux-headers-4.19.0-kali1-common/include/net/cfg80211.h:24,
from /home/TL-WN722N-V2/include/osdep_service_linux.h:83,
from /home/TL-WN722N-V2/include/osdep_service.h:41,
from /home/TL-WN722N-V2/include/drv_types.h:32,
from /home/TL-WN722N-V2/os_dep/linux/os_intfs.c:22:
/usr/src/linux-headers-4.19.0-kali1-common/include/linux/ieee80211.h:1442: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

/home/TL-WN722N-V2/os_dep/linux/os_intfs.c:751:22: error: initialization of ‘u16 (*)(struct net_device *, struct sk_buff *, struct net_device , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device ))’} from incompatible pointer type ‘u16 ()(struct net_device *, struct sk_buff *, void , u16 ()(struct net_device *, struct sk_buff *, struct net_device ))’ {aka ‘short unsigned int ()(struct net_device *, struct sk_buff *, void , short unsigned int ()(struct net_device *, struct sk_buff *, struct net_device *))’} [-Werror=incompatible-pointer-types]
.ndo_select_queue = rtw_select_queue,
^~~~~~~~~~~~~~~~
/home/TL-WN722N-V2/os_dep/linux/os_intfs.c:751:22: note: (near initialization for ‘rtw_netdev_ops.ndo_select_queue’)
cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-kali1-common/scripts/Makefile.build:309: /home/TL-WN722N-V2/os_dep/linux/os_intfs.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-kali1-common/Makefile:1532: module/home/TL-WN722N-V2] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-kali1-amd64'
make: *** [Makefile:1365: modules] Error 2
`

I've an issue with 4.18

Hey!
I've tried to install this in my kali linux 4.18 kernel, but im stuck at the "dkms",
I can't install "dkms", it can't find the package when I do a apt-get install dkms.
Should I modify my source.list ?
Thx :)

Almost there

Hi,

Thanks, for this description.
My Setup: MacOS with VirtualBox 5.2, running Kali Linux, kernel 4.15.0-kali3-686-pae

I am running into an issue, when my TL-WN722N-V2 is inserted using the VBox USB Settings, the TL-WN722N-V2 seems visible as wlan0, when running "iwconfig", but running the command a second time it is gone and the TL-WN722N-V2's led get's turned off, and it need to be physically unplugged and re-inserted in order to see it again.

Any ideas on this?

Best regards, Rasmus

Help Me !!!

Hi there,
root@kali:~/Desktop# iwconfig
lo no wireless extensions.

wlan0 unassociated ESSID:"" 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.

Once i turn on the monitor mode it shows the same issue.

root@kali:~/Desktop# iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.

please, someone, provide some solution to that.
Thank You -- GS

Internet connection hangs

While using this driver my internet connection would stop to work. The wi-fi was connected showing full signal but the download and upload were 0 kbp/s.

I have resolved the issue by switchting to mfruba/kernel drivers. His drivers show weaker signal strength, as it is mentioned in your readme.md, but the ping is low and download and upload are max.

I have used this driver on 4.9, 4.13 and 4.14 but it didn't work properly on any of these kernels.

Monitor Mode Not Starting

Hi Abhijeet,

I have followed all your steps on both Kali and Parrot, however, i am still not able to get the Monitor mode working. I am running the latest versions of the OS's on Oracle VirtualBox.

I am attaching the screenshot of the error here.

Can you please help?
screen shot 2018-09-08 at 20 11 33

Monitor mode won't work, ubuntu 16.04

Hey abhijeet2096, thanks for your solution, the installation process is done without problem, but I still can't enable the monitor mode.

sudo ifconfig wlxc025e91bcc07 down sudo iwconfig wlxc025e91bcc07 mode Monitor Error for wireless request "Set Mode" (8B06) : SET failed on device wlxc025e91bcc07 ; Invalid argument.

Here is my ubuntu version:

mika@mika-pc:~$ uname -a Linux mika-pc 4.15.0-36-generic #39~16.04.1-Ubuntu SMP Tue Sep 25 08:59:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Any idea of what I could do?

Thanks :)

Monitor mode error

abhijeet sir, i request u to compile the TL-WN722N-V2 drivers for kali linux 4.16.0-kali2-amd64.....
there are many waiting for ur new version kernel compiled....please post fastr as u can

Support for Kernel 4.4

Does it support Ubuntu 16.04 with kernel 4.4.0-116-generic ?

And while I try to apt install linux-headers, I need to choose which headers to install, does I need to choose the one with same kernel with mine or other ?

Monitor mode not working with TP-LINK TL-WN722N (version 2) on 4.13.0-kali

$ uname -a
Linux Hostname 4.13.0-kali1-amd64 #1 SMP Debian 4.13.4-2kali1 (2017-10-16) x86_64 GNU/Linux

Problem:

$ ifconfig wlan1 down
$ iwconfig wlan1 mode Monitor
$ ifconfig wlan1 up
Error for wireless request "Set Mode" (8B06) :
    SET failed on device wlan1 ; Invalid argument.

Monitor mode doesn't work.
It is not possible to spoof MAC either.

The led of my TL-WN722N-V2 doesn't turn on

uname -a

Linux moe 4.10.0-33-generic #37~16.04.1-Ubuntu SMP Fri Aug 11 14:07:24 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a

No LSB modules are available.
Distributor ID: LinuxMint
Description: Linux Mint 18.2 Sonya
Release: 18.2
Codename: sonya

Cant make all even dkms

Try to make all but i got a error. Please fix.
P/s: I did install linux-headers for kali.

Unable to turn on Monitor Mode

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!

Sudo make all command error

root@kali:# cd '/root/Desktop/TL-WN722N-V2'
root@kali:
/Desktop/TL-WN722N-V2# sudo make clean
""
"NO SKRC,we will use default KSRC"
"
"
cd hal/OUTSRC/ ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal/OUTSRC/ ; rm -fr .mod.c .mod .o ..cmd .ko
cd hal/led ; rm -fr .mod.c .mod .o ..cmd .ko
cd hal ; rm -fr //
.mod.c //
.mod //
.o //.
.cmd //
.ko
cd hal ; rm -fr /.mod.c /.mod /.o /..cmd /.ko
cd hal ; rm -fr .mod.c .mod .o ..cmd .ko
cd core/efuse ; rm -fr .mod.c .mod .o ..cmd .ko
cd core ; rm -fr .mod.c .mod .o ..cmd .ko
cd os_dep/linux ; rm -fr .mod.c .mod .o ..cmd .ko
cd os_dep ; rm -fr .mod.c .mod .o ..cmd .ko
cd platform ; rm -fr .mod.c .mod .o ..cmd .ko
rm -fr Module.symvers ; rm -fr Module.markers ; rm -fr modules.order
rm -fr .mod.c .mod .o ..cmd .ko *~
rm -fr .tmp_versions
root@kali:~/Desktop/TL-WN722N-V2# sudo make all
"
"
"NO SKRC,we will use default KSRC"
"
**********************"
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-kali1-amd64/build M=/root/Desktop/TL-WN722N-V2 modules
make[1]: *** /lib/modules/4.13.0-kali1-amd64/build: No such file or directory. Stop.
Makefile:1367: recipe for target 'modules' failed
make: *** [modules] Error 2

This is the error pls help

Kali linux 4.18.0 not working

uname -a =
Linux kali 4.18.0-kali1-amd64 #1 SMP Debian 4.18.6-1kali1 (2018-09-10) x86_64 GNU/Linux
(the newest version)

iwconfig wlan0 mode monitor
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Operation not permitted.

iwconfig =

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

Error macchanger -r wlan0

I have just buy the TL-WN722N V2 and trying to change the mac address on Kali Linux... so I did :

root@kali:~# ifconfig wlan0 down
root@kali:~# macchanger -r wlan0
Current MAC: 7c:8b:ca:06:ef:a7 (unknown)
Permanent MAC: 7c:8b:ca:06:ef:a7 (unknown)
New MAC: 52:ea:bc:e2:73:33 (unknown)
Network driver didn't actually change to the new MAC!!

As you see, the new mac address don't replace the current one !

So if someone have any idea or suggestion ?
Thank You in advance !

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.