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
This commit is contained in:
chunquan luo
2023-04-17 00:16:01 -07:00
committed by Madan Koyyalamudi
parent d6d5c17d35
commit cae0b75f8b
4 changed files with 15 additions and 3 deletions

View File

@@ -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"; return "No AP found on final BMISS";
case ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT: case ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT:
return "No Candidate AP found on final BMISS"; return "No Candidate AP found on final BMISS";
case ROAM_FAIL_REASON_CURR_AP_STILL_OK:
return "CURRENT AP STILL OK";
default: default:
return "UNKNOWN"; return "UNKNOWN";
} }

View File

@@ -419,6 +419,8 @@ enum roam_fail_params {
* final BMISS * final BMISS
* @ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT: No Candidate AP * @ROAM_FAIL_REASON_NO_CAND_AP_FOUND_AND_FINAL_BMISS_SENT: No Candidate AP
* found after final BMISS. * 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 * @ROAM_FAIL_REASON_UNKNOWN: Default reason
*/ */
enum wlan_roam_failure_reason_code { 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_UNABLE_TO_START_ROAM_HO,
ROAM_FAIL_REASON_NO_AP_FOUND_AND_FINAL_BMISS_SENT, ROAM_FAIL_REASON_NO_AP_FOUND_AND_FINAL_BMISS_SENT,
ROAM_FAIL_REASON_NO_CAND_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, ROAM_FAIL_REASON_UNKNOWN = 255,
}; };

View File

@@ -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_roam_fail_reason_str(res->fail_reason));
mlme_get_converted_timestamp(res->timestamp, time); 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), if (res->fail_reason == ROAM_FAIL_REASON_CURR_AP_STILL_OK)
buf); 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); qdf_mem_free(buf);
status = wlan_cm_update_roam_states(psoc, vdev_id, res->fail_reason, status = wlan_cm_update_roam_states(psoc, vdev_id, res->fail_reason,

View File

@@ -8311,6 +8311,8 @@ hdd_convert_roam_failures_reason(enum wlan_roam_failure_reason_code fail)
return QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT; return QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT;
case ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: case ROAM_FAIL_REASON_SAE_PREAUTH_FAIL:
return QCA_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_MLME:
case ROAM_FAIL_REASON_INTERNAL_ABORT: case ROAM_FAIL_REASON_INTERNAL_ABORT:
case ROAM_FAIL_REASON_UNABLE_TO_START_ROAM_HO: case ROAM_FAIL_REASON_UNABLE_TO_START_ROAM_HO: