Skip to content

Fix build compatibility with Linux 7.1 and 7.2 - #96

Open
dingsen-Greenhorn wants to merge 5 commits into
sysprog21:mainfrom
dingsen-Greenhorn:pr/linux-7.2-compat
Open

dingsen-Greenhorn wants to merge 5 commits into
sysprog21:mainfrom
dingsen-Greenhorn:pr/linux-7.2-compat

Conversation

@dingsen-Greenhorn

@dingsen-Greenhorn dingsen-Greenhorn commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Replace removed strncpy() calls in denylist handling with bounded copies.
  • Preserve the original allocation pointer while parsing the denylist.
  • Adapt cfg80211 callbacks and station notifications to wireless_dev on Linux 7.1+, retaining the net_device path for older kernels.

Validation

  • make KDIR=/lib/modules/7.2.12-402.asahi.fc45.aarch64+16k/build — passed.
  • git diff --check — passed.
  • The older-kernel compatibility paths were not compiled locally.

Summary by cubic

Fixes build compatibility with Linux 7.1 and 7.2 so vwifi compiles against the newer kernel APIs.

  • Replaces removed strncpy() calls in denylist handling with bounded copies and fails closed when the scratch buffer can't be allocated.
  • Preserves the original allocation pointer while parsing the denylist.
  • Adapts cfg80211 callbacks and station notifications to the wireless_dev API on Linux 7.1+, retaining the net_device path for older kernels.
  • Reformats vwifi.c with clang-format-18.

Written for commit 9e8e785. Summary will update on new commits.

View guided diff

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed

Reply to a comment to ask cubic a question or push back. It learns from your replies.

View guided diff | Re-trigger cubic

Comment thread vwifi.c Resolved

@cubic-dev-ai cubic-dev-ai Bot 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.

All reported issues were addressed across 1 file

Requires human review: Auto-approval blocked because this review re-detected 1 unresolved issue already reported by Cubic.

View guided diff | Re-trigger cubic

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.

1 participant