Forráskód Böngészése

qcacmn: Enable more debug information for P2P

Change log level and enable more debug information for P2P connection.

Change-Id: I459869d48c7f688246bc6e566ad2fae395ff8a2b
CRs-Fixed: 2204758
Wu Gao 7 éve
szülő
commit
e25d5f4ba3

+ 2 - 2
umac/p2p/core/src/wlan_p2p_main.c

@@ -199,7 +199,7 @@ static QDF_STATUS p2p_vdev_obj_create_notification(
 	}
 
 	mode = wlan_vdev_mlme_get_opmode(vdev);
-	p2p_debug("vdev mode:%d", mode);
+	p2p_info("vdev mode:%d", mode);
 	if (mode != QDF_P2P_GO_MODE) {
 		p2p_debug("won't create p2p vdev private object if it is not GO");
 		return QDF_STATUS_SUCCESS;
@@ -254,7 +254,7 @@ static QDF_STATUS p2p_vdev_obj_destroy_notification(
 	}
 
 	mode = wlan_vdev_mlme_get_opmode(vdev);
-	p2p_debug("vdev mode:%d", mode);
+	p2p_info("vdev mode:%d", mode);
 	if (mode != QDF_P2P_GO_MODE) {
 		p2p_debug("no p2p vdev private object if it is not GO");
 		return QDF_STATUS_SUCCESS;

+ 11 - 11
umac/p2p/core/src/wlan_p2p_off_chan_tx.c

@@ -687,7 +687,7 @@ static QDF_STATUS p2p_tx_update_connection_status(
 
 	if (tx_frame_info->public_action_type !=
 		P2P_PUBLIC_ACTION_NOT_SUPPORT)
-		p2p_debug("%s ---> OTA to " QDF_MAC_ADDR_STR,
+		p2p_info("%s ---> OTA to " QDF_MAC_ADDR_STR,
 			  p2p_get_frame_type_str(tx_frame_info),
 			  QDF_MAC_ADDR_ARRAY(mac_to));
 
@@ -695,13 +695,13 @@ static QDF_STATUS p2p_tx_update_connection_status(
 	     P2P_PUBLIC_ACTION_PROV_DIS_REQ) &&
 	    (p2p_soc_obj->connection_status == P2P_NOT_ACTIVE)) {
 		p2p_soc_obj->connection_status = P2P_GO_NEG_PROCESS;
-		p2p_debug("[P2P State]Inactive state to GO negotiation progress state");
+		p2p_info("[P2P State]Inactive state to GO negotiation progress state");
 	} else if ((tx_frame_info->public_action_type ==
 		    P2P_PUBLIC_ACTION_NEG_CNF) &&
 		   (p2p_soc_obj->connection_status ==
 		    P2P_GO_NEG_PROCESS)) {
 		p2p_soc_obj->connection_status = P2P_GO_NEG_COMPLETED;
-		p2p_debug("[P2P State]GO nego progress to GO nego completed state");
+		p2p_info("[P2P State]GO nego progress to GO nego completed state");
 	}
 
 	return QDF_STATUS_SUCCESS;
@@ -731,7 +731,7 @@ static QDF_STATUS p2p_rx_update_connection_status(
 
 	if (rx_frame_info->public_action_type !=
 		P2P_PUBLIC_ACTION_NOT_SUPPORT)
-		p2p_debug("%s <--- OTA from " QDF_MAC_ADDR_STR,
+		p2p_info("%s <--- OTA from " QDF_MAC_ADDR_STR,
 			  p2p_get_frame_type_str(rx_frame_info),
 			  QDF_MAC_ADDR_ARRAY(mac_from));
 
@@ -739,18 +739,18 @@ static QDF_STATUS p2p_rx_update_connection_status(
 	     P2P_PUBLIC_ACTION_PROV_DIS_REQ) &&
 	    (p2p_soc_obj->connection_status == P2P_NOT_ACTIVE)) {
 		p2p_soc_obj->connection_status = P2P_GO_NEG_PROCESS;
-		p2p_debug("[P2P State]Inactive state to GO negotiation progress state");
+		p2p_info("[P2P State]Inactive state to GO negotiation progress state");
 	} else if ((rx_frame_info->public_action_type ==
 		    P2P_PUBLIC_ACTION_NEG_CNF) &&
 		   (p2p_soc_obj->connection_status ==
 		    P2P_GO_NEG_PROCESS)) {
 		p2p_soc_obj->connection_status = P2P_GO_NEG_COMPLETED;
-		p2p_debug("[P2P State]GO negotiation progress to GO negotiation completed state");
+		p2p_info("[P2P State]GO negotiation progress to GO negotiation completed state");
 	} else if ((rx_frame_info->public_action_type ==
 		    P2P_PUBLIC_ACTION_INVIT_REQ) &&
 		   (p2p_soc_obj->connection_status == P2P_NOT_ACTIVE)) {
 		p2p_soc_obj->connection_status = P2P_GO_NEG_COMPLETED;
-		p2p_debug("[P2P State]Inactive state to GO negotiation completed state Autonomous GO formation");
+		p2p_info("[P2P State]Inactive state to GO negotiation completed state Autonomous GO formation");
 	}
 
 	return QDF_STATUS_SUCCESS;
@@ -1125,7 +1125,7 @@ static QDF_STATUS p2p_move_tx_context_to_ack_queue(
 				&tx_ctx->node);
 	if (status != QDF_STATUS_SUCCESS)
 		p2p_err("Failed to insert off chan tx context to wait ack req queue");
-	p2p_debug("insert tx context to wait for roc queue, status:%d",
+	p2p_debug("insert tx context to wait for ack queue, status:%d",
 		status);
 
 	return status;
@@ -1270,7 +1270,7 @@ static void p2p_tx_timeout(void *pdata)
 {
 	struct tx_action_context *tx_ctx = pdata;
 
-	p2p_debug("pdata:%pK", pdata);
+	p2p_info("pdata:%pK", pdata);
 
 	if (!tx_ctx || !(tx_ctx->p2p_soc_obj)) {
 		p2p_err("invalid tx context or p2p soc object");
@@ -1674,7 +1674,7 @@ QDF_STATUS p2p_cleanup_tx_queue(struct p2p_soc_priv_obj *p2p_soc_obj)
 	struct tx_action_context *curr_tx_ctx;
 	qdf_list_node_t *p_node;
 
-	p2p_debug("clean up tx queue wait for roc, size:%d",
+	p2p_info("clean up tx queue wait for roc, size:%d",
 		qdf_list_size(&p2p_soc_obj->tx_q_roc));
 
 	while (qdf_list_remove_front(&p2p_soc_obj->tx_q_roc, &p_node) ==
@@ -1686,7 +1686,7 @@ QDF_STATUS p2p_cleanup_tx_queue(struct p2p_soc_priv_obj *p2p_soc_obj)
 		qdf_mem_free(curr_tx_ctx);
 	}
 
-	p2p_debug("clean up tx queue wait for ack, size:%d",
+	p2p_info("clean up tx queue wait for ack, size:%d",
 		qdf_list_size(&p2p_soc_obj->tx_q_ack));
 	while (qdf_list_remove_front(&p2p_soc_obj->tx_q_ack, &p_node) ==
 		QDF_STATUS_SUCCESS) {

+ 8 - 8
umac/p2p/core/src/wlan_p2p_roc.c

@@ -658,7 +658,7 @@ QDF_STATUS p2p_cleanup_roc_queue(struct p2p_soc_priv_obj *p2p_soc_obj)
 	qdf_list_node_t *p_node;
 	QDF_STATUS status, ret;
 
-	p2p_debug("clean up idle roc request, roc queue size:%d",
+	p2p_info("clean up idle roc request, roc queue size:%d",
 		qdf_list_size(&p2p_soc_obj->roc_q));
 
 	status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node);
@@ -666,7 +666,7 @@ QDF_STATUS p2p_cleanup_roc_queue(struct p2p_soc_priv_obj *p2p_soc_obj)
 		roc_ctx = qdf_container_of(p_node,
 				struct p2p_roc_context, node);
 
-		p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
+		p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
 			roc_ctx->p2p_soc_obj, roc_ctx,
 			roc_ctx->vdev_id, roc_ctx->scan_id,
 			roc_ctx->tx_ctx, roc_ctx->chan,
@@ -686,14 +686,14 @@ QDF_STATUS p2p_cleanup_roc_queue(struct p2p_soc_priv_obj *p2p_soc_obj)
 		}
 	}
 
-	p2p_debug("clean up started roc request, roc queue size:%d",
+	p2p_info("clean up started roc request, roc queue size:%d",
 		qdf_list_size(&p2p_soc_obj->roc_q));
 	status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node);
 	while (QDF_IS_STATUS_SUCCESS(status)) {
 		roc_ctx = qdf_container_of(p_node,
 				struct p2p_roc_context, node);
 
-	p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx_ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
+	p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx_ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
 		roc_ctx->p2p_soc_obj, roc_ctx, roc_ctx->vdev_id,
 		roc_ctx->scan_id, roc_ctx->tx_ctx, roc_ctx->chan,
 		roc_ctx->phy_mode, roc_ctx->duration,
@@ -723,14 +723,14 @@ QDF_STATUS p2p_cleanup_roc_by_vdev(
 	struct p2p_roc_context *roc_ctx;
 	qdf_list_node_t *p_node;
 
-	p2p_debug("clean up idle roc request, roc queue size:%d, vdev id:%d",
+	p2p_info("clean up idle roc request, roc queue size:%d, vdev id:%d",
 		qdf_list_size(&p2p_soc_obj->roc_q), vdev_id);
 	status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node);
 	while (QDF_IS_STATUS_SUCCESS(status)) {
 		roc_ctx = qdf_container_of(p_node,
 				struct p2p_roc_context, node);
 
-		p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
+		p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
 			roc_ctx->p2p_soc_obj, roc_ctx,
 			roc_ctx->vdev_id, roc_ctx->scan_id,
 			roc_ctx->tx_ctx, roc_ctx->chan,
@@ -750,14 +750,14 @@ QDF_STATUS p2p_cleanup_roc_by_vdev(
 		}
 	}
 
-	p2p_debug("clean up started roc request, roc queue size:%d",
+	p2p_info("clean up started roc request, roc queue size:%d",
 		qdf_list_size(&p2p_soc_obj->roc_q));
 	status = qdf_list_peek_front(&p2p_soc_obj->roc_q, &p_node);
 	while (QDF_IS_STATUS_SUCCESS(status)) {
 		roc_ctx = qdf_container_of(p_node,
 				struct p2p_roc_context, node);
 
-		p2p_debug("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
+		p2p_info("p2p soc obj:%pK, roc ctx:%pK, vdev_id:%d, scan_id:%d, tx ctx:%pK, chan:%d, phy_mode:%d, duration:%d, roc_type:%d, roc_state:%d",
 		roc_ctx->p2p_soc_obj, roc_ctx, roc_ctx->vdev_id,
 		roc_ctx->scan_id, roc_ctx->tx_ctx, roc_ctx->chan,
 		roc_ctx->phy_mode, roc_ctx->duration,