From 9b01e384057e5c19c32a52443c2613e5a21d25d4 Mon Sep 17 00:00:00 2001 From: Amruta Kulkarni Date: Thu, 27 Feb 2020 17:06:34 -0800 Subject: [PATCH] qcacmn: Add support to handle assoc reject based on rssi When AP rejects assoc request based on poor rssi host will put the AP in blacklist mgr list, only when rssi value improves by threshold value,should the STA try to connect to AP. Change-Id: Ie40d29cbb63f337f8560c08290300f575c0e2b72 CRs-Fixed: 2632022 --- wmi/inc/wmi_unified_roam_param.h | 3 +++ wmi/src/wmi_unified_roam_tlv.c | 1 + 2 files changed, 4 insertions(+) diff --git a/wmi/inc/wmi_unified_roam_param.h b/wmi/inc/wmi_unified_roam_param.h index 9da790355e96..472fd880e5cc 100644 --- a/wmi/inc/wmi_unified_roam_param.h +++ b/wmi/inc/wmi_unified_roam_param.h @@ -200,6 +200,8 @@ struct wmi_mawc_roam_params { * AP's, in units of db * @num_disallowed_aps: How many APs the target should maintain in its LCA * list + * @delta_rssi: (dB units) when AB in RSSI blacklist improved by at least + * delta_rssi,it will be removed from blacklist * * This structure holds all the key parameters related to * initial connection and roaming connections. @@ -222,6 +224,7 @@ struct roam_scan_filter_params { uint32_t num_rssi_rejection_ap; struct reject_ap_config_params rssi_rejection_ap[MAX_RSSI_AVOID_BSSID_LIST]; + uint32_t delta_rssi; }; #define WMI_CFG_VALID_CHANNEL_LIST_LEN 100 diff --git a/wmi/src/wmi_unified_roam_tlv.c b/wmi/src/wmi_unified_roam_tlv.c index 974fdac64b56..49321a8f1995 100644 --- a/wmi/src/wmi_unified_roam_tlv.c +++ b/wmi/src/wmi_unified_roam_tlv.c @@ -425,6 +425,7 @@ static QDF_STATUS send_roam_scan_filter_cmd_tlv(wmi_unified_t wmi_handle, roam_req->num_bssid_preferred_list; roam_filter->num_rssi_rejection_ap = roam_req->num_rssi_rejection_ap; + roam_filter->delta_rssi = roam_req->delta_rssi; buf_ptr += sizeof(wmi_roam_filter_fixed_param); WMITLV_SET_HDR((buf_ptr),