16 Commits

Author SHA1 Message Date
Jookia
2906e202e8 Fix version check for change_beacon it should be 6.7 2023-11-14 22:18:15 +11:00
Jookia
31100220eb Fix cfg80211_rtw_change_beacon on kernel 6.5 2023-11-13 23:26:58 +11:00
Larry Finger
47ce045cd8 rtl8723ds: Fix warning in do_div
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2023-08-01 12:38:20 -05:00
Larry Finger
42fdd132e9 rtl8723ds: Check ssids in cfg80211_rtw_scan()
This should be the fix for Issue #36

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2023-04-12 12:56:08 -05:00
Larry Finger
1a8f8b1557 rtl8723ds: Clean up some Coverity and Smatch warnings
The includes turning CONGIG_MP_INCLUDED off.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2023-02-03 19:28:56 -06:00
Giulio Benetti
aaf31f36eb rtl8723ds: get_ra() exists only on PowerPC
In PowerPc Linux only get_ra() exists[0] and conflicts with local get_ra()
that has a completely different purpose. So let's rename local get_ra()
to wifi_get_ra() to make it different from Linux's get_ra().

[0]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/asm/disassemble.h?h=v6.1-rc7#n49

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
2022-12-01 15:24:08 +01:00
Larry Finger
5ab2d3f385 rtl8723ds: Fix builds for kernels through 6.1
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2022-11-04 10:41:53 -05:00
Alexandre Ghiti
ce40065dc4 rtl8723ds: Fix compilation errors on a 5.19 kernel
Fix the following errors that happen on a 5.19 kernel:

error: initialization of ‘int (*)(struct wiphy *, struct net_device *, unsigned int)’
       from incompatible pointer type ‘int (*)(struct wiphy *, struct net_device *)’
       [-Werror=incompatible-pointer-types]
 6821 | .stop_ap = cfg80211_rtw_stop_ap,

error: ‘struct wireless_dev’ has no member named ‘current_bss’
 7052 | if (wdev->current_bss) {

Signed-off-by: Alexandre Ghiti <alexandre.ghiti@canonical.com>
2022-10-18 15:26:13 +02:00
Icenowy Zheng
9afd800400 fix hang on 5.14
Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
2021-07-24 18:40:13 +08:00
Larry Finger
80af87ac76 rtl8723ds: Update cfg80211_rtw_mgmt_frame_register for kernel 5.8
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-09-18 18:49:41 -05:00
Larry Finger
c54996f3a7 rtl8723ds: Fix builds for kernel 5.8+
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2020-09-17 11:19:09 -05:00
John-Eric Kamps
17db5978f6 rtl8723ds: Fix fallthrough annotation
Signed-off-by: John-Eric Kamps <john-eric.kamps@honeywell.com>
2020-04-11 08:51:45 +02:00
Larry Finger
3030a734d7 rtl8723ds: Update source for recent API changes
The source will now compile on kernels up to 4.20.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2018-11-29 11:43:26 -06:00
Larry Finger
57b8112292 rtl8723ds: Fix NULL dereference error
The driver is crashing with the following:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
...
PC is at cfg80211_scan_done+0x28/0x64 [cfg80211]
LR is at cfg80211_rtw_scan+0x724/0x800 [8723ds]

The faulty statement is
		cfg80211_scan_done(request, 0);
Sending a simple integer as the second argument of cfg80211_scan_done()
is only valid for kernel 4.7 and earlier.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-10-14 20:32:18 -05:00
Larry Finger
eb9c1aa49f rtl8723ds: Fix builds for kernel 4.14
Signed-off-by: Alexander Kaplan <alex@nextthing.co>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-10-14 09:31:11 -05:00
Larry Finger
e87533e664 rtl8723ds: Initial commit of files
This repository contains the Realtek driver V5.1.1.5_20523.20161209_BTCOEX20161208-1212.

At inclusion, the only changes from the Realtek version were to fix any compile
warnings or errors. With these changes, the driver builds on kernels through
4.11.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2017-04-25 10:13:42 -05:00