** Description changed:

  SRU Justification
  
  [ Impact ]
  
   In Linux v7.3-rc1 commit 914781c72813  ("wifi: cfg80211: convert cookie 
output to input parameter")
   changed the semantics of the cookie and with that the variable types of 
remain_on_channel and mgmt_tx and makes the module impossible to be compiled 
from Linux v7.3-rc1 commit 914781c72813 onwards.
  
  To address this build failure importing the upstream fix is needed.
  
  Fixing Resolute as well in anticipation of HWE Kernels.
  
  [ Fix ]
  
   Import upstream commit
  
https://source.mnt.re/reform/qcacld2/-/commit/2c001c25748e9e7922b31d5038ff5c4e3f195619
  
  The commit hasn't been yet merged on master, but Debian already merged
  the upstream commit in here https://salsa.debian.org/debian/ezurio-
  qcacld-2.0-dkms/-/commit/ce31fda2ed44df70ab735bd60143be728b92fec6
  
  [ Test plan ]
  
  Follow the following steps:
  
  - Install the correct series package from
  https://launchpad.net/~alessiofaina/+archive/ubuntu/20261123-dkms-fixes/
  
  - Check the new package correctly installs in the system
  
  - Check the installed version number is the correct one
  
  - Verify the compiled qcacld2 module file exists and inspect its module 
metadata (verifies successful build and vermagic match without requiring 
hardware):
     $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/qcacld2.ko* | head -n1)
     $ modinfo "$MOD"
     Expected result: modinfo outputs valid module metadata with vermagic 
matching $(uname -r) and no errors.
  
  - (OPTIONAL - On systems with supported Qualcomm/Ezurio Wi-Fi hardware 
attached) Load the driver, verify the wireless interface appears, and check 
dmesg for any cfg80211 warnings or oopses:
     $ sudo modprobe qcacld2
     $ lsmod | grep qcacld2
     $ iw dev
     $ sudo iw dev <iface> scan | head -n 20
     $ dmesg -T | grep -iE "qcacld|cfg80211|call trace|bug"
     Expected result: Module loads cleanly (exit 0), wireless interface 
initializes and scans without errors, and no kernel warnings or call traces 
appear in dmesg.
  Without the HW module installed, the module will fail to load with the 
