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
This commit is contained in:
Amruta Kulkarni
2020-02-27 17:06:34 -08:00
committed by nshrivas
parent 3d4911dc92
commit 9b01e38405
2 changed files with 4 additions and 0 deletions

View File

@@ -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

View File

@@ -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),