Commit 79ad70c6 authored by Nicolas Escande's avatar Nicolas Escande Committed by Kalle Valo

wifi: ath11k: Remove scan_flags union from struct scan_req_params

Now that we do not use scan_flags directly with WMI_SCAN_XXX macros anymore but
only the bitfield scan_f_xxx, lets remove the scan_flags & the underlying union.

This will prevent further problems as some entries in the scan_f_xxx bitfield
don't match their corresponding WMI_SCAN_XXX flags as seen in [1]

[1] https://lore.kernel.org/all/20231127180559.1696041-1-nico.escande@gmail.com/Signed-off-by: default avatarNicolas Escande <nico.escande@gmail.com>
Acked-by: default avatarJeff Johnson <quic_jjohnson@quicinc.com>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://msgid.link/20240209113536.266822-3-nico.escande@gmail.com
parent 64493a7f
...@@ -3394,8 +3394,6 @@ struct scan_req_params { ...@@ -3394,8 +3394,6 @@ struct scan_req_params {
u32 idle_time; u32 idle_time;
u32 max_scan_time; u32 max_scan_time;
u32 probe_delay; u32 probe_delay;
union {
struct {
u32 scan_f_passive:1, u32 scan_f_passive:1,
scan_f_bcast_probe:1, scan_f_bcast_probe:1,
scan_f_cck_rates:1, scan_f_cck_rates:1,
...@@ -3421,9 +3419,6 @@ struct scan_req_params { ...@@ -3421,9 +3419,6 @@ struct scan_req_params {
scan_f_2ghz:1, scan_f_2ghz:1,
scan_f_5ghz:1, scan_f_5ghz:1,
scan_f_80mhz:1; scan_f_80mhz:1;
};
u32 scan_flags;
};
enum scan_dwelltime_adaptive_mode adaptive_dwell_time_mode; enum scan_dwelltime_adaptive_mode adaptive_dwell_time_mode;
u32 burst_duration; u32 burst_duration;
u32 num_chan; u32 num_chan;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment