rtl8812au
rtl8812au copied to clipboard
(Solved) Unable to build on Arch with kernel 5.19.2
rtl8812au/os_dep/linux/ioctl_cfg80211.c: At top level:
rtl8812au/os_dep/linux/ioctl_cfg80211.c:10133: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]
10133 | .stop_ap = cfg80211_rtw_stop_ap,
| ^~~~~~~~~~~~~~~~~~~~
rtl8812au/os_dep/linux/ioctl_cfg80211.c:10133:20: note: (near initialization for ‘rtw_cfg80211_ops.stop_ap’)
rtl8812au/os_dep/linux/ioctl_cfg80211.c:10219:24: error: initialization of ‘int (*)(struct wiphy *, struct wireless_dev *, unsigned int, struct cfg80211_chan_def *)’ from incompatible pointer type ‘int (*)(struct wiphy *, struct wireless_dev *, struct cfg80211_chan_def *)’ [-Werror=incompatible-pointer-types]
10219 | .get_channel = cfg80211_rtw_get_channel,
| ^~~~~~~~~~~~~~~~~~~~~~~~
rtl8812au/os_dep/linux/ioctl_cfg80211.c:10219:24: note: (near initialization for ‘rtw_cfg80211_ops.get_channel’)
rtl8812au/os_dep/linux/ioctl_cfg80211.c: In function ‘rtw_wdev_unregister’:
rtl8812au/os_dep/linux/ioctl_cfg80211.c:10398:17: error: ‘struct wireless_dev’ has no member named current_bss’
10398 | if (wdev->current_bss) {
| ^~
OS: Arch Linux x86_64 Kernel: 5.19.2 Device: RTL8821AU
It worked perfectly with kernel 5.19.1
Same issue with morrownr/8821au-20210708 (this issue).
Will be fixed by #992
Same issue on my Arch Linux Install. Tried installing with morrownr's version. Didn't work. Any ideas when this patch will be merged into this repo?
You can use the branch from #992 until wait for merge.
You can use the branch from #992 until wait for merge.
How do I do that?
This issue is resolved now.
I have fixed this bug ,it work for me .
you can change static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev, unsigned int link_id) to static int cfg80211_rtw_stop_ap(struct wiphy *wiphy, struct net_device *ndev) in /linux/drivers/net/wireless/realtek/rtl8723ds/os_dep/linux/ioctl_cfg80211.c