Commit graph

529 commits

Author SHA1 Message Date
Larry Finger
24b960c5c0 rtl8188eu: Change some locking around rtw_get_sec_ie()
Routine rtw_get_sec_ie() appears to suffer from a bug triggered under
unusual circumstances. This bug is exposed by first sending a deauthentication
frame and at the same time sending a much larger frame. After doing some debugging
the cause of the lockup of the CPU was that while rtw_get_sec_ie() attempts to
read the beacon frame sent by the router/AP, the size of the beacon is changed
since it is a reference and not a copy. By having a "rogue" beacon frame being
very large which isn't normal and not considered in the design, the computer
was stuck in an endless CPU lockup.

Routine translate_scan(), which calls rtw_get_sec_ie() is protected by a
spinlock. Add that spinlock around other calls of the routine.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-07-21 08:52:58 -05:00
Larry Finger
5f636ea7dd rtl8188eu: Change for loop counter to int to avoid wrap-around
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-07-18 08:52:20 -05:00
Larry Finger
e43ffc5f23 rtl8188eu: Fix infinite loop in rtw_get_wps_ie()
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-07-16 13:48:04 -05:00
Larry Finger
30901e601a rtl8188eu: Update control_ap
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-04-17 13:55:27 -05:00
Larry Finger
e6757b349b rtl8188eu: Add hostapd 2.9 with rtl871x driver added
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-04-17 13:31:50 -05:00
Larry Finger
775137f273 rtl8188eu: Fix build for API changes in kernel 5.17
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-02-03 10:21:57 -06:00
Larry Finger
5cff05afbb rtl8188eu: Fix build under kernel 5.17
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-01-24 17:02:53 -06:00
Larry Finger
9f723a04cb rtl8188eu: Fix Makefile to create directory for module
If a kernel is being used that generates no drivers in the
/lib/modules/$(KVER)/kernel/drivers/net/wireless directory, the installation
will fail. The fix is to generate that directory if it is not present.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-01-10 13:01:21 -06:00
Larry Finger
0572d04e67 rtl8188eu: Minor change to control_ap
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-11-11 16:41:09 -06:00
Larry Finger
a69d6361ef rtl8188eu: Update hostapd to version 2.9
These changed update the built-in version of hostapd from v0.8 to 2.9.
The rtl871xdrv driver comes from git://github.com/pritambaral/hostapd-rtl871xdrv.git
whose included patch has been applied to the standard source code.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-10-28 20:23:27 -05:00
Larry Finger
373d98d270 rtl8188eu: Fix builds for kernel 5.15
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-10-28 11:44:11 -05:00
Larry Finger
5fbebcb35b rtl8188eu: Update README.md
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-08-10 13:18:33 -05:00
Larry Finger
0ff1f31cc5 rtl8188eu: Fix trailing spaces
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2021-07-23 15:22:16 -05:00
lwfinger
4e056cdd71
Merge pull request #370 from Nacho-meteor/master
feat: add Debian packaging support
2021-05-15 16:49:18 -05:00
刘鑫
ae5be09bbc feat: add driver package to build DEB package support in Debian DKMS format
Log: add Debian packaging support
2021-05-15 16:42:04 +08:00
lwfinger
b4d6cb1d6f
Merge pull request #368 from finn0/fix/typo
docs: Fix typos in README.md
2021-05-01 12:14:49 -05:00
Vipul Kumar
ac9cb491cb
docs: Fix typos in README.md
Fix spell of following words in README.md file:
  - likelihood (liklihood -> likelihood);
  - address (adress -> address).
2021-04-30 05:39:24 +00:00
lwfinger
b02c92bc92
Merge pull request #350 from sim0nx/addsupportfor_edimax_EW_7811Un_v2
Add support for Edimax EW-7811Un V2
2020-12-01 12:09:25 -06:00
Georges Toth
6672b42ef3 Add support for Edimax EW-7811Un V2 2020-12-01 16:08:14 +01:00
lwfinger
c9280272bc
Merge pull request #340 from matteofacchinetti/master
rtl8188eu: Allow use of KERNEL_SRC variable when defined
2020-09-10 10:45:42 -05:00
Matteo Facchinetti
7fd7c18fa9 rtl8188eu: Allow use of KERNEL_SRC variable when defined
By this way I can compile this module
in both environment (KERNEL_SRC / KSRC)

