Browse Source

qcacld-3.0: Fix compile warnings and reduce log levels

Fix compile warnings and reduce log levels.

Change-Id: Ic4ed8c3f46da2ae1514e2bd6792638b62f7f2397
CRs-Fixed: 2024274
Srinivas Girigowda 7 years ago
parent
commit
af0173e171

+ 1 - 1
core/hdd/src/wlan_hdd_scan.c

@@ -1720,7 +1720,7 @@ static int __wlan_hdd_vendor_abort_scan(
 	hdd_context_t *hdd_ctx = wiphy_priv(wiphy);
 #ifndef NAPIER_SCAN
 	struct nlattr *tb[QCA_WLAN_VENDOR_ATTR_SCAN_MAX + 1];
-	uint32_t scan_id;
+	uint32_t scan_id = 0;
 	uint64_t cookie;
 #endif
 	int ret;

+ 1 - 1
core/sme/src/common/sme_power_save.c

@@ -499,7 +499,7 @@ QDF_STATUS sme_enable_sta_ps_check(tpAniSirGlobal mac_ctx, uint32_t session_id)
 
 	/* Check whether the given session is Infra and in Connected State */
 	if (!csr_is_conn_state_connected_infra(mac_ctx, session_id)) {
-		sme_err("STA not infra/connected state Session_id: %d",
+		sme_debug("STA not infra/connected state Session_id: %d",
 				session_id);
 		return QDF_STATUS_E_FAILURE;
 	}

+ 2 - 2
core/sme/src/csr/csr_api_roam.c

@@ -16626,8 +16626,8 @@ QDF_STATUS csr_get_snr(tpAniSirGlobal pMac,
 
 	status = csr_roam_get_session_id_from_bssid(pMac, &bssId, &sessionId);
 	if (!QDF_IS_STATUS_SUCCESS(status)) {
-		sme_err("Failed to get SessionId");
-		return QDF_STATUS_E_FAILURE;
+		sme_err("Couldn't find session_id for given BSSID");
+		return status;
 	}
 
 	pMsg->msgType = eWNI_SME_GET_SNR_REQ;