Commit 194b8ea1 authored by Pradeep Kumar Chitrapu's avatar Pradeep Kumar Chitrapu Committed by Kalle Valo

ath11k: Add 6G scan dwell time parameter in scan request command

Add 6G scan active and passive dwell time parameter to scan request.
Signed-off-by: default avatarPradeep Kumar Chitrapu <pradeepc@codeaurora.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200603001724.12161-7-pradeepc@codeaurora.org
parent d387503d
...@@ -1899,6 +1899,8 @@ void ath11k_wmi_start_scan_init(struct ath11k *ar, ...@@ -1899,6 +1899,8 @@ void ath11k_wmi_start_scan_init(struct ath11k *ar,
arg->dwell_time_active = 50; arg->dwell_time_active = 50;
arg->dwell_time_active_2g = 0; arg->dwell_time_active_2g = 0;
arg->dwell_time_passive = 150; arg->dwell_time_passive = 150;
arg->dwell_time_active_6g = 40;
arg->dwell_time_passive_6g = 30;
arg->min_rest_time = 50; arg->min_rest_time = 50;
arg->max_rest_time = 500; arg->max_rest_time = 500;
arg->repeat_probe_time = 0; arg->repeat_probe_time = 0;
...@@ -2045,6 +2047,8 @@ int ath11k_wmi_send_scan_start_cmd(struct ath11k *ar, ...@@ -2045,6 +2047,8 @@ int ath11k_wmi_send_scan_start_cmd(struct ath11k *ar,
cmd->dwell_time_active = params->dwell_time_active; cmd->dwell_time_active = params->dwell_time_active;
cmd->dwell_time_active_2g = params->dwell_time_active_2g; cmd->dwell_time_active_2g = params->dwell_time_active_2g;
cmd->dwell_time_passive = params->dwell_time_passive; cmd->dwell_time_passive = params->dwell_time_passive;
cmd->dwell_time_active_6g = params->dwell_time_active_6g;
cmd->dwell_time_passive_6g = params->dwell_time_passive_6g;
cmd->min_rest_time = params->min_rest_time; cmd->min_rest_time = params->min_rest_time;
cmd->max_rest_time = params->max_rest_time; cmd->max_rest_time = params->max_rest_time;
cmd->repeat_probe_time = params->repeat_probe_time; cmd->repeat_probe_time = params->repeat_probe_time;
......
...@@ -3061,6 +3061,9 @@ struct wmi_start_scan_cmd { ...@@ -3061,6 +3061,9 @@ struct wmi_start_scan_cmd {
u32 num_vendor_oui; u32 num_vendor_oui;
u32 scan_ctrl_flags_ext; u32 scan_ctrl_flags_ext;
u32 dwell_time_active_2g; u32 dwell_time_active_2g;
u32 dwell_time_active_6g;
u32 dwell_time_passive_6g;
u32 scan_start_offset;
} __packed; } __packed;
#define WMI_SCAN_FLAG_PASSIVE 0x1 #define WMI_SCAN_FLAG_PASSIVE 0x1
...@@ -3127,6 +3130,8 @@ struct scan_req_params { ...@@ -3127,6 +3130,8 @@ struct scan_req_params {
u32 dwell_time_active; u32 dwell_time_active;
u32 dwell_time_active_2g; u32 dwell_time_active_2g;
u32 dwell_time_passive; u32 dwell_time_passive;
u32 dwell_time_active_6g;
u32 dwell_time_passive_6g;
u32 min_rest_time; u32 min_rest_time;
u32 max_rest_time; u32 max_rest_time;
u32 repeat_probe_time; u32 repeat_probe_time;
......
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