فهرست منبع

qcacmn: Selectively reduce the mgmt logs

Reduce loglevel of the management logs from info to debug.

Change-Id: I587357c14b1e7a79615af9c1eeeed8e4455234f0
CRs-Fixed: 2606506
Arun Kumar Khandavalli 5 سال پیش
والد
کامیت
fc4ac73e9b

+ 2 - 2
umac/cmn_services/mgmt_txrx/core/src/wlan_mgmt_txrx_main.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-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
@@ -30,7 +30,7 @@ QDF_STATUS wlan_mgmt_txrx_desc_pool_init(
 {
 	uint32_t i;
 
-	mgmt_txrx_info(
+	mgmt_txrx_debug(
 			"mgmt_txrx ctx: %pK pdev: %pK mgmt desc pool size %d",
 			mgmt_txrx_pdev_ctx, mgmt_txrx_pdev_ctx->pdev,
 			MGMT_DESC_POOL_MAX);

+ 3 - 3
umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_tgt_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-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
@@ -1024,8 +1024,8 @@ QDF_STATUS tgt_mgmt_txrx_rx_frame_handler(
 
 	frm_type = mgmt_txrx_get_frm_type(mgmt_subtype, mpdu_data_ptr);
 	if (frm_type == MGMT_FRM_UNSPECIFIED) {
-		mgmt_txrx_err_rl("Unspecified mgmt frame type fc: %x %x",
-				 wh->i_fc[0], wh->i_fc[1]);
+		mgmt_txrx_debug_rl("Unspecified mgmt frame type fc: %x %x",
+				   wh->i_fc[0], wh->i_fc[1]);
 		qdf_nbuf_free(buf);
 		return QDF_STATUS_E_FAILURE;
 	}

+ 12 - 12
umac/cmn_services/mgmt_txrx/dispatcher/src/wlan_mgmt_txrx_utils_api.c

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-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
@@ -75,7 +75,7 @@ static QDF_STATUS wlan_mgmt_txrx_psoc_obj_create_notification(
 		goto err_psoc_attach;
 	}
 
-	mgmt_txrx_info("Mgmt txrx creation successful, mgmt txrx ctx: %pK, psoc: %pK",
+	mgmt_txrx_debug("Mgmt txrx creation successful, mgmt txrx ctx: %pK, psoc: %pK",
 			mgmt_txrx_psoc_ctx, psoc);
 
 	return QDF_STATUS_SUCCESS;
@@ -116,7 +116,7 @@ static QDF_STATUS wlan_mgmt_txrx_psoc_obj_destroy_notification(
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	mgmt_txrx_info("deleting mgmt txrx psoc obj, mgmt txrx ctx: %pK, psoc: %pK",
+	mgmt_txrx_debug("deleting mgmt txrx psoc obj, mgmt txrx ctx: %pK, psoc: %pK",
 			mgmt_txrx_psoc_ctx, psoc);
 	if (wlan_objmgr_psoc_component_obj_detach(psoc,
 				WLAN_UMAC_COMP_MGMT_TXRX, mgmt_txrx_psoc_ctx)
@@ -128,7 +128,7 @@ static QDF_STATUS wlan_mgmt_txrx_psoc_obj_destroy_notification(
 	qdf_spinlock_destroy(&mgmt_txrx_psoc_ctx->mgmt_txrx_psoc_ctx_lock);
 	qdf_mem_free(mgmt_txrx_psoc_ctx);
 
-	mgmt_txrx_info("mgmt txrx deletion successful, psoc: %pK", psoc);
+	mgmt_txrx_debug("mgmt txrx deletion successful, psoc: %pK", psoc);
 
 	return QDF_STATUS_SUCCESS;
 }
@@ -195,7 +195,7 @@ static QDF_STATUS wlan_mgmt_txrx_pdev_obj_create_notification(
 		goto err_pdev_attach;
 	}
 
-	mgmt_txrx_info(
+	mgmt_txrx_debug(
 		"Mgmt txrx creation successful, mgmt txrx ctx: %pK, pdev: %pK",
 		mgmt_txrx_pdev_ctx, pdev);
 
@@ -242,7 +242,7 @@ static QDF_STATUS wlan_mgmt_txrx_pdev_obj_destroy_notification(
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	mgmt_txrx_info("deleting mgmt txrx pdev obj, mgmt txrx ctx: %pK, pdev: %pK",
+	mgmt_txrx_debug("deleting mgmt txrx pdev obj, mgmt txrx ctx: %pK, pdev: %pK",
 			mgmt_txrx_pdev_ctx, pdev);
 	if (wlan_objmgr_pdev_component_obj_detach(pdev,
 				WLAN_UMAC_COMP_MGMT_TXRX, mgmt_txrx_pdev_ctx)
@@ -257,7 +257,7 @@ static QDF_STATUS wlan_mgmt_txrx_pdev_obj_destroy_notification(
 	qdf_wake_lock_destroy(&mgmt_txrx_pdev_ctx->wakelock_tx_cmp);
 	qdf_mem_free(mgmt_txrx_pdev_ctx);
 
-	mgmt_txrx_info("mgmt txrx deletion successful, pdev: %pK", pdev);
+	mgmt_txrx_debug("mgmt txrx deletion successful, pdev: %pK", pdev);
 
 	return QDF_STATUS_SUCCESS;
 }
@@ -303,7 +303,7 @@ QDF_STATUS wlan_mgmt_txrx_init(void)
 		goto err_pdev_delete;
 	}
 
-	mgmt_txrx_info("Successfully registered create and destroy handlers with objmgr");
+	mgmt_txrx_debug("Successfully registered create and destroy handlers with objmgr");
 	return QDF_STATUS_SUCCESS;
 
 err_pdev_delete:
@@ -352,7 +352,7 @@ QDF_STATUS wlan_mgmt_txrx_deinit(void)
 	}
 
 
-	mgmt_txrx_info("Successfully unregistered create and destroy handlers with objmgr");
+	mgmt_txrx_debug("Successfully unregistered create and destroy handlers with objmgr");
 	return QDF_STATUS_SUCCESS;
 }
 
@@ -550,7 +550,7 @@ static QDF_STATUS wlan_mgmt_txrx_create_rx_handler(
 	mgmt_txrx_psoc_ctx->mgmt_rx_comp_cb[frm_type] = rx_handler;
 	qdf_spin_unlock_bh(&mgmt_txrx_psoc_ctx->mgmt_txrx_psoc_ctx_lock);
 
-	mgmt_txrx_info("Callback registered for comp_id: %d, frm_type: %d",
+	mgmt_txrx_debug("Callback registered for comp_id: %d, frm_type: %d",
 			comp_id, frm_type);
 	return QDF_STATUS_SUCCESS;
 }
@@ -604,7 +604,7 @@ static QDF_STATUS wlan_mgmt_txrx_delete_rx_handler(
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	mgmt_txrx_info("Callback deregistered for comp_id: %d, frm_type: %d",
+	mgmt_txrx_debug("Callback deregistered for comp_id: %d, frm_type: %d",
 			comp_id, frm_type);
 	return QDF_STATUS_SUCCESS;
 }
@@ -764,7 +764,7 @@ QDF_STATUS wlan_mgmt_txrx_pdev_close(struct wlan_objmgr_pdev *pdev)
 
 	for (index = 0; index < pool_size; index++) {
 		if (mgmt_txrx_pdev_ctx->mgmt_desc_pool.pool[index].in_use) {
-			mgmt_txrx_info(
+			mgmt_txrx_debug(
 				"mgmt descriptor with desc id: %d not in freelist",
 				index);
 			mgmt_desc = &mgmt_txrx_pdev_ctx->mgmt_desc_pool.pool[index];