qcacmn: WMI changes to Send OCE rssi reject BSSID list to firmware
Add support for rssi based assoc rejection from a bssid and
Try to connect to this bssid only after time interval indicated in
Assoc reject or when rssi has improved by margin indicated in Assoc
reject.
On connection send OCE rssi reject BSSID list to firmware so that
firmware will avoid connecting to these BSSID until RSSI improve or
delta interval has elapsed.
Change-Id: Ic14f85894a4a2f47bcdde9ce977c7b92aeaf8fce
CRs-Fixed: 2076654
diff --git a/wmi_unified_param.h b/wmi_unified_param.h
index 0b59a14..4490a28 100644
--- a/wmi_unified_param.h
+++ b/wmi_unified_param.h
@@ -2340,7 +2340,7 @@
#define MAX_SSID_ALLOWED_LIST 4
#define MAX_BSSID_AVOID_LIST 16
#define MAX_BSSID_FAVORED 16
-
+#define MAX_RSSI_AVOID_BSSID_LIST 10
/**
* struct mac_ts_info_tfc - mac ts info parameters
@@ -3215,6 +3215,19 @@
};
/**
+ * struct rssi_disallow_bssid - Structure holding Rssi based avoid candidate
+ * @bssid: BSSID of the AP
+ * @remaining_duration: remaining disallow duration in ms
+ * @expected_rssi: RSSI at which STA can initate in dBm
+ */
+struct rssi_disallow_bssid {
+ struct qdf_mac_addr bssid;
+ uint32_t remaining_duration;
+ int8_t expected_rssi;
+};
+
+
+/**
* struct roam_scan_filter_params - Structure holding roaming scan
* parameters
* @op_bitmap: bitmap to determine reason of roaming
@@ -3259,6 +3272,8 @@
uint32_t disallow_duration;
uint32_t rssi_channel_penalization;
uint32_t num_disallowed_aps;
+ uint32_t num_rssi_rejection_ap;
+ struct rssi_disallow_bssid rssi_rejection_ap[MAX_RSSI_AVOID_BSSID_LIST];
};
/**