Skip to content

cfg80211: cookie became an input parameter in 7.3 - #48

Merged
adeepn merged 1 commit into
tune_for_jethubfrom
fix/cookie-input-param
Sep 1, 2026
Merged

cfg80211: cookie became an input parameter in 7.3#48
adeepn merged 1 commit into
tune_for_jethubfrom
fix/cookie-input-param

Conversation

@adeepn

@adeepn adeepn commented Aug 24, 2026

Copy link
Copy Markdown
Member

linux-next converted the remain_on_channel / mgmt_tx cookie from a u64 * out-param to a u64 value: cfg80211 pre-assigns it (996753804410) and the ops signatures changed (914781c72813). The driver now echoes the passed value on 7.3+ instead of generating its own (generation stays gated for older kernels); probe_peer / tx_control_port from the same series are not implemented here.

Verified: ioctl_cfg80211.o builds clean against next-20260824 with the version forced to 7.3.0 (new branch) and against v7.2 (old branch).

Note: next still reports LINUX_VERSION_CODE 7.2.0, so the next cells stay red until v7.3-rc1 bumps the version — then they go green by themselves, same as the 7.2 rx_addr case (#38).

cfg80211 now pre-assigns the cookie and passes it by value to
remain_on_channel and mgmt_tx (996753804410 + 914781c72813 in
wireless-next); the driver must report that value back instead of
generating its own. Gate at KERNEL_VERSION(7, 3, 0).

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the driver’s cfg80211 callback implementations to match the Linux 7.3+ API change where the remain-on-channel and mgmt-tx “cookie” is passed by value (pre-assigned by cfg80211) instead of being returned via a u64 * out-parameter, while preserving the legacy behavior for older kernels.

Changes:

  • Adjust cfg80211_rtw_remain_on_channel() signature for 7.3+ to accept a u64 cookie input and use it consistently, keeping cookie generation only for <7.3.
  • Adjust cfg80211_rtw_mgmt_tx() signature for 7.3+ to accept a u64 cookie input and stop generating cookies on 7.3+.
  • Maintain existing version-gated compatibility logic (including the 7.2 rx_addr parameter handling).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@adeepn
adeepn merged commit f4263fc into tune_for_jethub Sep 1, 2026
56 of 65 checks passed
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

Successfully merging this pull request may close these issues.

2 participants