wifi: ath11k: fix layout of scan_flags in struct scan_req_params
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 4 repliesIn review
- v11 patch 6 repliesSuperseded
Changes in v2 from the cover letter
- remove explicit uses of scan_flags with WMI_SCAN_XXX flags
- remove the underlying union of scan_flags to only leave the bitfield
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | wifi: ath11k: Do not directly use scan_flags in struct scan_req_paramsdrivers/ drivers/ | +4 | 2 replies | |
| 2/2 | wifi: ath11k: Remove scan_flags union from struct scan_req_paramsdrivers/ | +25 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Jeff Johnson |
|---|---|
| 1/2 | A-b |
| 2/2 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] wifi: ath11k: fix layout of scan_flags in struct scan_req_params
As previously discussed in [1] we have a mismatch in struct scan_req_params between the bitfield scan_f_xxx & the scan_flags when used with WMI_SCAN_XXX values.
To fix the issue & prevent it from happenning again lets stop using & remove scan_flags altogether in the driver and only use the bitfield instead. That way even if the bitfield doesn't match the WMI_SCAN_XXX flags, the right value will still be sent through the wmi command to the firmware (see ath11k_wmi_copy_scan_event_cntrl_flags).
Questions:
- In the same rationale shouldn't we remove scan_events from the same struct ?
- The same goes for ath12k, should I send a seperate patch or respin a v3 with similar patches for ath12k ?
[1] https://lore.kernel.org/all/[email protected]/
v2:
- remove explicit uses of scan_flags with WMI_SCAN_XXX flags
- remove the underlying union of scan_flags to only leave the bitfield
Nicolas Escande (2):
wifi: ath11k: Do not directly use scan_flags in struct scan_req_params
wifi: ath11k: remove scan_flags union from struct scan_req_params
drivers/net/wireless/ath/ath11k/mac.c | 6 +-- drivers/net/wireless/ath/ath11k/wmi.c | 2 +- drivers/net/wireless/ath/ath11k/wmi.h | 55 ++++++++++++--------------- 3 files changed, 29 insertions(+), 34 deletions(-)
Signature · 1 line
2.43.0