1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-12-28 00:58:39 +00:00
Commit Graph

195 Commits

Author SHA1 Message Date
H. Nestler
ec2a4ea34e fix(warning): In function '_lok_one_shot_8821c':
hal/phydm/halrf/rtl8821c/halrf_iqk_8821c.c:1201: warning: comparison is always false due to limited range of data type

delay_count 50.000 needs 32 bit. 8 bit are to short.
2024-11-04 21:02:16 +01:00
H. Nestler
35d70e71ce fix(warnin): In function 'halrf_tssi_trigger':
hal/phydm/halrf/halrf.c:3798: warning: comparison is always true due to limited range of data type
2024-11-04 21:00:44 +01:00
H. Nestler
51deb0f7f4 fix(warnings): const to long
on 32 bit systems with 32 bit as default for type long
2024-11-04 20:59:19 +01:00
H. Nestler
0da653935f fix (warning): In function 'phydm_cfo_tracking':
hal/phydm/phydm_cfotracking.c:490: warning: comparison is always false due to limited range of data type
2024-11-04 20:57:22 +01:00
H. Nestler
7e36dc322a fix (style): missing end of file 2024-11-04 20:52:22 +01:00
morrownr
2dce552dc6 v2: fix too many cores being used on low mem systems 2024-09-27 16:00:47 -05:00
morrownr
b009a8ea84 fix too many cores being used on low mem systems 2024-09-27 13:48:09 -05:00
morrownr
1597dfeda6
Merge pull request #158 from pocketbroadcast/patch-1
Fixing Makefile to respect out of tree builds as documented at https://docs.kernel.org/kbuild/modules.html
2024-08-21 15:08:50 -05:00
pocketbroadcast
9edb1b026c
Fixing Makefile to respect out of tree builds as documented at https://docs.kernel.org/kbuild/modules.html
This change fixes an empty module target when invoked by `make -C <path_to_kernel_src> M=$PWD` due to missing `export CONFIG_RTL8821CU = m`.

Since kbuild only respects `obj-y := ...` for in-tree and `obj-m := ...` for out of tree builds, it is safe to assume obj-m to be the default as this mimicks existing behavior, still retaining the option to build in-tree if needed.
2024-08-21 20:44:39 +02:00
morrownr
58c0f9e69d support for kernel 6.11 2024-08-03 11:54:09 -05:00
morrownr
3eacc28b72 remove incorrect vid/pid - 0bda:c82c id for rtl8822cu 2024-05-03 15:10:25 -05:00
morrownr
4f6004af4c minor update 2024-03-29 13:38:13 -05:00
morrownr
cd74de9bbf update docs 2024-03-28 13:25:22 -05:00
morrownr
0b505f382e
Merge pull request #143 from 5kft/kernel-v6.9-changes
changes for kernel v6.9
2024-03-25 19:11:09 -05:00
5kft
035a2e8963
changes for kernel v6.9 2024-03-24 15:17:21 -07:00
morrownr
01cc261363 fix UBSAN: array-index-out-of-bounds 2024-03-18 14:44:05 -05:00
morrownr
0d5a059cf5 minor update to docs 2024-03-18 14:42:41 -05:00
morrownr
5b39398e2d
Merge pull request #140 from 5kft/kernel-v6.8-changes
changes for kernel v6.8
2024-01-21 13:39:18 -06:00
5kft
43111f1972
changes for kernel v6.8 2024-01-21 08:10:45 -08:00
morrownr
a41ef7cabd update dkms.conf 2023-12-22 11:29:42 -06:00
morrownr
eb52ece926 fix support for kernel 6.7 2023-11-26 13:04:38 -06:00
morrownr
2b48616df2 update docs and scripts 2023-11-25 15:25:49 -06:00
morrownr
07bc2163cc support for kernel 6.7 2023-11-25 14:10:47 -06:00
morrownr
fdbb62727c
Merge pull request #120 from radxa-pkg/master
Update comments with UTF-8 encoding
2023-10-16 10:38:46 -05:00
ZHANG Yuntian
f227602610 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.

Reencode Chinese in UTF-8.

