LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Please Help me! Cant get my Wireless to work (https://www.linuxquestions.org/questions/linux-newbie-8/please-help-me-cant-get-my-wireless-to-work-4175535944/)

KaliNoob 03-06-2015 08:04 AM

Please Help me! Cant get my Wireless to work
 
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.

Pls help me!!!

my lsusb outpu is:
Quote:

BUS 002 DEVICE 003: ID 2001:3314 D-LINK Corp.

luvr 03-06-2015 08:15 AM

This may help: D-Link DWA-171 not detected (Linux Mint 16).

KaliNoob 03-06-2015 08:36 AM

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
how can i get rid off that errors?

luvr 03-06-2015 08:55 AM

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.

KaliNoob 03-06-2015 09:11 AM

takes a while
 
Quote:

Originally Posted by luvr (Post 5327842)
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


Any other suggestions?

luvr 03-06-2015 10:08 AM

Quote:

Originally Posted by KaliNoob (Post 5327850)
Any other suggestions?

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.

luvr 03-06-2015 03:28 PM

1 Attachment(s)
Quote:

Originally Posted by KaliNoob (Post 5327850)
Any other suggestions?

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:
Code:

patch --binary --strip=1 --verbose < cfg80211_rx_mgmt.txt
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.

dhmavch 07-31-2015 03:25 PM

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

luvr 07-31-2015 04:25 PM

Quote:

Originally Posted by dhmavch (Post 5399070)
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.

luvr 08-01-2015 11:23 AM

Quote:

Originally Posted by dhmavch (Post 5399070)
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?


All times are GMT -5. The time now is 04:26 AM.