diff options
| author | Abhinav Kumar <abhikuma@codeaurora.org> | 2018-04-06 17:18:52 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-04-13 03:59:17 -0700 |
| commit | fc269547a2cf316d38e9501c87141a28a7a93e9c (patch) | |
| tree | af58c9a90a3293f41565398549111a6b7e3afae6 | |
| parent | 49bd44bba091dbe342cc5478efbc4e2383d5aab7 (diff) | |
qcacmn: Add new ini to set min delay btw scan and reason bit-mask
Add ini "min_delay_btw_scans" to set minimum duration allowed between
two consecutive roam scans. Fw should not allow roam scan if duration
between two consecutive roam scan is less than min_delay_btw_scan.
Add ini "roam_trigger_reason_bitmask" to set default value of
bit-mask containing roam_trigger_reasons for which
min_delay_btw_scans constraints should be apply.
Pass value of min_delay_btw_scans and roam_trigger_reason_bitmask
to fw.
Change-Id: I2397467a13a720e763d1181d8cd50c571f861366
CRs-Fixed: 2221785
| -rw-r--r-- | wmi/inc/wmi_unified_param.h | 4 | ||||
| -rw-r--r-- | wmi/src/wmi_unified_tlv.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/wmi/inc/wmi_unified_param.h b/wmi/inc/wmi_unified_param.h index d4a1157e78f2..59d27d433fc9 100644 --- a/wmi/inc/wmi_unified_param.h +++ b/wmi/inc/wmi_unified_param.h @@ -1869,6 +1869,8 @@ struct roam_fils_params { * @prefer_5ghz: prefer select 5G candidate * @roam_rssi_cat_gap: gap for every category bucket * @select_5ghz_margin: select 5 Ghz margin + * @min_delay_btw_roam_scans: Delay btw two roam scans + * @roam_trigger_reason_bitmask: Roam reason bitmark * @krk: KRK * @btk: BTK * @reassoc_failure_timeout: reassoc failure timeout @@ -1907,6 +1909,8 @@ struct roam_offload_scan_params { bool fw_okc; bool fw_pmksa_cache; #endif + uint32_t min_delay_btw_roam_scans; + uint32_t roam_trigger_reason_bitmask; bool is_ese_assoc; bool is_11r_assoc; struct mobility_domain_info mdid; diff --git a/wmi/src/wmi_unified_tlv.c b/wmi/src/wmi_unified_tlv.c index aa0c6b7ff9c6..a485a729ba39 100644 --- a/wmi/src/wmi_unified_tlv.c +++ b/wmi/src/wmi_unified_tlv.c @@ -4800,6 +4800,10 @@ QDF_STATUS send_roam_scan_offload_mode_cmd_tlv(wmi_unified_t wmi_handle, WMITLV_GET_STRUCT_TLVLEN (wmi_roam_scan_mode_fixed_param)); + roam_scan_mode_fp->min_delay_roam_trigger_reason_bitmask = + roam_req->roam_trigger_reason_bitmask; + roam_scan_mode_fp->min_delay_btw_scans = + WMI_SEC_TO_MSEC(roam_req->min_delay_btw_roam_scans); roam_scan_mode_fp->roam_scan_mode = roam_req->mode; roam_scan_mode_fp->vdev_id = roam_req->vdev_id; if (roam_req->mode == (WMI_ROAM_SCAN_MODE_NONE | |
