Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
qcacmn: Save roam_trigger_reason and roam_ap_info params
Browse files Browse the repository at this point in the history
Save BTM BSS termination timeout value and BTM MBO assoc
retry timeout value coming from FW through
wmi_roam_trigger_reason_tlv_param tlv.

Save Blacklist reason, Source of adding AP to BL, timestamp
which indicates the time when AP added to blacklist and
Original timeout value in milli seconds when AP added to BL
coming from FW through wmi_roam_ap_info_tlv_param.

Change-Id: I0a328814e77c7d2452672f43c855d2c1b8646b66
CRs-Fixed: 2744255
  • Loading branch information
Abhinav Kumar authored and snandini committed Aug 3, 2020
1 parent a5eb27e commit 4c39495
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions wmi/inc/wmi_unified_param.h
Original file line number Diff line number Diff line change
Expand Up @@ -7587,13 +7587,19 @@ struct wmi_roam_scan_stats_res {
* @validity_interval: Preferred candidate list validity interval in ms
* @candidate_list_count: Number of candidates in BTM request.
* @btm_resp_status: Status code of the BTM response.
* @btm_bss_termination_timeout: BTM BSS termination timeout value
* in milli seconds
* @btm_mbo_assoc_retry_timeout: BTM MBO assoc retry timeout value in
* milli seconds
*/
struct wmi_roam_btm_trigger_data {
uint32_t btm_request_mode;
uint32_t disassoc_timer;
uint32_t validity_interval;
uint32_t candidate_list_count;
uint32_t btm_resp_status;
uint32_t btm_bss_termination_timeout;
uint32_t btm_mbo_assoc_retry_timeout;
};

/**
Expand Down Expand Up @@ -7637,6 +7643,12 @@ struct wmi_roam_deauth_trigger_data {
* @rssi_score: AP RSSI score
* @total_score: Total score of the candidate AP.
* @etp: Estimated throughput value of the AP in Mbps
* @bl_reason: Blacklist reason
* @bl_source: Source of adding AP to BL
* @bl_timestamp:This timestamp indicates the time when AP added
* to blacklist.
* @bl_original_timeout: Original timeout value in milli seconds
* when AP added to BL
*/
struct wmi_roam_candidate_info {
uint32_t timestamp;
Expand All @@ -7649,6 +7661,10 @@ struct wmi_roam_candidate_info {
uint32_t rssi_score;
uint32_t total_score;
uint32_t etp;
uint32_t bl_reason;
uint32_t bl_source;
uint32_t bl_timestamp;
uint32_t bl_original_timeout;
};

/**
Expand Down
8 changes: 8 additions & 0 deletions wmi/src/wmi_unified_tlv.c
Original file line number Diff line number Diff line change
Expand Up @@ -12798,6 +12798,10 @@ extract_roam_trigger_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf,
src_data->candidate_list_count;
trig->btm_trig_data.btm_resp_status =
src_data->btm_response_status_code;
trig->btm_trig_data.btm_bss_termination_timeout =
src_data->btm_bss_termination_timeout;
trig->btm_trig_data.btm_mbo_assoc_retry_timeout =
src_data->btm_mbo_assoc_retry_timeout;
return QDF_STATUS_SUCCESS;

case WMI_ROAM_TRIGGER_REASON_BSS_LOAD:
Expand Down Expand Up @@ -12863,6 +12867,10 @@ extract_roam_scan_ap_stats_tlv(wmi_unified_t wmi_handle, void *evt_buf,
dst->cu_score = src->cu_score;
dst->total_score = src->total_score;
dst->timestamp = src->timestamp;
dst->bl_reason = src->bl_reason;
dst->bl_source = src->bl_source;
dst->bl_timestamp = src->bl_timestamp;
dst->bl_original_timeout = src->bl_original_timeout;

src++;
dst++;
Expand Down

0 comments on commit 4c39495

Please sign in to comment.