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

Compile fails on Linux kernel 5.9.0-5 #130

Open
dbrazziel opened this issue Jan 2, 2021 · 1 comment
Open

Compile fails on Linux kernel 5.9.0-5 #130

dbrazziel opened this issue Jan 2, 2021 · 1 comment

Comments

@dbrazziel
Copy link

Structure 'sha256_state' changed to 'rtw_sha256_state', causing rtw_security.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
Copy link

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

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

2 participants