diederikdehaas / rtl8812AU

Realtek 8812AU USB WiFi driver
Other
475 stars 177 forks source link

Compile fails on Linux kernel 5.9.0-5 #130

Open dbrazziel opened 3 years ago

dbrazziel commented 3 years ago

Structure 'sha256_state' changed to 'rtw_sha256_state', causing rtwsecurity.c compile failure. Also, ioctl

Also: /usr/src/rtl8812AU/os_dep/linux/ioctl_cfg80211.c:6548:3: error: ?struct cfg80211_ops? has no member named ?mgmt_frame_register? 6548 | .mgmt_frame_register = cfg80211_rtw_mgmt_frame_register, | ^~~~~~~

I built a patch for the 'rtw_security.h' and 'rtw_security.c' files and they compiled successfully. Having trouble drilling down on the 'ioctl_cfg80211.c' issue. Attached are the two patch files and the make log from the last make error.

rtw_security.c.patch0.txt make.log.txt

salemboot commented 3 years ago

I got a little farther with ioctl_cfg80211.c (below).
rtw_proc.c changed in 5.6~5.8... line 80 proc_create_data() went from using file_operations to proc_ops. I'm still working on this.

/ os_dep/linux/ioctl_cfg80211.c line 7459 /

if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))

struct mgmt_frame_regs *upd)

else

    u16 frame_type,  bool reg)

endif

{ u16 frame_type; /temporary fix/

/ s_dep/linux/ioctl_cfg80211.c line 9892 /

if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 8, 0))

.update_mgmt_frame_registrations = cfg80211_rtw_mgmt_frame_register,

else

.mgmt_frame_register = cfg80211_rtw_mgmt_frame_register,

endif