Troubleshooting wifi drivers

If it doesn't relate to Debian, but you still want to share it, please do it here

Troubleshooting wifi drivers

Postby sudo » 2019-03-01 19:02

I recently purchased the following UBS wireless NIC:

https://www.amazon.com/EDUP-ac600Mbps-W ... rk+adapter

The drivers that came with the nic do not work and I get the following error(s):
Code: Select all

root@kali:~# dpkg -i ./dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb
dpkg: warning: downgrading dkms from 2.6.1-4 to 2.2.0.3-1.1ubuntu5.14.04.5
(Reading database ... 357990 files and directories currently installed.)
Preparing to unpack .../dkms_2.2.0.3-1.1ubuntu5.14.04.5_all.deb ...
Unpacking dkms (2.2.0.3-1.1ubuntu5.14.04.5) over (2.6.1-4) ...
dpkg: warning: unable to delete old directory '/etc/dkms/template-dkms-mkbmdeb/debian': Directory not empty
dpkg: warning: unable to delete old directory '/etc/dkms/template-dkms-mkbmdeb': Directory not empty
dpkg: dependency problems prevent configuration of dkms:
 dkms depends on module-init-tools; however:
  Package module-init-tools is not installed.

dpkg: error processing package dkms (--install):
 dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.4-2+b1) ...
Errors were encountered while processing:
 dkms

The service is running.



I found the following drivers on github > https://github.com/gnab/rtl8812au

When I run this, I get the following error(s):

Code: Select all

root@kali:~# sudo dkms install 8812au/4.2.2

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
'make' all KVER=4.19.0-kali3-amd64...........(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-kali3-amd64 (x86_64)
Consult /var/lib/dkms/8812au/4.2.2/build/make.log for more information.

______________________________________________________________

root@kali:~# cat /var/lib/dkms/8812au/4.2.2/build/make.log
DKMS make.log for 8812au-4.2.2 for kernel 4.19.0-kali3-amd64 (x86_64)
Tue Feb 26 19:50:12 MST 2019
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-kali3-amd64/build M=/var/lib/dkms/8812au/4.2.2/build  modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-kali3-amd64'
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_cmd.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_security.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_debug.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_io.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_ioctl_query.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_ioctl_set.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_ieee80211.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_mlme.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_mlme_ext.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_wlan_util.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_vht.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_pwrctrl.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_rf.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_recv.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_sta_mgt.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_ap.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_xmit.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_p2p.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_tdls.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_br_ext.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_iol.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/rtw_sreset.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/core/efuse/rtw_efuse.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/os_dep/osdep_service.o
  CC [M]  /var/lib/dkms/8812au/4.2.2/build/os_dep/linux/os_intfs.o
/var/lib/dkms/8812au/4.2.2/build/os_dep/linux/os_intfs.c:1069: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,
                      ^~~~~~~~~~~~~~~~
/var/lib/dkms/8812au/4.2.2/build/os_dep/linux/os_intfs.c:1069: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-kali3-common/scripts/Makefile.build:309: /var/lib/dkms/8812au/4.2.2/build/os_dep/linux/os_intfs.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-kali3-common/Makefile:1535: _module_/var/lib/dkms/8812au/4.2.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-kali3-amd64'
make: *** [Makefile:1064: modules] Error 2



Looking at that git repo, the files are about 5 years old. I searched for something a little newer and found the following:

https://github.com/zebulon2/rtl8812au-driver-5.2.20

I cloned that repo and executed the installation instructions outlined in the README.md file.

This completed with no issues/errors.

Sadly, this is not working and Im not sure how to proceed.

Does anyone have any suggestions on how to proceed?

lsusb does find and list the USB wireless NIC:

# lsusb
Bus 001 Device 003: ID asdf:fdsa Realtek Semiconductor Corp.

airmon-ng does not list anything.

Thanks in advance!
~ suso
sudo
 
Posts: 1
Joined: 2019-02-28 04:51

Re: Troubleshooting wifi drivers

Postby arochester » 2019-03-01 19:46

Kali Linux Forums >>> https://forums.kali.org/
arochester
 
Posts: 1599
Joined: 2010-12-07 19:55

Re: Troubleshooting wifi drivers

Postby stevepusser » 2019-03-01 22:21

You also have to explain how a downgrade of dkms to an old Ubuntu version is happening.

So far, you seem to have a KaliFrankenUbuntuDebian on your hands.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kodi 18.5, Featherpad 0.12.0, PulseEffects 4.7.0, KeepassXC 2.5.2, SuperTuxKart 1.1, Waterfox 2019.12
User avatar
stevepusser
 
Posts: 11400
Joined: 2009-10-06 05:53


Return to Offtopic

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable