Browse Source

qcacmn: Pass new Bad RSSI threshold offset for 2G and flags to FW

Add new Bad RSSI threshold offset for 2G to 5G roam and flags
to roam_offload_scan_rssi_params and fill them in the WMI cmd TLV
to pass it to the firmware.

Change-Id: I78876f5104e67280b1342ec0957d0162edbaf502
CRs-Fixed: 2105894
Vignesh Viswanathan 7 years ago
parent
commit
d7d562de5a
2 changed files with 9 additions and 0 deletions
  1. 6 0
      wmi/inc/wmi_unified_param.h
  2. 3 0
      wmi/src/wmi_unified_tlv.c

+ 6 - 0
wmi/inc/wmi_unified_param.h

@@ -1997,7 +1997,11 @@ struct roam_offload_scan_params {
  * @initial_dense_status: dense status detected by host
  * @traffic_threshold: dense roam RSSI threshold
  * @bg_scan_bad_rssi_thresh: Bad RSSI threshold to perform bg scan
+ * @roam_bad_rssi_thresh_offset_2g: Offset from Bad RSSI threshold for 2G to 5G Roam
  * @bg_scan_client_bitmap: Bitmap used to identify the client scans to snoop
+ * @flags: Flags for Background Roaming
+ *	Bit 0 : BG roaming enabled when we connect to 2G AP only and roaming to 5G AP only.
+ *	Bit 1-31: Reserved
  */
 struct roam_offload_scan_rssi_params {
 	int8_t rssi_thresh;
@@ -2022,7 +2026,9 @@ struct roam_offload_scan_rssi_params {
 	int traffic_threshold;
 	int32_t rssi_thresh_offset_5g;
 	int8_t bg_scan_bad_rssi_thresh;
+	uint8_t roam_bad_rssi_thresh_offset_2g;
 	uint32_t bg_scan_client_bitmap;
+	uint32_t flags;
 };
 
 /**

+ 3 - 0
wmi/src/wmi_unified_tlv.c

@@ -6011,6 +6011,9 @@ static QDF_STATUS send_roam_scan_offload_rssi_thresh_cmd_tlv(wmi_unified_t wmi_h
 		roam_req->bg_scan_bad_rssi_thresh;
 	bg_scan_params->roam_bg_scan_client_bitmap =
 		roam_req->bg_scan_client_bitmap;
+	bg_scan_params->bad_rssi_thresh_offset_2g =
+		roam_req->roam_bad_rssi_thresh_offset_2g;
+	bg_scan_params->flags = roam_req->flags;
 	WMITLV_SET_HDR(&bg_scan_params->tlv_header,
 			WMITLV_TAG_STRUC_wmi_roam_bg_scan_roaming_param,
 			WMITLV_GET_STRUCT_TLVLEN