** 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
  
- [ Test case ]
+ [ 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 ]
  
-  The semantic of the cookie creation is inverted since kernel 7.3 so, if
- the fix is not correct some side effect like cancelling a
- remain_on_channel request would be discarded by the radio, as it won't
- find the cookie from wpa_supplicant.
+ 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.

** 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
  
  [ 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. 
+ 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                  
+ 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
+   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.
+   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.
+   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.

** 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
  
  [ 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.
+ 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.

** 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.
+ 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.
+ 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.
+ 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.

-- 
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