Browse Source

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
Amruta Kulkarni 5 năm trước cách đây
mục cha
commit
9b01e38405
2 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 3 0
      wmi/inc/wmi_unified_roam_param.h
  2. 1 0
      wmi/src/wmi_unified_roam_tlv.c

+ 3 - 0
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

+ 1 - 0
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),