qcacld-3.0: Fix unnecessary logs in connect path

Fix unnecessary logs in connect path.

Change-Id: I60a5e7380eccbe0406e45da398f1f690b09ce820
CRs-Fixed: 3016952
This commit is contained in:
Utkarsh Bhatnagar
2021-08-18 16:48:48 +05:30
committed by Madan Koyyalamudi
parent f0521aa1ea
commit 235135f84d
5 changed files with 22 additions and 9 deletions

View File

@@ -344,7 +344,7 @@ struct rso_config {
struct reassoc_timer_ctx ctx;
#endif
qdf_mutex_t cm_rso_lock;
uint8_t rsn_cap;
uint16_t rsn_cap;
uint8_t country_code[REG_ALPHA2_LEN + 1];
bool disable_hi_rssi;
bool roam_control_enable;

View File

@@ -300,16 +300,20 @@ bool wlan_cm_roaming_in_progress(struct wlan_objmgr_pdev *pdev, uint8_t vdev_id)
{
bool roaming_in_progress = false;
struct wlan_objmgr_vdev *vdev;
enum QDF_OPMODE opmode;
vdev = wlan_objmgr_get_vdev_by_id_from_pdev(pdev, vdev_id,
WLAN_MLME_CM_ID);
if (!vdev) {
mlme_err("vdev object is NULL");
if (!vdev)
return roaming_in_progress;
}
opmode = wlan_vdev_mlme_get_opmode(vdev);
if (opmode != QDF_STA_MODE && opmode != QDF_P2P_CLIENT_MODE)
goto exit;
roaming_in_progress = wlan_cm_is_vdev_roaming(vdev);
exit:
wlan_objmgr_vdev_release_ref(vdev, WLAN_MLME_CM_ID);
return roaming_in_progress;