Signed-off-by: Matteo Facchinetti <matteo.facchinetti@sirius-es.it>
2020-09-10 16:20:41 +02:00
Larry Finger
979baf93cd rtl8188eu: Fix build on kernel 5.8+
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-08-29 14:40:17 -05:00
Larry Finger
db29c33e18 rtl8188eu: Add 0bda:f179 device
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-08-11 14:43:03 -05:00
Larry Finger
0924dc8fe0 rtl8188eu: Allow a little extra size for rtw_hostapd_ioctl() packets
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-06-12 14:26:38 -05:00
Larry Finger
71af295db5 rtl8188eu: Fix IOCTL length rejection
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-06-10 14:07:55 -05:00
Larry Finger
ac42434b2a rtl8188eu: Fix gcc 10 warnings
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-05-16 14:20:37 -05:00
Larry Finger
8257e13060 rtl8188eu: Allow kernel source different than running version
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-05-10 12:05:40 -05:00
lwfinger
1ea03fb6de
Merge pull request #323 from runlevel5/patch-2
[network-manager] Add how to address no SSID scanning
2020-04-07 20:10:49 -05:00
Trung Lê
5b226d0eb5
Add how to address no SSID scanning of network-manager
The issue was reported upstream at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/issues/158
2020-04-08 10:54:12 +10:00
lwfinger
20e1989da6
Merge pull request #321 from kovi/asusn10
Add VID&PID for Asus N10 Nano B1
2020-03-21 12:41:54 -05:00
kovi
0368bc2763 add: usb id for asus nano 10 2020-03-21 17:26:53 +00:00
lwfinger
e90178b656
Merge pull request #316 from fiadosau/patch-1
Update usb_intf.c
2020-03-03 18:55:30 -06:00
fiadosau
2141f244c3
Update usb_intf.c 2020-03-03 23:59:05 +03:00
Larry Finger
02614d02dc rtl8188eu: Fix potential data overrun
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-02-09 12:22:25 -06:00
lwfinger
d69b1de23c
Merge pull request #311 from runlevel5/patch-1
Fix the powerpc kernel header path
2020-02-02 11:46:07 -06:00
Trung Lê
ffa3a92b60
Fix the powerpc kernel header path 2020-02-03 02:23:59 +11:00
Larry Finger
9418d75148 Merge branch 'master' of http://github.com/lwfinger/rtl8188eu 2020-01-28 09:44:15 -06:00
Larry Finger
0d30dd1ae5 rtl8188eu: Remove all mention of dkms. See Issue #306 at GitHub.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-01-28 09:43:38 -06:00
lwfinger
ddefa1bd78
Merge pull request #308 from Rizwan-Hasan/patch-1
Update README.md
2020-01-24 09:22:11 -06:00
Rizwan Hasan
e24467bdbc
Update README.md 2020-01-24 21:09:07 +06:00
lwfinger
16d8b7a0d4
Merge pull request #304 from hadess/wip/hadess/add-led-disable-option
rtl8188eu: Add rtw_led_enable module parameter
2020-01-06 15:25:14 -06:00
Bastien Nocera
627a577e5c rtl8188eu: Add rtw_led_enable module parameter
Make it possible to disable the LED, as it can be pretty annoying
depending on where it's located.
2020-01-06 21:30:05 +01:00
Larry Finger
4930848feb rtl8188eu: Update README.md and Makefile
I will no longer support the download of zip versions for the source.
whenever there is any change in the source, the user must redo the
entire download and unpacking. This sequence is a lot more complicated
that a simple 'git pull', thus the user skips that step and I have to
deal with complaints about a problem I have already fixed. Now, the
make operation will fail with an error.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-11-04 15:29:27 -06:00
Larry Finger
b9b537aa25 rtl8188eu: Add TP-Link TL-WN727N v5.21 to device tables
This info provided by kakash1hatake.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-10-16 11:13:05 -05:00
Larry Finger
126d786bd4 rtl8188eu: Fix fallthrough statements
In kernel 5.4.0-rc3, the kernel includes define a "fallthrough" macro,
which breaks a couple of the statements in the driver. Use __fallthrough__
instead.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-10-16 11:10:48 -05:00
Larry Finger
49b933a1b2 Merge branch 'master' of http://github.com/lwfinger/rtl8188eu 2019-09-28 13:17:39 -05:00
Larry Finger
ea8530e2b3 Merge branch 'master' of http://github.com/lwfinger/rtl8188eu 2019-09-28 13:17:09 -05:00
Larry Finger
6d521a7687 Merge branch 'master' of http://github.com/lwfinger/rtl8188eu 2019-09-28 13:14:49 -05:00
Larry Finger
2525cdee47 rtl8188eu: Fis fall-through warning
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-09-28 13:14:03 -05:00
Larry Finger
95a4b1ec29 rtl8188eu: Fix duplicate test
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2019-09-26 12:59:31 -05:00