lwfinger / rtw8852cu

GNU General Public License v2.0
22 stars 13 forks source link

REGULATORY_IGNORE_STALE_KICKOFF error #3

Closed aquilarubra closed 10 months ago

aquilarubra commented 10 months ago

I got back my dongle and tested the new fix. It won't compile.

usr/src/rtw8852cu/os_dep/linux/wifi_regd.c: In function ‘rtw_regd_init’: /usr/src/rtw8852cu/os_dep/linux/wifi_regd.c:1271:36: error: ‘REGULATORY_IGNORE_STALE_KICKOFF’ undeclared (first use in this function) 1271 | wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF; | ^~~~~~~ /usr/src/rtw8852cu/os_dep/linux/wifi_regd.c:1271:36: note: each undeclared identifier is reported only once for each function it appears in make[2]: [scripts/Makefile.build:252: /usr/src/rtw8852cu/os_dep/linux/wifi_regd.o] Error 1 make[1]: [Makefile:2032: /usr/src/rtw8852cu] Error 2 make: *** [Makefile:705: modules] Error 2

aquilarubra commented 10 months ago

os_dep/linux/wifi_regd.c

Comment out this and it compiles.

/*

if (LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0))

    wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;

endif

*/

I saw it commented out in other similar drivers.

aquilarubra commented 10 months ago

By the way, 6Ghz still does not work.

lwfinger commented 10 months ago

That I cannot help you with as I have no hardware.