following message
  == modprobe: ERROR: could not insert 'qcacld2': No such device ==
  
  [ What could go wrong ]
  
  Linux v7.3 (commit 914781c72813, "wifi: cfg80211: convert cookie output to 
input parameter") changed how the cookie works in the remain_on_channel and 
mgmt_tx cfg80211 callbacks. cfg80211 now creates the cookie and passes it to 
the driver.
  Before this, the driver created it and handed it back to cfg80211.
  The fix guards the new behaviour with LINUX_VERSION_CODE >= 7.3.0, so 7.3 
uses the new path and older kernels (including the Resolute 7.0 GA kernel) keep 
the old one.
  
  If the fix is wrong on 7.3+, the cookie the driver stores could differ from 
the one cfg80211/userspace (wpa_supplicant, iw) holds. Possible symptoms:
  - cancel_remain_on_channel requests are silently ignored because no queued 
ROC request has a matching cookie, so the radio stays off-channel until the ROC 
duration expires
  - mgmt_tx TX-status reports (cfg80211_mgmt_tx_status) carry the wrong cookie, 
so wpa_supplicant cannot match action frame acks. This would break P2P / Wi-Fi 
Direct negotiation, GAS/ANQP and similar off-channel exchanges.
  - frames sent internally by the driver (hdd_sendactionframe) now use a cookie 
made by the driver (the frame address). A collision with a cfg80211-generated 
cookie could cause a status report to be matched to the wrong request.
  
  Regressions would only affect systems that have this DKMS package
  installed and Ezurio/Qualcomm qcacld-2.0 hardware. Basic station mode
  (scan/connect) does not use these callbacks and should not be affected.
+ 
+ Resolute ships the 7.0 GA kernel and will receive HWE kernel 7.3.
+ Without this SRU the DKMS module fails to build from 7.1 onwards, so
+ users with Ezurio/Qualcomm qcacld-2.0 hardware would lose Wi-Fi after moving
+ to an HWE kernel. The SRU adds three patches, one for each kernel step.
+ Almost all changes are guarded by LINUX_VERSION_CODE checks.
+ 
+ - Resolute 7.1 patch: station and key callbacks now take a wireless_dev 
instead of a net_device.
+     A regression could break association, key handling or SoftAP client 
tracking, or in the worst case cause a NULL dereference (oops) if a wdev has no 
netdev.                                                                  
+ - Resolute 7.2 patch: remain_on_channel gets an rx_addr argument, which the 
driver ignores.
+     The kernel removed 5/10 MHz channel support, so sub_20_channel_width no 
longer has any effect on 7.2+.

** Description changed:

  SRU Justification
  
  [ Impact ]
  
   In Linux v7.3-rc1 commit 914781c72813  ("wifi: cfg80211: convert cookie 
output to input parameter")
   changed the semantics of the cookie and with that the variable types of 
remain_on_channel and mgmt_tx and makes the module impossible to be compiled 
from Linux v7.3-rc1 commit 914781c72813 onwards.
  
  To address this build failure importing the upstream fix is needed.
  
  Fixing Resolute as well in anticipation of HWE Kernels.
  
  [ Fix ]
  
   Import upstream commit
  
https://source.mnt.re/reform/qcacld2/-/commit/2c001c25748e9e7922b31d5038ff5c4e3f195619
  
  The commit hasn't been yet merged on master, but Debian already merged
  the upstream commit in here https://salsa.debian.org/debian/ezurio-
  qcacld-2.0-dkms/-/commit/ce31fda2ed44df70ab735bd60143be728b92fec6
  
  [ Test plan ]
  
  Follow the following steps:
  
  - Install the correct series package from
  https://launchpad.net/~alessiofaina/+archive/ubuntu/20261123-dkms-fixes/
  
  - Check the new package correctly installs in the system
  
  - Check the installed version number is the correct one
  
  - Verify the compiled qcacld2 module file exists and inspect its module 
metadata (verifies successful build and vermagic match without requiring 
hardware):
     $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/qcacld2.ko* | head -n1)
     $ modinfo "$MOD"
     Expected result: modinfo outputs valid module metadata with vermagic 
matching $(uname -r) and no errors.
  
  - (OPTIONAL - On systems with supported Qualcomm/Ezurio Wi-Fi hardware 
attached) Load the driver, verify the wireless interface appears, and check 
dmesg for any cfg80211 warnings or oopses:
     $ sudo modprobe qcacld2
     $ lsmod | grep qcacld2
     $ iw dev
     $ sudo iw dev <iface> scan | head -n 20
     $ dmesg -T | grep -iE "qcacld|cfg80211|call trace|bug"
     Expected result: Module loads cleanly (exit 0), wireless interface 
initializes and scans without errors, and no kernel warnings or call traces 
appear in dmesg.
  Without the HW module installed, the module will fail to load with the 
following message
  == modprobe: ERROR: could not insert 'qcacld2': No such device ==
  
  [ What could go wrong ]
  
  Linux v7.3 (commit 914781c72813, "wifi: cfg80211: convert cookie output to 
input parameter") changed how the cookie works in the remain_on_channel and 
mgmt_tx cfg80211 callbacks. cfg80211 now creates the cookie and passes it to 
the driver.
  Before this, the driver created it and handed it back to cfg80211.
  The fix guards the new behaviour with LINUX_VERSION_CODE >= 7.3.0, so 7.3 
uses the new path and older kernels (including the Resolute 7.0 GA kernel) keep 
the old one.
  
  If the fix is wrong on 7.3+, the cookie the driver stores could differ from 
the one cfg80211/userspace (wpa_supplicant, iw) holds. Possible symptoms:
  - cancel_remain_on_channel requests are silently ignored because no queued 
ROC request has a matching cookie, so the radio stays off-channel until the ROC 
duration expires
  - mgmt_tx TX-status reports (cfg80211_mgmt_tx_status) carry the wrong cookie, 
so wpa_supplicant cannot match action frame acks. This would break P2P / Wi-Fi 
Direct negotiation, GAS/ANQP and similar off-channel exchanges.
  - frames sent internally by the driver (hdd_sendactionframe) now use a cookie 
made by the driver (the frame address). A collision with a cfg80211-generated 
cookie could cause a status report to be matched to the wrong request.
  
  Regressions would only affect systems that have this DKMS package
  installed and Ezurio/Qualcomm qcacld-2.0 hardware. Basic station mode
  (scan/connect) does not use these callbacks and should not be affected.
  
  Resolute ships the 7.0 GA kernel and will receive HWE kernel 7.3.
- Without this SRU the DKMS module fails to build from 7.1 onwards, so
- users with Ezurio/Qualcomm qcacld-2.0 hardware would lose Wi-Fi after moving
- to an HWE kernel. The SRU adds three patches, one for each kernel step.
+ Without this SRU the DKMS module fails to build from 7.1 onwards, so users 
with Ezurio/Qualcomm qcacld-2.0 hardware would lose Wi-Fi after moving to an 
HWE kernel. The SRU adds three patches, one for each kernel step.
  Almost all changes are guarded by LINUX_VERSION_CODE checks.
  
  - Resolute 7.1 patch: station and key callbacks now take a wireless_dev 
instead of a net_device.
-     A regression could break association, key handling or SoftAP client 
tracking, or in the worst case cause a NULL dereference (oops) if a wdev has no 
netdev.                                                                  
+     A regression could break association, key handling or SoftAP client 
tracking, or in the worst case cause a NULL dereference (oops) if a wdev has no 
netdev.
  - Resolute 7.2 patch: remain_on_channel gets an rx_addr argument, which the 
driver ignores.
-     The kernel removed 5/10 MHz channel support, so sub_20_channel_width no 
longer has any effect on 7.2+.
+     The kernel removed 5/10 MHz channel support, so sub_20_channel_width no 
longer has any effect on 7.2+.

** Description changed:

  SRU Justification
  
  [ Impact ]
  
   In Linux v7.3-rc1 commit 914781c72813  ("wifi: cfg80211: convert cookie 
output to input parameter")
   changed the semantics of the cookie and with that the variable types of 
remain_on_channel and mgmt_tx and makes the module impossible to be compiled 
from Linux v7.3-rc1 commit 914781c72813 onwards.
  
  To address this build failure importing the upstream fix is needed.
  
  Fixing Resolute as well in anticipation of HWE Kernels.
  
  [ Fix ]
  
   Import upstream commit
  
https://source.mnt.re/reform/qcacld2/-/commit/2c001c25748e9e7922b31d5038ff5c4e3f195619
  
  The commit hasn't been yet merged on master, but Debian already merged
  the upstream commit in here https://salsa.debian.org/debian/ezurio-
  qcacld-2.0-dkms/-/commit/ce31fda2ed44df70ab735bd60143be728b92fec6
  
  [ Test plan ]
  
  Follow the following steps:
  
  - Install the correct series package from
  https://launchpad.net/~alessiofaina/+archive/ubuntu/20261123-dkms-fixes/
  
  - Check the new package correctly installs in the system
  
  - Check the installed version number is the correct one
  
  - Verify the compiled qcacld2 module file exists and inspect its module 
metadata (verifies successful build and vermagic match without requiring 
hardware):
     $ MOD=$(ls /lib/modules/$(uname -r)/updates/dkms/qcacld2.ko* | head -n1)
     $ modinfo "$MOD"
     Expected result: modinfo outputs valid module metadata with vermagic 
matching $(uname -r) and no errors.
  
  - (OPTIONAL - On systems with supported Qualcomm/Ezurio Wi-Fi hardware 
attached) Load the driver, verify the wireless interface appears, and check 
dmesg for any cfg80211 warnings or oopses:
     $ sudo modprobe qcacld2
     $ lsmod | grep qcacld2
     $ iw dev
     $ sudo iw dev <iface> scan | head -n 20
     $ dmesg -T | grep -iE "qcacld|cfg80211|call trace|bug"
     Expected result: Module loads cleanly (exit 0), wireless interface 
initializes and scans without errors, and no kernel warnings or call traces 
appear in dmesg.
  Without the HW module installed, the module will fail to load with the 
following message
  == modprobe: ERROR: could not insert 'qcacld2': No such device ==
  
  [ What could go wrong ]
  
  Linux v7.3 (commit 914781c72813, "wifi: cfg80211: convert cookie output to 
input parameter") changed how the cookie works in the remain_on_channel and 
mgmt_tx cfg80211 callbacks. cfg80211 now creates the cookie and passes it to 
the driver.
  Before this, the driver created it and handed it back to cfg80211.
  The fix guards the new behaviour with LINUX_VERSION_CODE >= 7.3.0, so 7.3 
uses the new path and older kernels (including the Resolute 7.0 GA kernel) keep 
the old one.
  
  If the fix is wrong on 7.3+, the cookie the driver stores could differ from 
the one cfg80211/userspace (wpa_supplicant, iw) holds. Possible symptoms:
  - cancel_remain_on_channel requests are silently ignored because no queued 
ROC request has a matching cookie, so the radio stays off-channel until the ROC 
duration expires
  - mgmt_tx TX-status reports (cfg80211_mgmt_tx_status) carry the wrong cookie, 
so wpa_supplicant cannot match action frame acks. This would break P2P / Wi-Fi 
Direct negotiation, GAS/ANQP and similar off-channel exchanges.
  - frames sent internally by the driver (hdd_sendactionframe) now use a cookie 
made by the driver (the frame address). A collision with a cfg80211-generated 
cookie could cause a status report to be matched to the wrong request.
  
  Regressions would only affect systems that have this DKMS package
  installed and Ezurio/Qualcomm qcacld-2.0 hardware. Basic station mode
  (scan/connect) does not use these callbacks and should not be affected.
  
- Resolute ships the 7.0 GA kernel and will receive HWE kernel 7.3.
+ Resolute ships the 7.0 LTS kernel and will receive HWE kernel 7.3.
  Without this SRU the DKMS module fails to build from 7.1 onwards, so users 
with Ezurio/Qualcomm qcacld-2.0 hardware would lose Wi-Fi after moving to an 
HWE kernel. The SRU adds three patches, one for each kernel step.
  Almost all changes are guarded by LINUX_VERSION_CODE checks.
  
  - Resolute 7.1 patch: station and key callbacks now take a wireless_dev 
instead of a net_device.
      A regression could break association, key handling or SoftAP client 
tracking, or in the worst case cause a NULL dereference (oops) if a wdev has no 
netdev.
  - Resolute 7.2 patch: remain_on_channel gets an rx_addr argument, which the 
driver ignores.
      The kernel removed 5/10 MHz channel support, so sub_20_channel_width no 
longer has any effect on 7.2+.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2173882

Title:
  ezurio-qcacld-2.0-dkms fails to build in kernel 7.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ezurio-qcacld-2.0-dkms/+bug/2173882/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to