Jump to content

[Armbian build PR] - Fixup kernel 6.3.13 build - stale kickoff removal in wireless regulator API


Recommended Posts

Posted

Description

The kernel build fails with:

[🐳|πŸ”¨]   drivers/net/wireless/rtl88x2bu/os_dep/linux/wifi_regd.c: In function 'rtw_regd_init':
[🐳|πŸ”¨]   drivers/net/wireless/rtl88x2bu/os_dep/linux/wifi_regd.c:409:36: error: 'REGULATORY_IGNORE_STALE_KICKOFF' undeclared (first use in this function)
[🐳|πŸ”¨]     409 |         wiphy->regulatory_flags |= REGULATORY_IGNORE_STALE_KICKOFF;
[🐳|πŸ”¨]         |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[🐳|πŸ”¨]   drivers/net/wireless/rtl88x2bu/os_dep/linux/wifi_regd.c:409:36: note: each undeclared identifier is reported only once for each function it appears in
[🐳|πŸ”¨]   make[6]: *** [scripts/Makefile.build:252: drivers/net/wireless/rtl88x2bu/os_dep/linux/wifi_regd.o] Error 1

note that this bug only affect >= 6.3.13 < 6.4 and >=6.5-rc1 as of the 16th of July 2023.

Cope with the fix in stable 6.3.13 bf353116d1bf and 6.5-rc1 e8c2af660ba0 "wifi: cfg80211: fix regulatory disconnect with OCB/NAN". That is the removal of REGULATORY_IGNORE_STALE_KICKOFF from the wireless regulator internal API to fix any driver that allowed OCB/NAN.

This code will need to be expanded once and if 6.4 include the above fixup.

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Jira reference number [AR-9999]

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Please also note any relevant details for your test configuration.

  • [X] Β ./compile.sh kernel BOARD=helios64 BRANCH=edge RELEASE=bookworm BUILD_ONLY="kernel" KERNEL_CONFIGURE=no BUILD_KSRC=no

No runtime tested. My hardware is currently in a test so I cannot reboot in the new kernel. Also I do not have this wireless device so I cannot test this driver code works correctly either way.

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [X] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

<
Γ—
Γ—
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines