Jelajahi Sumber

qcacld-3.0: Selectively reduce tdls logs

Reduce tdls logs from info to debug.

Change-Id: I2de71c4aa5d9915afb68bc192dcd6a749f6b3b4e
CRs-Fixed: 2607020
Arun Kumar Khandavalli 5 tahun lalu
induk
melakukan
8b61ce1e4c

+ 6 - 6
components/tdls/core/src/wlan_tdls_cmds_process.c

@@ -757,7 +757,7 @@ int tdls_validate_mgmt_request(struct tdls_action_frame_request *tdls_mgmt_req)
 		}
 	}
 
-	tdls_notice("tdls_mgmt" QDF_MAC_ADDR_STR " action %d, dialog_token %d status %d, len = %zu",
+	tdls_debug("tdls_mgmt" QDF_MAC_ADDR_STR " action %d, dialog_token %d status %d, len = %zu",
 		   QDF_MAC_ADDR_ARRAY(tdls_validate->peer_mac),
 		   tdls_validate->action_code, tdls_validate->dialog_token,
 		   tdls_validate->status_code, tdls_validate->len);
@@ -1425,10 +1425,10 @@ static QDF_STATUS tdls_add_peer_rsp(struct tdls_add_sta_rsp *rsp)
 				conn_rec[sta_idx].index = sta_idx;
 				qdf_copy_macaddr(&conn_rec[sta_idx].peer_mac,
 						 &rsp->peermac);
-				tdls_warn("TDLS: Add sta mac "
-					  QDF_MAC_ADDR_STR,
-					  QDF_MAC_ADDR_ARRAY
-					  (rsp->peermac.bytes));
+				tdls_debug("TDLS: Add sta mac "
+					   QDF_MAC_ADDR_STR,
+					   QDF_MAC_ADDR_ARRAY
+					   (rsp->peermac.bytes));
 				break;
 			}
 		}
@@ -1510,7 +1510,7 @@ QDF_STATUS tdls_process_del_peer_rsp(struct tdls_del_sta_rsp *rsp)
 			continue;
 
 		macaddr = rsp->peermac.bytes;
-		tdls_warn("TDLS: del STA");
+		tdls_debug("TDLS: del STA");
 		curr_peer = tdls_find_peer(vdev_obj, macaddr);
 		if (curr_peer) {
 			tdls_debug(QDF_MAC_ADDR_STR " status is %d",

+ 2 - 2
components/tdls/core/src/wlan_tdls_ct.c

@@ -1228,7 +1228,7 @@ void tdls_disable_offchan_and_teardown_links(
 	}
 
 	if (TDLS_SUPPORT_SUSPENDED >= tdls_soc->tdls_current_mode) {
-		tdls_notice("TDLS mode %d is disabled OR not suspended now",
+		tdls_debug("TDLS mode %d is disabled OR not suspended now",
 			   tdls_soc->tdls_current_mode);
 		return;
 	}
@@ -1238,7 +1238,7 @@ void tdls_disable_offchan_and_teardown_links(
 		tdls_in_progress = true;
 
 	if (!(connected_tdls_peers || tdls_in_progress)) {
-		tdls_notice("No TDLS connected/progress peers to delete");
+		tdls_debug("No TDLS connected/progress peers to delete");
 		vdev_id = vdev->vdev_objmgr.vdev_id;
 		if (tdls_soc->set_state_info.set_state_cnt > 0) {
 			tdls_debug("Disable the tdls in FW as second interface is coming up");

+ 1 - 1
components/tdls/core/src/wlan_tdls_main.c

@@ -991,7 +991,7 @@ tdls_process_decrement_active_session(struct wlan_objmgr_psoc *psoc)
 	   !policy_mgr_is_hw_dbs_required_for_band(
 				psoc, HW_MODE_MAC_BAND_2G) &&
 	   policy_mgr_is_current_hwmode_dbs(psoc)) {
-		tdls_err("Current HW mode is 1*1 DBS. Wait for Opportunistic timer to expire to enable TDLS in FW");
+		tdls_debug("Current HW mode is 1*1 DBS. Wait for Opportunistic timer to expire to enable TDLS in FW");
 		return QDF_STATUS_SUCCESS;
 	}
 	tdls_obj_vdev = tdls_get_vdev(psoc, WLAN_TDLS_NB_ID);

+ 4 - 4
components/tdls/dispatcher/src/wlan_tdls_ucfg_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2017-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2017-2020 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -356,7 +356,7 @@ QDF_STATUS ucfg_tdls_psoc_enable(struct wlan_objmgr_psoc *psoc)
 {
 	QDF_STATUS status;
 
-	tdls_notice("psoc tdls enable: 0x%pK", psoc);
+	tdls_debug("psoc tdls enable: 0x%pK", psoc);
 	if (!psoc) {
 		tdls_err("NULL psoc");
 		return QDF_STATUS_E_FAILURE;
@@ -389,7 +389,7 @@ QDF_STATUS ucfg_tdls_psoc_disable(struct wlan_objmgr_psoc *psoc)
 	QDF_STATUS status;
 	struct tdls_soc_priv_obj *soc_obj = NULL;
 
-	tdls_notice("psoc tdls disable: 0x%pK", psoc);
+	tdls_debug("psoc tdls disable: 0x%pK", psoc);
 	if (!psoc) {
 		tdls_err("NULL psoc");
 		return QDF_STATUS_E_FAILURE;
@@ -421,7 +421,7 @@ QDF_STATUS ucfg_tdls_psoc_close(struct wlan_objmgr_psoc *psoc)
 	QDF_STATUS status = QDF_STATUS_SUCCESS;
 	struct tdls_soc_priv_obj *tdls_soc;
 
-	tdls_notice("tdls psoc close");
+	tdls_debug("tdls psoc close");
 	tdls_soc = wlan_objmgr_psoc_get_comp_private_obj(psoc,
 							WLAN_UMAC_COMP_TDLS);
 	if (!tdls_soc) {