Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatable with 6.0.2 Kernel #193

Open
NanzeRT opened this issue Oct 18, 2022 · 6 comments
Open

Incompatable with 6.0.2 Kernel #193

NanzeRT opened this issue Oct 18, 2022 · 6 comments

Comments

@NanzeRT
Copy link

NanzeRT commented Oct 18, 2022

New Kernel changed API so driver wouldn't compile on it.

make output:

make[1]: Entering directory '/usr/lib/modules/6.0.2-zen1-1-zen/build'
  CC [M]  /home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.o
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_ch_switch_notify’:
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:420:9: error: too few arguments to function ‘cfg80211_ch_switch_notify’
  420 |         cfg80211_ch_switch_notify(adapter->pnetdev, &chdef);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/nanzert/Repos/Other/rtl8821CU/include/osdep_service_linux.h:93,
                 from /home/nanzert/Repos/Other/rtl8821CU/include/osdep_service.h:50,
                 from /home/nanzert/Repos/Other/rtl8821CU/include/drv_types.h:27,
                 from /home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:17:
./include/net/cfg80211.h:8261:6: note: declared here
 8261 | void cfg80211_ch_switch_notify(struct net_device *dev,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_cfg80211_indicate_connect’:
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:1088:26: error: ‘struct cfg80211_roam_info’ has no member named ‘bssid’
 1088 |                 roam_info.bssid = cur_network->network.MacAddress;
      |                          ^
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘cfg80211_rtw_scan’:
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:2867:33: warning: the comparison will always evaluate as ‘true’ for the address of ‘ssid’ will never be NULL [-Waddress]
 2867 |                 if (ssids->ssid != NULL
      |                                 ^~
./include/net/cfg80211.h:2357:12: note: ‘ssid’ declared here
 2357 |         u8 ssid[IEEE80211_MAX_SSID_LEN];
      |            ^~~~
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: At top level:
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: 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]
 9416 |         .stop_ap = cfg80211_rtw_stop_ap,
      |                    ^~~~~~~~~~~~~~~~~~~~
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9416:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
/home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.c:9682:17: error: ‘struct wireless_dev’ has no member named ‘current_bss’
 9682 |         if (wdev->current_bss) {
      |                 ^~
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:249: /home/nanzert/Repos/Other/rtl8821CU/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:1849: /home/nanzert/Repos/Other/rtl8821CU] Error 2
make[1]: Leaving directory '/usr/lib/modules/6.0.2-zen1-1-zen/build'
make: *** [Makefile:2217: modules] Error 2
@nullptroma
Copy link

Same problem

@kelebek333
Copy link
Contributor

You can use that. https://github.com/morrownr/8821cu-20210118

@nullptroma
Copy link

@kelebek333
Copy link
Contributor

@nullptroma
Copy link

It works! Thx

@breisig
Copy link

breisig commented Nov 4, 2022

same problem. Can we get this fixed in the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants