Bladeren bron

qcacld-3.0: Change roam background scan abort log

Roam background scan abort, driver print roam result
failed, but current ap is still connected.
Change roam abort background scan log instead of fail.

Change-Id: Ia10f010e8c353b12bdbbe0407c8e3d30b1ea45c2
CRs-Fixed: 3469290
chunquan luo 1 jaar geleden
bovenliggende
commit
cae0b75f8b

+ 2 - 0
components/mlme/dispatcher/src/wlan_mlme_api.c

@@ -4820,6 +4820,8 @@ char *mlme_get_roam_fail_reason_str(enum wlan_roam_failure_reason_code result)
 		return "No AP found on final BMISS";
 	case ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT:
 		return "No Candidate AP found on final BMISS";
+	case ROAM_FAIL_REASON_CURR_AP_STILL_OK:
+		return "CURRENT AP STILL OK";
 	default:
 		return "UNKNOWN";
 	}

+ 3 - 0
components/umac/mlme/connection_mgr/dispatcher/inc/wlan_cm_roam_public_struct.h

@@ -419,6 +419,8 @@ enum roam_fail_params {
  * final BMISS
  * @ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT: No Candidate AP
  * found after final BMISS.
+ * @ROAM_FAIL_REASON_CURR_AP_STILL_OK: Background scan was abort, but
+ * current network condition is fine.
  * @ROAM_FAIL_REASON_UNKNOWN: Default reason
  */
 enum wlan_roam_failure_reason_code {
@@ -458,6 +460,7 @@ enum wlan_roam_failure_reason_code {
 	ROAM_FAIL_REASON_UNABLE_TO_START_ROAM_HO,
 	ROAM_FAIL_REASON_NO_AP_FOUND_AND_FINAL_BMISS_SENT,
 	ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT,
+	ROAM_FAIL_REASON_CURR_AP_STILL_OK,
 	ROAM_FAIL_REASON_UNKNOWN = 255,
 };
 

+ 8 - 3
components/umac/mlme/connection_mgr/dispatcher/src/wlan_cm_roam_api.c

@@ -3144,9 +3144,14 @@ cm_roam_stats_print_roam_result(struct wlan_objmgr_psoc *psoc,
 			    mlme_get_roam_fail_reason_str(res->fail_reason));
 
 	mlme_get_converted_timestamp(res->timestamp, time);
-	mlme_nofl_info("%s [ROAM_RESULT]: VDEV[%d] %s %s",
-		       time, vdev_id, mlme_get_roam_status_str(res->status),
-		       buf);
+
+	if (res->fail_reason == ROAM_FAIL_REASON_CURR_AP_STILL_OK)
+		mlme_nofl_info("%s [ROAM_RESULT]: VDEV[%d] %s",
+			       time, vdev_id, buf);
+	else
+		mlme_nofl_info("%s [ROAM_RESULT]: VDEV[%d] %s %s",
+			       time, vdev_id,
+			       mlme_get_roam_status_str(res->status), buf);
 	qdf_mem_free(buf);
 
 	status = wlan_cm_update_roam_states(psoc, vdev_id, res->fail_reason,

+ 2 - 0
core/hdd/src/wlan_hdd_stats.c

@@ -8311,6 +8311,8 @@ hdd_convert_roam_failures_reason(enum wlan_roam_failure_reason_code fail)
 		return QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT;
 	case ROAM_FAIL_REASON_SAE_PREAUTH_FAIL:
 		return QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL;
+	case ROAM_FAIL_REASON_CURR_AP_STILL_OK:
+		return QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK;
 	case ROAM_FAIL_REASON_MLME:
 	case ROAM_FAIL_REASON_INTERNAL_ABORT:
 	case ROAM_FAIL_REASON_UNABLE_TO_START_ROAM_HO: