Fix build compatibility with Linux 7.1 and 7.2
DI
3d ago+80+80+01234567890123456789-32-32-01234567890123456789
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_devon Linux 7.1+, retaining thenet_devicepath 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_devAPI on Linux 7.1+, retaining thenet_devicepath for older kernels. - Reformats
vwifi.cwithclang-format-18.