Signed-off-by: ZHANG Yuntian <yt@radxa.com>
2023-10-16 14:23:06 +08:00
morrownr
8e300c0885 update to scripts and docs 2023-09-25 10:04:26 -05:00
morrownr
de36dfeff8 update docs 2023-09-24 14:59:23 -05:00
morrownr
0f5a50f919 fix (again) the -am_NOT_a_driver problem- 2023-09-24 14:58:10 -05:00
morrownr
f6d4598290 fix (again) the -am_NOT_a_driver problem- 2023-09-10 15:39:08 -05:00
morrownr
9e2772540f fix am_NOT_a_driver problem - appears to be specific to Android 2023-08-07 14:42:23 -05:00
morrownr
b1c0c661dc remove am_NOT_a_driver 2023-08-02 16:43:06 -05:00
morrownr
6b5630bc37 fix previous fix 2023-08-02 13:22:05 -05:00
morrownr
f640decf5d delete a statement that is not needed 2023-08-02 12:58:05 -05:00
morrownr
104e31a320 Merge branch 'main' of https://github.com/morrownr/8821cu-20210916 2023-07-22 17:17:22 -05:00
morrownr
6d2f7286f3 update docs 2023-07-22 17:16:58 -05:00
morrownr
4efe62365c
Merge pull request #101 from how2flow/dev
fix: os_dep/osdep_service.c: add VFS namespace
2023-07-18 23:05:21 -05:00
Steve Jeong
1644c2d576 os_dep/osdep_service.c: improve code
Signed-off-by: Steve Jeong <steve@how2flow.net>
2023-07-19 10:28:58 +09:00
Steve Jeong
d6a07317b4 fix: os_dep/osdep_service.c: add VFS namespace
Error in Rockchip v20230524 kernel 5.10.y

ERROR: modpost: module 8821cu uses symbol kernel_write from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module 8821cu uses symbol kernel_read from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
ERROR: modpost: module 8821cu uses symbol filp_open from namespace VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver, but does not import it.
make[1]: *** [scripts/Makefile.modpost:168: modules-only.symvers] Error 1
make[1]: *** Deleting file 'modules-only.symvers'
make: *** [Makefile:1524: modules] Error 2
make: *** Waiting for unfinished jobs....

Signed-off-by: Steve Jeong <steve@how2flow.net>
2023-07-18 16:27:24 +09:00
morrownr
e31f613ffa
Merge pull request #96 from 5kft/kernel-v6.5-rc1
update for kernel v6.5 (tdls_mgmt)
2023-07-13 14:15:04 -05:00
5kft
4132c6bf8d
update for kernel v6.5 (tdls_mgmt) 2023-07-10 20:34:42 -07:00
morrownr
dc9ee6c6a8 Merge branch 'main' of https://github.com/morrownr/8821cu-20210916 2023-06-24 13:00:21 -05:00
morrownr
2a62812f49 show kernel 6.4 support and other minor updates 2023-06-24 13:00:13 -05:00
morrownr
e49409f22c
Merge pull request #86 from tdebrouw/access_private_commands
Fix support for SIOCDEVPRIVATE ioctls from 5.15.0 onwards.
2023-04-27 13:10:33 -05:00
Theo Debrouwere
d83ae81d01 Fix support for SIOCDEVPRIVATE ioctls from 5.15.0 onwards.
From 5.15.0 onwards, SIOCDEVPRIVATE has been split into a seperate function.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=b9067f5dc4a07c8e24e01a1b277c6722d91be39e

This patch fixes support for the new SIOCDEVPRIVATE handling.

Notes:
In order to access these commands, CONFIG_MP_INCLUDED must be set to 'y'.
They can then be accessed with the correct ioctl.
Example application to do this can be found here:
https://github.com/lfelten/rtl_iw_priv
2023-04-27 11:27:01 +02:00
Nick
83d0da5eae
Merge pull request #85 from tdebrouw/roaming_fix
Bugfix: fix active roaming capability & improve roaming comments.
2023-04-24 12:19:52 -05:00
Theo Debrouwere
d239b9105d Improve roaming documentation.
Improve existing documentation.
Add documentation to undocumented variables.
2023-04-24 18:53:18 +02:00
Theo Debrouwere
154cdb82e3 Bugfix: fix active roaming capability.
According to the makefile, it should be possible to keep roaming active:
Set #bit2 of CONFIG_ROAMING_FLAG, like this:
CONFIG_ROAMING_FLAG = 0x7

But, when trying out this option, it appears that active roaming is not
working as expected. It only changes if the old AP is expired.

This patch fixes this behaviour, but does NOT set BIT2.

Reason for failure:
The linked_status_chk function runs every 2 seconds.
There is an internal roaming flag (need_to_roam) that is set when the
current signal is below a threshold AND if it hasn't been set during a
predefined time. Setting the flag also updates the last_time_roaming timestamp.
If either of these fails, then the flag (need_to_roam) is cleared.

This causes a race condition:
1) Threshold is too low + long last_time_roaming
   -> flag is set + last_time_roaming is updated.
2) Chipset starts scanning / surveying (this takes > 3 sec)
3) Conditions are rechecked: threshold is still to low, but last_time_roaming
is now too recent -> flag is cleared.
4) Survey finishes, but since the flag is cleared, roaming will be ignored.

The solution in this patch:
Once the flag (need_to_roam) has been set, it should only be cleared if the
signal strength is above the threshold. It should not be cleared based on the
last_time_roaming timestamp.
2023-04-24 18:43:19 +02:00
morrownr
963666429f improve Fedora secure boot info 2023-04-09 11:55:55 -05:00
morrownr
81da785e6b improve secure boot info 2023-04-09 11:21:04 -05:00
morrownr
3bf1133e22 update secure boot info for Fedora 2023-04-06 10:42:16 -05:00