[SOLVED] Problem trying to put wireless card on monitor mode rtl8821ae - slackware64-current
SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Problem trying to put wireless card on monitor mode rtl8821ae - slackware64-current
Hello
I cannot put my wireless card into monitor mode. I am running Slackware64 with 4.9.27 kernel (build by hand) and the rtl8821ae module is loaded and running (I have Internet connection) but, either airmon-ng or iwconfig do not put the card into monitor mode. In other Linux systems I do not have this problem (arch-linux, crux).
I put here some info:
uname -a
Code:
Linux dnnt 4.9.27 #3 SMP Sat May 13 23:26:52 CEST 2017 x86_64 Intel(R) Core(TM) i5-6300HQ CPU @ 2.30GHz GenuineIntel GNU/Linux
filename: /lib/modules/4.9.27/kernel/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/rtl8821ae.ko
firmware: rtlwifi/rtl8821aefw.bin
description: Realtek 8821ae 802.11ac PCI wireless
license: GPL
author: Realtek WlanFAE <wlanfae@realtek.com>
alias: pci:v000010ECd00008821sv*sd*bc*sc*i*
alias: pci:v000010ECd00008812sv*sd*bc*sc*i*
depends: rtlwifi,rtl_pci,btcoexist
intree: Y
vermagic: 4.9.27 SMP mod_unload
parm: swenc:Set to 1 for software crypto (default 0)
(bool)
parm: ips:Set to 0 to not use link power save (default 1)
(bool)
parm: swlps:Set to 1 to use SW control power save (default 0)
(bool)
parm: fwlps:Set to 1 to use FW control power save (default 1)
(bool)
parm: msi:Set to 1 to use MSI interrupts mode (default 1)
(bool)
parm: debug:Set debug level (0-5) (default 0) (int)
parm: disable_watchdog:Set to 1 to disable the watchdog (default 0)
(bool)
parm: int_clear:Set to 0 to disable interrupt clear before set (default 1)
(bool)
iwconfig wlan0 mode monitor
Code:
Error for wireless request "Set Mode" (8B06):
SET failed on device wlan0 ; Invalid argument
I do not know why this is happen. Any ideas? If you need more info, please,let me know.
I have used rtl8821ae and to my experience it has terrible linux support.
I had problems with it dropping connection all the time, does it keep dropping the connection for you as well?
I'm not even sure that it supports monitor mode, but you obviously got it to work in other linux distributions.
A better option is to buy an USB wireless adapter for one or two dollars with better linux support.
At the moment, I am posting this with wireless card, and I do not remember problems or issues with the driver, but most of the time I run my notebook with wired connection although.
Yeah, I got to work monitor mode and package injection in archlinux and crux with the same driver, and because of this, I though was some slackware-related problem. I test my USB adapter and monitor mode does not work (the same errors as PCI NIC, and it is a rtl8192cu).
Well, I am looking at github devel of rtlwifi_new, and a lot of people have problems with this driver (one guy says he has issues since 4.9 kernel). I will open a ticket there and trying the 4.10 kernel series.
Thanks you.
New: I am running now 4.10.16 (stable) kernel and still monitor mode does not work. I try another different Linux to test it. Thanks you.
Last edited by bakura_666; 05-16-2017 at 03:59 AM.
Reason: New failed test on 4.10.16 kernel
Problem trying to put wireless card on monitor mode rtl8821ae - slackware64-current
You may need to rebuild the kernel-firmware package using a more recent git release. I might be wrong about that.
You could also upgrade to Slackware-current.
Those 5Ghz WLAN NIC's have less support in aircrack-ng as well. I use the USB wifi dongle with the antenna from Adafruit industries (for the raspberry pi with a/b/g/n support) and it seems to do the job with aircrack-ng and kismet.
If it is the kernel firmware that needs to be upgraded, you can just grab the latest package from -current and use upgradepkg on it. It won't conflict with anything.
But does it matter that Slackware Current Packages were built with gcc version 7.1.0 where OTOH, the Kernel and glib and what-not on Slackware 14.2 were built with gcc version 5.3.0 ?
But does it matter that Slackware Current Packages were built with gcc version 7.1.0 where OTOH, the Kernel and glib and what-not on Slackware 14.2 were built with gcc version 5.3.0 ?
My suggestion was to use just the kernel-firmware package, which isn't compiled, just repackaged from kernel.org's git. And it is not tied to any kernel (although, newer kernels might require newer firmware files that may not exist in older versions).
But, in relation to the GCC used, I don't *think* it matters. I've pulled kernels from newer versions of Slackware and used them in older versions with no noticeable issues. I'm actually running the 4.9 kernel from -current in my 14.1 (yes, not 14.2) install, and I haven't noticed any issues with it.
I don't think GCC matters when executing a binary, because it is just creating an executable. The GCC version should only have an effect during the compiling process, not while running (unless any bugs from GCC cause an issue with the binary). But since you don't need GCC installed to run programs compiled by GCC, I *think* it ultimately doesn't matter how it was compiled.
I cannot put my wireless card into monitor mode. I am running Slackware64 with 4.9.27 kernel (build by hand) and the rtl8821ae module is loaded and running (I have Internet connection) but, either airmon-ng or iwconfig do not put the card into monitor mode. In other Linux systems I do not have this problem (arch-linux, crux).
I have had trouble putting some NIC's in Monitor mode. If the NIC supports Monitor mode, I have found the following code always seems to work. It's worth a try.
Code:
ifconfig wlan0 down
iwconfig wlan0 mode monitor
ifconfig wlan0 up
If you prefer the more modern ip command
Code:
ip link set dev wlan0 down
iwconfig wlan0 mode monitor
ip link set dev wlan0 up
First to all, sorry for no reply sooner, I had a busy week .
Second, all the things I tried to get to work the wireless was a failure. So, today, I re-installed everything (Slackware 14.2) and, before upgrade packages to current, I read carefully the upgrade.txt file at mirrors.slackware.com site and I did the upgrade step-by-step. After that, I was able to put the card in monitor mode and run tcpdump and airodump-ng in quick test without errors (well, the only thing I was missing since this rush-upgrade, it was the monitor interface: the whole system works without any errors, and I did not notice nothing wrong)
The failure when I open this thread was, I upgrade my os to current running upgradepkg on all packages directory; and the only thing I missed was the monitor mode in wireless card (the whole system works solid).
I do not know if my solution can help anyone here with complains about the driver, but maybe, it could work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.