offensive-security/kali-nethunter

Nexus 6p Nethunter External WiFi Card

Closed this issue · 5 comments

Device: Nexus 6p

OS version (KitKat/Lollipop/Marshmallow/Nougat): 7 - Nougat

I have nethunter (angler) image installed on my Nexus 6p with the kernel zip file installed also (android 7 Nougat). However, when i try to attach an external WiFi card, there is no sign of any wlan1 or new interface. When I run dmesg , it shows that a usb has been plugged in with the company name and firmware etc but never starts wlan1. I have tried this with many WiFi cards and vendors such as:

  • Realtek
  • Ralink
  • Alfa Atheros

Here is the output when i plug in my Alfa Atheros:

etc. Any help would be much appreciated

[95720.498539] xHCI xhci_add_endpoint called for root hub
[95720.498554] xHCI xhci_check_bandwidth called for root hub
[95720.499299] hub 1-0:1.0: USB hub found
[95720.499341] hub 1-0:1.0: 1 port detected
[95720.499605] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[95720.499629] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[95720.499723] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[95720.499737] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[95720.499749] usb usb2: Product: xHCI Host Controller
[95720.499761] usb usb2: Manufacturer: Linux 3.10.73-nethunter-angler-2.0 xhci-hcd
[95720.499773] usb usb2: SerialNumber: xhci-hcd.0.auto
[95720.500872] xHCI xhci_add_endpoint called for root hub
[95720.500883] xHCI xhci_check_bandwidth called for root hub
[95720.501470] hub 2-0:1.0: USB hub found
[95720.501501] hub 2-0:1.0: 1 port detected
[95720.961978] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[95720.987029] usb 1-1: New USB device found, idVendor=0cf3, idProduct=9271
[95720.987087] usb 1-1: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[95720.987112] usb 1-1: Product: UB91C
[95720.987134] usb 1-1: Manufacturer: ATHEROS
[95720.987157] usb 1-1: SerialNumber: 12345
[95726.527336] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1 bit width =6 sample rate =48000
[95726.530831] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4103
[95726.540431] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0 bit width =6 sample rate =48000
[95726.541817] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4102
[95727.046573] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0
[95727.053941] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1
[95727.054864] msm8994_quat_mi2s_snd_shutdown Quaternary MI2S Clock is Disabled
[95727.058913] max98925_left_en_put: spk&rcver switch gpio had pulled down
[95728.369918] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1 bit width =6 sample rate =48000
[95728.374790] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4103
[95728.385903] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0 bit width =6 sample rate =48000
[95728.387457] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4102
[95728.896583] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0
[95728.902490] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1
[95728.903279] msm8994_quat_mi2s_snd_shutdown Quaternary MI2S Clock is Disabled
[95728.904902] max98925_left_en_put: spk&rcver switch gpio had pulled down
[95731.972224] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1 bit width =6 sample rate =48000
[95731.975966] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4103
[95731.988675] msm8994_quat_mi2s_snd_startup: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0 bit width =6 sample rate =48000
[95731.990013] afe_get_cal_topology_id: [AFE_TOPOLOGY_CAL] not initialized for this port 4102
[95732.509669] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 0
[95732.515844] msm8994_quat_mi2s_snd_shutdown: dai name qcom,msm-dai-q6-mi2s-quat.210 0000000000000000 substream = subdevice #0 stream = 1
[95732.516747] msm8994_quat_mi2s_snd_shutdown Quaternary MI2S Clock is Disabled
[95732.518697] max98925_left_en_put: spk&rcver switch gpio had pulled down

Any Help would be much appreciated.

Many thanks

@kimocoder - you've got one of these, don't you?

Yes but haven't tested the modules on 7.1.1. it is reported working.
More output, eg "iwconfig" and "airmon-ng" would be great.

And remember, use "monstart.sh" and it has to be loaded with "modprobe" and/or "ifconfig wlan1" i think it was

@kimocoder coming from unwilling ignorance, I would think his best bet would be to drop in the wifi adapter settings, even if it comes from the Magisk module, but that's just ignoring what the log clearly shows.

Still @petrexxy I would urge you to consider flashing the new kernel for angler (yes, it's for Oreo, but even assuming you don't want to upgrade to something that somewhat difficult to compromise,, the Oreo kernel should be safe....especially since your) wlan0 is going to be your packet injection adapter, not wlan1.

For my nexus 5, apres nexmon, in order to get the fucker to even react to the adapter, I had to reflash drivers for the chipsets, which was huge and counter intuitive. By flash, I mean manually producing the zip, almost entirely without reference to the Magisk module claiming to help automate the wlan1 up drivers and flashing through TWRP

Also, the reason your device is showing up.. Nm, I'll just post the link to it. Essentially, beyond modprobing, you're gonna want to dynamically link the adapter. https://unix.stackexchange.com/questions/234315/rt5572-shown-in-lsusb-but-not-iwconfig

@Almaincognito the nethunter marshmallow kernel worked when flashed. All external devices come up and the WiFi card works perfectly. I guess it's just that then. Thanks for the help!

I just pushed a working Nexus 6P Android 8 kernel with working kernel modules..