Results 1 to 32 of 32

Thread: Having a lot of problems with Nexus 7 and OTG wifi adapters

  1. #1
    Join Date
    2015-Jan
    Posts
    5

    Having a lot of problems with Nexus 7 and OTG wifi adapters

    I have nethunter up and running on my 2013 Nexus 7. The latest version was flashed on a clean kitkat flash and then updated via: apt-get update && apt-get dist-upgrade. The problems that I am having stem from what seems to be support for the external wireless adapters. I have both an Alfa AWUS036H (two of them in fact) and a Linksys WUSB54G. I have used both on a full Kali install (hence they both are functional). Its hard to be very specific as the problem seems to change with every reboot. Each adapter is recognized only sometimes and only after a reboot. I have gotten as far as a wifite WPA attack on my router with a deauth to get a handshake but it paused at that part and then hung. With both adapters sometimes they show up using airodump-ng and a few times they would go into monitor mode on mon0. Further than that it seems that after each attempt at use of the monitor mode enabled card, the kali instance would hang every time i subsequently tried to do anything using that interface and required a restart. As I said its hard to pin down specific problems since they are so transient. It just seems like there is a large problem with wireless adapters on my install of nethunter and im wondering if this is something that others have experienced (since nethunter is new I expect some bugs) or should I wipe and re-install nethunter?

    Thanks for your time!

    P.S. I can provide any further details that might be relevant or try and commands, I just don't really know what to include since ive tried so many different ways to fix the problem.
    Also, ive tried commands both through the kali launcher interface and through the command line of the kali chroot.

  2. #2
    Quick question, are you sure your otg cable is not the one at fault?

  3. #3
    Join Date
    2015-Jan
    Posts
    5
    That was the first thing I checked. I used a usb drive connected to the OTG cable which waa detected and read fine. Is there another way I should test it?

  4. #4
    had similar issues with my alfa, couldnt get it working. did take a step forward in updating my android version to 4.4.4; that was part of the problem, the other was my alfa(brand new) wasnt getting assigned the 8187 drivers in aircrack. got a tplink adapter and magically worked fine.

    Edit:
    Swearing
    Last edited by g0tmi1k; 2015-03-31 at 09:29. Reason: Swearing

  5. #5
    Join Date
    2015-Jan
    Posts
    5
    Yea, tried a random D-Link adapter I had sitting around and it seems to be working just fine. Not sure if I should do a full reflash of kitkat and kali via the installer to see if I can get my Alfa working or just be happy that I found one that works and move on.

    Thanks

  6. #6
    Join Date
    2015-Jan
    Posts
    5
    Well now it seems that the D-link adapter isn't recognized anymore. Out of the blue it stopped being seen at all by nethunter....back to the testing board I guess...

  7. #7
    Join Date
    2014-Nov
    Posts
    3
    I am having a similiar problem.

    I bought a new TP Link WN722N, and after plugging it in, my 2013 Nexus 7 continually shuts down and reboots. Sometimes I get as far as starting WiFiLite, sometimes not.

  8. #8
    Join Date
    2015-Nov
    Posts
    2
    I have nethunter up and running on my 2013 Nexus 7.kali_linux_nethunter_2.0_razor_lollipop and i try I used a usb drive connected to the OTG cable which waa detected and read fine but if am using tp link wn722n to chek it not power on but in lsub the driver all shown is any ide to use this ext car

  9. #9
    Join Date
    2015-Nov
    Posts
    2

    Post External Wifi card not detected Nexus 7 2013

    External Wifi card TP-LINK WN722N not detected Nexus 7 2013 on i try kali_linux_nethunter_2.0_razor_lollipop image is there any idea to use THE CARD

  10. #10
    Join Date
    2015-Nov
    Posts
    24
    Hey satish. Launch shell in terminal
    1. Apt-get update
    2. Apt-get install usbutils
    3. Apt-get install pciutils
    4. Apt-get install firmware-atheros
    Run "ifconfig" will see wlan1
    5. ifconfig wlan1 up
    Your usb card will flashing
    Done
    Hope this help

  11. #11
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by Duane View Post
    Hey satish. Launch shell in terminal
    1. Apt-get update
    2. Apt-get install usbutils
    3. Apt-get install pciutils
    4. Apt-get install firmware-atheros
    Run "ifconfig" will see wlan1
    5. ifconfig wlan1 up
    Your usb card will flashing
    Done
    Hope this help
    hi i've the same problem but after execute this command the led bring up but i receive an error when i run wifite
    Attached Images Attached Images
    Last edited by simo#; 2015-12-02 at 08:46.

  12. #12
    Join Date
    2015-Nov
    Posts
    24
    Quote Originally Posted by simo# View Post
    hi i've the same problem but after execute this command the led bring up but i receive an error when i run wifite [IMGhttp://postimg.org/image/peomufcgd/[/IMG]
    Reboot your device . Wlan1 should be with ath9k_htc driver , atheros chipset .
    Launch kali shell in terminal - Do not Launch wifite.
    1. Airmon-ng
    #Check your wireless card wlan0 or wlan1.
    bring it up to monitor mode. If it is wlan1 then
    2. Airmon-ng start wlan1
    #otherwise if it is wlan0 then
    2. Airmon-ng start wlan0
    3. Wifite
    Let me know if it works.
    Last edited by Duane; 2015-12-02 at 04:06.

  13. #13
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by Duane View Post
    Reboot your device . Wlan1 should be with ath9k_htc driver , atheros chipset .
    Launch kali shell in terminal - Do not Launch wifite.
    1. Airmon-ng
    #Check your wireless card wlan0 or wlan1.
    bring it up to monitor mode. If it is wlan1 then
    2. Airmon-ng start wlan1
    #otherwise if it is wlan0 then
    2. Airmon-ng start wlan0
    3. Wifite
    Let me know if it works.
    hi thanks for reply i've typed the command, this is the result
    Attached Images Attached Images
    Last edited by simo#; 2015-12-02 at 17:42.

  14. #14
    Join Date
    2015-Dec
    Posts
    3
    It seems the latest kernel drivers for ath9k_htc only support cfg80211 and not ioctl.
    Try recompiling your kernel with CONFIG_FHANDLE and CONFIG_CFG80211_WEXT set to Y.
    Worked for me - Nexus 7 (2013) & TL-WN722N.

    The former removes an error shown when you use airmon_ng, and the latter enables the new kernel<->userspace system to work with the older ioctl/wext system that kismet and iwconfig use.
    Don't know the downside or why there were turned off in the kali_defconfig configuration, but so far they're working for me.

    BTW, this also fixed wifite looping on interface selection.
    Last edited by wsu78line; 2015-12-05 at 16:01. Reason: Wifite

  15. #15
    Join Date
    2015-Nov
    Posts
    24
    Can't see your image

  16. #16
    Join Date
    2015-Oct
    Posts
    17
    so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
    and i'ive also reupload the iimage at
    http://postimg.org/image/ix845bzmf/

  17. #17
    Join Date
    2015-Dec
    Posts
    3
    Quote Originally Posted by simo# View Post
    so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
    and i'ive also reupload the iimage at
    http://postimg.org/image/ix845bzmf/
    It's the same as any Linux kernel compile, assuming you've ever done that. Everything is command line in Linux (Kali is recommended, I did mine on Ubuntu 5.10)
    General starting point for nethunter is here: https://github.com/offensive-securit...ing-the-Kernel

    Use Git to pull a kernel source - I used BinkyBear's ElementalX 5 (https://github.com/binkybear/flo/tree/ElementalX-5.00). Git on linux is easy -

    git clone https://github.com/binkbear/flo.git -b ElementalX-5.00


    Then follow the directions on the first link to set up your development environment. Mostly a compiler, some libraries, and environment variables.
    Run "make kali_defconfig" to setup the initial config. Then you can modify it two different ways
    1) Run "make menuconfig" for a GUI. Navigate (arrow keys up and down, enter to follow a menu, space to select an option) to the options and select them, then save the new .config.
    2) Open ".config" with your text editor of choice and change "is not configured" to "=y" for the two options.

    Then run "make", and let the kernel compile. You will get a file called "zImage" in arch/arm/boot.


    There might be a better way to install the kernel, but what I did is clone the new installer from Offensive Security (https://github.com/offensive-securit...ewinstaller-fj)
    git clone https://github.com/offensive-security/kali-nethunter -b newinstaller-fj

    Go into that directory, then Anykernel2/kernels/[android version]/flo and copy the new zImage from your kernel compile into it.
    In the Anykernel2 directory, run
    python build.py -d flo --[android version] -k

    You will get a Zip file called something like "kernel-nethunter-flo-...-.zip". Copy it to your device and install with TWRP.
    Keep in mind that this install method is based off of a Git repo that isn't officially released yet, so while it worked for me YMMV.
    Last edited by wsu78line; 2015-12-07 at 22:08. Reason: Fix Git path

  18. #18
    Join Date
    2015-Nov
    Posts
    24
    Quote Originally Posted by simo# View Post
    so thanks for the reply but i'm not capable to recompile kernel there are a guide ? thanks
    and i'ive also reupload the iimage at
    http://postimg.org/image/ix845bzmf/
    Picture shown your usb wireless card is wlan0.
    so try : airmon-ng start wlan0
    if that not work you need to reflashing Kali-linux-net-hunter using nethunter windows installer
    you can download from here
    http://www.mediafire.com/download/ml...v1.0.9.sfx.exe
    when done follow all steps in previous posts

  19. #19
    Join Date
    2015-Oct
    Posts
    17
    ok thanks now i'm try to reinstall and recompile kernel now i'm in debian 8 i use this thanks a lot

  20. #20
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by wsu78line View Post
    It's the same as any Linux kernel compile, assuming you've ever done that. Everything is command line in Linux (Kali is recommended, I did mine on Ubuntu 5.10)
    General starting point for nethunter is here: https://github.com/offensive-securit...ing-the-Kernel

    Use Git to pull a kernel source - I used BinkyBear's ElementalX 5 (https://github.com/binkybear/flo/tree/ElementalX-5.00). Git on linux is easy -

    git clone https://github.com/binkbear/flo.git -b ElementalX-5.00


    Then follow the directions on the first link to set up your development environment. Mostly a compiler, some libraries, and environment variables.
    Run "make kali_defconfig" to setup the initial config. Then you can modify it two different ways
    1) Run "make menuconfig" for a GUI. Navigate (arrow keys up and down, enter to follow a menu, space to select an option) to the options and select them, then save the new .config.
    2) Open ".config" with your text editor of choice and change "is not configured" to "=y" for the two options.

    Then run "make", and let the kernel compile. You will get a file called "zImage" in arch/arm/boot.


    There might be a better way to install the kernel, but what I did is clone the new installer from Offensive Security (https://github.com/offensive-securit...ewinstaller-fj)
    git clone https://github.com/offensive-security/kali-nethunter -b newinstaller-fj

    Go into that directory, then Anykernel2/kernels/[android version]/flo and copy the new zImage from your kernel compile into it.
    In the Anykernel2 directory, run
    python build.py -d flo --[android version] -k

    You will get a Zip file called something like "kernel-nethunter-flo-...-.zip". Copy it to your device and install with TWRP.
    Keep in mind that this install method is based off of a Git repo that isn't officially released yet, so while it worked for me YMMV.
    hello we're taking advantage of vacation time to try configyrare the kernel but i receive this error
    gcc: error: unrecognized command line option ‘-munaligned-access’
    gcc: error: unrecognized command line option ‘-marm’
    gcc: error: unrecognized command line option ‘-mfpu=neon-vfpv4’
    /home/simone/flo-ElementalX-5.00/./Kbuild:35: set di istruzioni per l'obiettivo "kernel/bounds.s" non riuscito
    make[1]: *** [kernel/bounds.s] Errore 1
    Makefile:989: set di istruzioni per l'obiettivo "prepare0" non riuscito
    make: *** [prepare0] Errore 2
    Last edited by simo#; 2016-01-03 at 20:25.

  21. #21
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by wsu78line View Post
    It seems the latest kernel drivers for ath9k_htc only support cfg80211 and not ioctl.
    Try recompiling your kernel with CONFIG_FHANDLE and CONFIG_CFG80211_WEXT set to Y.
    Worked for me - Nexus 7 (2013) & TL-WN722N.

    The former removes an error shown when you use airmon_ng, and the latter enables the new kernel<->userspace system to work with the older ioctl/wext system that kismet and iwconfig use.
    Don't know the downside or why there were turned off in the kali_defconfig configuration, but so far they're working for me.

    BTW, this also fixed wifite looping on interface selection.
    @wsu78line
    can you help me to compile? please i have some error is three night that i try to cpmpile but i'm not able to resolve error please respond me and help please do not know what to do I would like to use Nethunter thanks - when i compile i get this error
    949- set of instruction for the target -net- failed
    Last edited by simo#; 2016-01-07 at 23:07.

  22. #22
    Join Date
    2015-Oct
    Posts
    17
    hi i want to say that I have solved putting Android 6.0 and wifi wlan1 working properly

  23. #23
    @simo#
    Also with a Nexus 7 (2013) & TL-WN722N ?

  24. #24
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by BeNe View Post
    @simo#
    Also with a Nexus 7 (2013) & TL-WN722N ?
    yessss finally

    Nexus 7 (2013) flo & TL-WN722N it is recognized as wlan1 and wifite work

    i used:
    --android: 6.0.1 (clean install with factory image)
    --build: MMB29K
    --flashed twrp lastest
    --image kali:https://images.offensive-security.co...mallow-3.0.zip
    Last edited by simo#; 2016-01-10 at 01:06.

  25. #25
    Thats excactly what i´m failed in this nethunter build

    Have also a Nexus 7 2013 but the LTE Version (deb) with a TL-WN722N and Nethuner 3.0. Same Setup as you with 6.0.1 clean install with factory image.
    The WN722N is not recognized as wlan1 in the Nethunter menu and also not on the shell with wifite.

    Did you changed something ? You connect the WN722N directly to you USB Port on the Nexus without a battery pack ?
    Was the meaning that only the new TL-WN822N is supported in Nethunter 3.0 and the support for all other WiFi sticks are dropped.

    I need to check this directly again with my WN722N.

  26. #26
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by BeNe View Post
    Thats excactly what i´m failed in this nethunter build

    Have also a Nexus 7 2013 but the LTE Version (deb) with a TL-WN722N and Nethuner 3.0. Same Setup as you with 6.0.1 clean install with factory image.
    The WN722N is not recognized as wlan1 in the Nethunter menu and also not on the shell with wifite.

    Did you changed something ? You connect the WN722N directly to you USB Port on the Nexus without a battery pack ?
    Was the meaning that only the new TL-WN822N is supported in Nethunter 3.0 and the support for all other WiFi sticks are dropped.

    I need to check this directly again with my WN722N.
    ok there is a method to do this correct are you italian? otherwise I try to translate as best I can
    Last edited by simo#; 2016-01-10 at 12:39.

  27. #27
    Sorry no i´m not italian
    Would be cool if you can try to translate it. I will also do my best to understand it.

    Thanks simo# for your help!

  28. #28
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by BeNe View Post
    Sorry no i´m not italian
    Would be cool if you can try to translate it. I will also do my best to understand it.

    Thanks simo# for your help!
    so ok i try:
    i make a video for you:https://mega.nz/#F!wkICUDrZ!q04tvHPJrkZDs27UFIVFPQ

    -power on my device normally whit no things plugged in
    -wifi internal must be active connected or not
    -open kali terminal
    -plug onto wifi external
    -digit >> ifconfig wlan1 up
    -digit >> ifconfig to see if wlan1 is recognized
    -launch wifite from terminal
    it will be start

    say me if this work for you
    Last edited by simo#; 2016-01-10 at 14:46.

  29. #29
    Thanks for your help. But i recieve an error:
    Code:
    root@kali:~# ifconfig wlan1 up
    wlan1: ERROR while getting interface flags: No such device
    root@kali:~#
    But Nethunter recognized the adapter. Here is my dmesg output:

    Code:
    [ 1197.523467] msm_otg msm_otg: USB exited from low power mode
    [ 1197.787963] usb 2-1: new high-speed USB device number 3 using msm_hsusb_host
    [ 1197.963592] usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271
    [ 1197.964141] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
    [ 1197.964691] usb 2-1: Product: USB2.0 WLAN
    [ 1197.964965] usb 2-1: Manufacturer: ATHEROS
    [ 1197.965240] usb 2-1: SerialNumber: 12345
    [ 1210.541564] ch_notify on a closed smd_pkt_dev id:18
    [ 1210.636230] init: Service 'sensors' (pid 4622) killed by signal 11
    [ 1210.636444] init: Service 'sensors' (pid 4622) killing any children in process group
    [ 1210.637237] init: Starting service 'sensors'...
    [ 1215.178314] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
    [ 1223.753997] wlan: [1073:E :SME] sme_FTUpdateKey: Unhandled state=0
    [ 1230.208312] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
    [ 1230.318756] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.319671] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.320892] bq27541_get_psp voltage_now= 4136000 uV
    [ 1230.321899] bq27541_get_capacity = 92% ret= 91
    [ 1230.323150] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
    [ 1230.324890] bq27541_get_psp current = -205 mA
    [ 1230.327789] bq27541_get_capacity = 92% ret= 91
    [ 1230.329681] bq27541_get_psp voltage_now= 4136000 uV
    [ 1230.331207] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
    [ 1230.332519] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.335357] bq27541_get_psp current = -205 mA
    [ 1230.335967] healthd: battery l=92 v=4136 t=22.2 h=2 st=4 c=0 chg= 2016-01-10 17:05:59.283198230 UTC

  30. #30
    Join Date
    2015-Oct
    Posts
    17
    Quote Originally Posted by BeNe View Post
    Thanks for your help. But i recieve an error:
    Code:
    root@kali:~# ifconfig wlan1 up
    wlan1: ERROR while getting interface flags: No such device
    root@kali:~#
    But Nethunter recognized the adapter. Here is my dmesg output:

    Code:
    [ 1197.523467] msm_otg msm_otg: USB exited from low power mode
    [ 1197.787963] usb 2-1: new high-speed USB device number 3 using msm_hsusb_host
    [ 1197.963592] usb 2-1: New USB device found, idVendor=0cf3, idProduct=9271
    [ 1197.964141] usb 2-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
    [ 1197.964691] usb 2-1: Product: USB2.0 WLAN
    [ 1197.964965] usb 2-1: Manufacturer: ATHEROS
    [ 1197.965240] usb 2-1: SerialNumber: 12345
    [ 1210.541564] ch_notify on a closed smd_pkt_dev id:18
    [ 1210.636230] init: Service 'sensors' (pid 4622) killed by signal 11
    [ 1210.636444] init: Service 'sensors' (pid 4622) killing any children in process group
    [ 1210.637237] init: Starting service 'sensors'...
    [ 1215.178314] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
    [ 1223.753997] wlan: [1073:E :SME] sme_FTUpdateKey: Unhandled state=0
    [ 1230.208312] wlan: [938:E :HDD] hdd_tx_rx_pkt_cnt_stat_timer_handler: Disable split scan
    [ 1230.318756] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.319671] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.320892] bq27541_get_psp voltage_now= 4136000 uV
    [ 1230.321899] bq27541_get_capacity = 92% ret= 91
    [ 1230.323150] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
    [ 1230.324890] bq27541_get_psp current = -205 mA
    [ 1230.327789] bq27541_get_capacity = 92% ret= 91
    [ 1230.329681] bq27541_get_psp voltage_now= 4136000 uV
    [ 1230.331207] bq27541_get_psp temperature= 222 (0.1\xffffffa2XC)
    [ 1230.332519] bq27541_get_psp status: Not charging ret= 0x0181
    [ 1230.335357] bq27541_get_psp current = -205 mA
    [ 1230.335967] healthd: battery l=92 v=4136 t=22.2 h=2 st=4 c=0 chg= 2016-01-10 17:05:59.283198230 UTC
    if you type iwconfig?it appear?

  31. #31
    Not output about wlan1.
    I will check the Nethunter irc channel about the problem.

    But big thanks, simo#

  32. #32
    Join Date
    2016-Feb
    Posts
    7
    Same Issue I also haveWN722N but does not appear when i connect it through OTG cable...im running 5.0.1 NOte3 n900.

Similar Threads

  1. NetHunter TL-WN722N WIFI PROBLEMS? 3.1 Nexus 7 2013 (6.0.1)
    By R0M4N0V in forum NetHunter How-Tos
    Replies: 4
    Last Post: 2021-11-05, 12:23
  2. Nexus 6P Oreo 8.0.0 usb/wifi problems
    By x_overflow in forum Installing NetHunter
    Replies: 0
    Last Post: 2018-12-30, 03:08
  3. How to fix wifi problems on nexus 5 with nethunter ?
    By pxoto in forum NetHunter General Questions
    Replies: 2
    Last Post: 2016-11-28, 04:17
  4. Replies: 0
    Last Post: 2013-12-11, 17:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •