Fix build compatibility with Linux 7.1 and 7.2

DI
3d ago
+80-32

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.