Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi @all
i try to get my wireless adapter to work on Kali Linux (3.18.0-kali3-amd64).
I read lots of post abot exactlly that topic, but none of that worked for me.
I have a D-LINK WIRELESS ADAPTER DWA-171
i even read this post right here: http://ubuntuforums.org/showthread.php?t=2177333
this user seems to have the exactly the same problem with the same adapter like i have...
but for me it didnt worked.
Hiluvr
ive tried that also... and now tried it again.
it doesnt work.
get following errors after "make"
Quote:
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/3.18.0-kali3-amd64/build M=/root/rtl8812AU_8821AU_linux modules
make[1]: Entering directory `/usr/src/linux-headers-3.18.0-kali3-amd64'
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_cmd.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_security.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_debug.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_io.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_ioctl_query.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_ioctl_set.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_ieee80211.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_mlme.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_mlme_ext.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_wlan_util.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_vht.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_pwrctrl.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_rf.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_recv.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_sta_mgt.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_ap.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_xmit.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_p2p.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_tdls.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_br_ext.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_iol.o
CC [M] /root/rtl8812AU_8821AU_linux/core/rtw_sreset.o
CC [M] /root/rtl8812AU_8821AU_linux/core/efuse/rtw_efuse.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/osdep_service.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.o
/root/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:1695:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/os_intfs.c:1695:2: warning: (near initialization for rtw_netdev_ops.ndo_select_queue) [enabled by default]
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/usb_intf.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/usb_ops_linux.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_linux.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/xmit_linux.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/mlme_linux.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/recv_linux.o
CC [M] /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function cfg80211_rtw_add_key:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:1250:3: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:1256:3: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function cfg80211_rtw_connect:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2550:2: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2587:4: warning: passing argument 2 of _rtw_memcmp discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2593:5: warning: passing argument 2 of _rtw_memcmp discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2601:14: warning: assignment discards const qualifier from pointer target type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2682:2: warning: passing argument 2 of rtw_cfg80211_set_wpa_ie discards const qualifier from pointer target type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2243:12: note: expected u8 * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function cfg80211_rtw_set_pmksa:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2913:2: warning: passing argument 1 of _rtw_memcmp discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2923:3: warning: passing argument 2 of _rtw_memcmp discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2927:4: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2941:3: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2942:3: warning: passing argument 2 of _rtw_memcpy discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:167:13: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function cfg80211_rtw_del_pmksa:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:2967:3: warning: passing argument 2 of _rtw_memcmp discards const qualifier from pointer target type [enabled by default]
In file included from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32:0,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/root/rtl8812AU_8821AU_linux/include/osdep_service.h:168:12: note: expected void * but argument is of type const u8 *
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function rtw_cfg80211_rx_action_p2p:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3883:2: error: too many arguments to function cfg80211_rx_mgmt
In file included from /root/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
from /root/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-3.18.0-kali3-common/include/net/cfg80211.h:4470:6: note: declared here
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function rtw_cfg80211_rx_p2p_action_public:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3921:2: error: too many arguments to function cfg80211_rx_mgmt
In file included from /root/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
from /root/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-3.18.0-kali3-common/include/net/cfg80211.h:4470:6: note: declared here
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: In function rtw_cfg80211_rx_action:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:3951:2: error: too many arguments to function cfg80211_rx_mgmt
In file included from /root/rtl8812AU_8821AU_linux/include/osdep_service_linux.h:76:0,
from /root/rtl8812AU_8821AU_linux/include/osdep_service.h:41,
from /root/rtl8812AU_8821AU_linux/include/drv_types.h:32,
from /root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:22:
/usr/src/linux-headers-3.18.0-kali3-common/include/net/cfg80211.h:4470:6: note: declared here
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c: At top level:
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5041:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5041:2: warning: (near initialization for rtw_cfg80211_ops.get_station) [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5069:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5069:2: warning: (near initialization for rtw_cfg80211_ops.add_station) [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5070:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5070:2: warning: (near initialization for rtw_cfg80211_ops.del_station) [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5071:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5071:2: warning: (near initialization for rtw_cfg80211_ops.change_station) [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5087:2: warning: initialization from incompatible pointer type [enabled by default]
/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.c:5087:2: warning: (near initialization for rtw_cfg80211_ops.mgmt_tx) [enabled by default]
make[4]: *** [/root/rtl8812AU_8821AU_linux/os_dep/linux/ioctl_cfg80211.o] Error 1
make[3]: *** [_module_/root/rtl8812AU_8821AU_linux] Error 2
make[2]: *** [sub-make] Error 2
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.18.0-kali3-amd64'
make: *** [modules] Error 2
root@kali:~/rtl8812AU_8821AU_linux#
and after "sudo make install"
Quote:
install -p -m 644 8812au.ko /lib/modules/3.18.0-kali3-amd64/kernel/drivers/net/wireless/
install: cannot stat `8812au.ko': No such file or directory
make: *** [install] Error 1
I'll have to look into this.
One thing I can already tell you: If the "make" step runs into an error, then there really is no point in trying "make install", since that needs the results from a successful make step.
Could you perhaps post a link to the Kali disc image (or whichever format you downloaded) that you used to install the system? If the compilation and installation works on my Ubuntu or Slackware systems, and I can find the time, then I may want to try it under Kali, too.
UPDATE: Just tried the "make" under Xubuntu 14.04. Works great.
I'll have to look into this.
One thing I can already tell you: If the "make" step runs into an error, then there really is no point in trying "make install", since that needs the results from a successful make step.
Could you perhaps post a link to the Kali disc image (or whichever format you downloaded) that you used to install the system? If the compilation and installation works on my Ubuntu or Slackware systems, and I can find the time, then I may want to try it under Kali, too.
I uploaded on my dropbox account... but it takes a while. anyway.
I downloaded the disc image (kali-linux-1.1.0.iso) from https://www.kali.org/downloads/ .... should be fine
Seems to me that the driver sources as downloaded, are missing the autoconfigure infrastructure to allow the compilation process to adapt to different environments. Autoconfiguration also gives useful information about what exactly is missing on your system in order to allow for a successful compilation. Something must be different enough between my Xubuntu and your Kali to make it work on one, but fail on the other.
I'm not sure if there will be an autoconfigurable version of the source files available anywhere, but I'll let you know if I find anything.
UPDATE: Ignore this post. I was on the wrong track.
Aha! found something!
The code, as published, won’t compile on Linux kernel 3.18 (which happens to be the version that you are using).
A patch is documented on the Kodi Community Forum. However, due to a few peculiarities about the source code (particularly, its use of <CR><LF> line endings, as is common under “TOOS—TOFR”, i.e., “That Other Operating System—The One From Redmond”), and about the way the patch was posted (missing spaces at the start of a few lines), a bit of extra work was required to make the patch usable.
Just so you won’t have go through the hassle of figuring out how to get the patch in a working state, I attached a copy of the corrected version to this post. You should download the patch (i.e., file ‘cfg80211_rx_mgmt.txt’) into the directory that contains the driver source (i.e., the directory from where you run the ‘make’ command when you attempt to compile the driver).
IMPORTANT: Verify that the file is exactly 1111 bytes in size (No, that’s not a typo: It really is a sequence of four ones). Otherwise, the patch must have gotten mangled again between my upload and your download.
Make sure you are in the driver source directory (ready to retry the compile), and run the following command:
The output of the command should look something like this:
Code:
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/include/ioctl_cfg80211.h b/include/ioctl_cfg80211.h
|index 08357ac..8e85dc9 100644
|--- a/include/ioctl_cfg80211.h
|+++ b/include/ioctl_cfg80211.h
--------------------------
patching file include/ioctl_cfg80211.h
Using Plan A...
Hunk #1 succeeded at 109.
done
Now retry the ‘make’.
This time, it should succeed.
i have tried what you said but i got an error message
"Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|diff --git a/include/ioctl_cfg80211.h b/include/ioctl_cfg80211.h
|index 08357ac..8e85dc9 100644
|--- a/include/ioctl_cfg80211.h
|+++ b/include/ioctl_cfg80211.h
--------------------------
Patching file include/ioctl_cfg80211.h using Plan A...
Hunk #1 FAILED at 109.
1 out of 1 hunk FAILED -- saving rejects to file include/ioctl_cfg80211.h.rej
"
i made sure of the file and i was in the right directory
if you please could help me
thanks
i have tried what you said but i got an error message
Could you post the “include/ioctl_cfg80211.h.rej” that the patch command created?
Also, the “include/ioctl_cfg80211.h” would be interesting.
It looks like the patch doesn’t correspond to the version of the header file that you have on your system.
I would have to see the header file in order to understand where it goes wrong.
If possible, I would very much appreciate if you could attach the files, rather than pasting them into a message, to make sure that the spacing doesn’t get messed up. To attach them, you will likely have to add a “.txt” extension to their names. Perhaps copy them to a place where you can easily find them, then rename the copies (to add the extension), then attach them to your next message here (use the paper clip icon above the text field where you type your text). They should then be named “ioctl_cfg80211.h.rej.txt” and “include/ioctl_cfg80211.h.txt”.
I will then have a look at them, and see what I can do to help you out.
i have tried what you said but i got an error message
UPDATE: It looks like the “include/ioctl_cfg80211.h” file, as available for download, was updated. It most likely no longer requires the patch.
Could you retry the “make” without patching?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.