1
0
mirror of https://github.com/morrownr/8821cu-20210916.git synced 2024-09-27 19:37:32 +00:00
Commit Graph

160 Commits

Author SHA1 Message Date
Steve Jeong
b9ba026425 fix: os_dep/osdep_service.c: Add a checking kernel version (>=5.4) for MODULE_IMPORT_NS
[error 1] 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....

[error 2] build error in kernel 4.19.y

type defaults to 'int' in declaration of 'MODULE_IMPORT_NS' [-Werror=implicit-int]
...

Signed-off-by: Steve Jeong <steve@how2flow.net>
2023-08-03 14:48:11 +09: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
morrownr
80781de376 Log spam with start_addr, buffer_size 2023-03-19 07:26:10 -05:00
morrownr
5a39cefab3 cleanup 2023-03-14 07:57:22 -05:00
morrownr
0da76ce08f update README 2023-03-13 22:25:08 -05:00
morrownr
dff921fddc Merge branch 'main' of https://github.com/morrownr/8821cu-20210916 2023-03-13 21:36:53 -05:00
morrownr
7e5bc383ae kernel 6.3 support 2023-03-13 21:36:18 -05:00
Nick
69c903b75b
Merge pull request #73 from paralin/fix-powerpc64
Fix build on PowerPC64
2023-03-06 00:16:15 -06:00
morrownr
bd2400d313 cleanup minor issues 2023-03-05 13:57:17 -06:00
Giulio Benetti
89b12d21fc Fix build on PowerPC64
On PowerPC64 architecture get_ra() is also present in Linux but with a
different name causing build to fail. To fix this let's rename local
get_ra() to rtl_get_ra().

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
2023-03-02 23:43:19 -08:00
morrownr
66ef382e8e remove alpha 2 codes document 2023-03-03 00:23:24 -06:00
Nick
1db021baf8
Merge pull request #72 from SeanMollet/main
Add a suitable .gitignore file
2023-03-02 16:20:54 -06:00
Sean Mollet
d47960f785 Add a suitable .gitignore file 2023-03-02 13:23:00 +00:00
morrownr
ab61abf36e minor updates 2023-02-28 21:32:19 -06:00
morrownr
8d3d61775c minor updates 2023-02-27 14:31:22 -06:00
morrownr
e75a84e4c0 various script and documentation updates 2023-02-27 10:50:37 -06:00
morrownr
5e901d1615 minor updates 2023-02-24 13:37:18 -06:00
morrownr
e1bfaddd09 updating FAQ 2023-02-24 11:22:54 -06:00
morrownr
8c45ce6dae cleanup code and minor mods to docs 2023-02-23 14:29:27 -06:00
morrownr
589ec21474 minor updates 2023-02-19 14:03:53 -06:00
Nick
4784915bfa
Merge pull request #68 from markussmiskis/patch-1
Update README.md for Arch Linux
2023-02-17 00:02:49 -06:00
Markuss Mišķis
e8b7a36015
Update README.md for Arch Linux
While installing, I got an error: 

A required package is not installed.
Please install the following package: iw
Once the package is installed, please run "sudo ./install-driver.sh"

I believe this should be noted in the README
2023-02-17 00:06:11 +02:00
morrownr
ec6f765dfb reduce ACS reporting in log 2023-02-16 12:25:30 -06:00
morrownr
4600c193ab improve Secure Boot support 2023-02-15 00:05:13 -06:00
morrownr
22f2cb7aa5 fix some editing errors 2023-02-12 17:36:39 -06:00
morrownr
3b54625995 updating documentation 2023-02-12 15:49:18 -06:00
morrownr
4478ac0915 update README 2023-02-11 12:39:38 -06:00
morrownr
7d16a68513 minor updates 2023-02-09 23:34:54 -06:00
morrownr
5f3bbbf007 various minor updates 2023-02-09 09:11:23 -06:00
morrownr
6447ce7ea7 minor update to docs 2023-02-07 01:10:16 -06:00
morrownr
8cb0ee1701 minor cosmetic fix 2023-01-31 19:58:00 -06:00
morrownr
0ae6deca87 pre-release cleanup 2023-01-30 12:09:56 -06:00
morrownr
2e46b96a12 documentation cleanup 2023-01-27 15:45:56 -06:00
morrownr
1932852d61 documentation cleanup 2023-01-27 14:20:15 -06:00
morrownr
984ab7bd1f documentation update 2023-01-27 08:18:05 -06:00
morrownr
ff428849fc documentation cleanup 2023-01-26 23:47:52 -06:00
morrownr
46c418e960 minor cosmetic issues discovered during testing 2023-01-26 14:46:43 -06:00