Commit Graph

82 Commits

Author SHA1 Message Date
Paolo Sabatino
2cdfbde9e6 Patch for kernel 6.16
Downstream pull request from @amazingfate https://github.com/armbian/rtl8723ds/pull/2
2025-10-02 18:46:03 +02:00
Igor
86e3c4d220 Update README.md 2025-05-14 23:07:22 +02:00
Igor
66b7540c05 Merge pull request #1 from domin144/fix_6.15
Compilation fixes for kernels 6.13, 6.14 and 6.15
2025-05-14 23:03:02 +02:00
Dominik Wójt
b01f1ad2eb fix build for kernel 6.15 2025-05-10 16:57:10 +02:00
amazingfate
ac64712f67 fix build for kernel 6.14 2025-02-16 17:07:30 +08:00
amazingfate
4b8d758f42 fix build for kernel 6.13
.set_monitor_channel has been updated since v6.13:
9c4f830927
2024-12-23 19:35:12 +08:00
lwfinger
52e593e8c8 Merge pull request #45 from Jookia/fix-kernel67
Fix version check for change_beacon it should be 6.7
2023-11-14 15:34:33 -06:00
Jookia
2906e202e8 Fix version check for change_beacon it should be 6.7 2023-11-14 22:18:15 +11:00
lwfinger
d89bde02d0 Merge pull request #43 from Jookia/fix-kernel65
Fix cfg80211_rtw_change_beacon on kernel 6.5
2023-11-13 11:57:40 -06: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
lwfinger
c65bc55a36 Merge pull request #38 from radxa-pkg/master
Support building as a Debian DKMS package
2023-05-05 11:36:23 -05:00
ZHANG Yuntian
339d6c4d89 rtl8723ds: Update comments with UTF-8 encoding
When packaging the source as a Debian DKMS package, lintian will warn
national-encoding due to Big5 encoded characters in comments.

Update to English comments from other files when available, and
reencode Chinese in UTF-8.

Signed-off-by: ZHANG Yuntian <yt@radxa.com>
2023-05-05 14:35:35 +08: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
ec85dc6b9f rtl8723ds: Add COPTING file
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
2023-02-05 14:03:40 -06: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
lwfinger
a638cc8639 Merge pull request #32 from giuliobenetti/fix/powerpc
rtl8723ds: get_ra() exists only on PowerPC
2022-12-01 12:27:01 -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
lwfinger
3f1d7b6dc7 Merge pull request #31 from johnkeeping/rtnl-locking
rtl8723ds: fix rtnl_lock handling
2022-11-30 09:26:02 -06:00
lwfinger
38231d5832 Merge pull request #30 from johnkeeping/sta-info-alignment
rtl8723ds: fix sta_info alignment
2022-11-29 19:35:49 -06:00
John Keeping
dac75d70bc rtl8723ds: simplify locking in rtw_change_ifname()
As the comment says, rtnl_lock is acquired by the caller of this
function.  In fact this is not specific to 2.6.26 and later but has
always been the case, so checking lock state is unnecessary and we can
just call (un)register_netdevice() knowing that rtnl_lock is held.
2022-11-29 18:41:01 +00:00
John Keeping
1eca486544 rtl8723ds: fix locking for (un)register
rtnl_is_locked() checks whether the lock is currently held by any task,
not specifically by _this_ task so it is wrong to use it in the
(un)register path.

In both of these cases, examining the call stack shows that there is no
way for rtnl_lock to be taken by the task running these functions, so
remove the checks.

Further, (un)register_netdev() have existed since the beginning of Git
history so there's no reason for a version check here and we can always
call the function that takes the lock itself and should never call the
version which expects rtnl_lock to be held.
2022-11-29 18:41:01 +00:00
John Keeping
255c827ec1 rtl8723ds: fix sta_info alignment
Allocation function return memory that is properly aligned for most data
types, there is no need to manually align the buffer later.

On 64-bit systems this is particularly wrong as struct sta_info should
be 8-byte aligned so this calculation is guaranteed to misalign the
structure.  If the architecture requires aligned access, this leads to
an alignment fault and panic.

Signed-off-by: John Keeping <john@metanate.com>
2022-11-29 18:39:10 +00:00
lwfinger
fa06cb893c Merge pull request #29 from giuliobenetti/fix/user-extra-flags-override
Makefile: move 'EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)' at the end of E…
2022-11-16 09:49:28 -06:00
Giulio Benetti
769a1943cb Makefile: move 'EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)' at the end of EXTRA_FLAGS assignment
At the moment USER_EXTRA_CFLAGS can't override local Makfile EXTRA_CFLAGS
since it's assigned at the beginning of the Makefile. For example it's not
possible to undefine the hardcoded CONFIG_LITTLE_ENDIAN and this doesn't
allow to build these modules for big endian architectures. So let's move
the assignment of USER_EXTRA_CFLAGS to EXTRA_CFLAGS after the last
EXTRA_CFLAGS assignment.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
2022-11-16 16:08:21 +01:00