The sequence number of inject frames was being overwritten. This prevents
certain older attacks against WEP fragmentation older TKIP attacks. Fix
this by tracking if a frames was injected in monitor mode, and if so, do
not overwrite its sequence number.
The patch also adds a module parameter to revert this behaviour if needed.
By setting rtw_monitor_overwrite_seqnum to 1, sequence numbers will again
be set by the driver/device. This may by useful if user-space relied on
the driver/device to set sequence numbers.
This patch was tested using an Alfa AWUS036ACH.
When CONFIG_NET_NS is enabled one would assume the device can be
moved into another namespace. Currently it will fail with:
command failed: Operation not supported (-95)
There's a check if the kernel is between 2.6.38 and 3.0.0
before it adds the netns flag to wiphy->flags.
With this commit it will always add the netns flag when
CONFIG_NET_NS is enabled.
Signed-off-by: Daan van Gorkum <djvg@djvg.net>
Fixes: https://github.com/aircrack-ng/rtl8812au/issues/518
Updated with all kernels from https://www.kernel.org/
Kernel mainline and last stable version fetch from kernel.org instead of hardcode it.
Fixed minor warnings on Travis configuration.
Simplified URL extraction
Removed GCC-6 from build matrix.
Reintroduced GCC-7. Updated to 7.5
Added cchache to improve build times.
A bug exists in this driver that deadlocks the kernel when a net interface
managed by this driver is deleted. iwd uses the driver name
(specifically, if the driver name is "rtl88*") to figure out if it needs
to enable a workaround for this problem.
Commit fa35b99b42 changed driver name to
"88XXau" for seemingly no reason, causing this driver to be unusable for
a lot of users.
This commit changes the driver name back.
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>