Quellcode durchsuchen

qcacmn: HIF_INFO to log the linkstate_vote in hif_main.c

Add HIF_INFO to log the linkstate_vote value in the hif_vote_link_up()
and hif_vote_link_down() functions in order to log the occurences of
the rare event when we vote for link up/down.

Change-Id: I7549b3400977583bd2cd4ec4fcb3f16dd0865ce7
CRs-Fixed: 2648860
Aditya Kodukula vor 5 Jahren
Ursprung
Commit
6a4676ec03
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  1. 2 0
      hif/src/hif_main.c

+ 2 - 0
hif/src/hif_main.c

@@ -110,6 +110,7 @@ void hif_vote_link_down(struct hif_opaque_softc *hif_ctx)
 
 	QDF_BUG(scn);
 	scn->linkstate_vote--;
+	HIF_INFO("Down_linkstate_vote %d", scn->linkstate_vote);
 	if (scn->linkstate_vote == 0)
 		hif_bus_prevent_linkdown(scn, false);
 }
@@ -131,6 +132,7 @@ void hif_vote_link_up(struct hif_opaque_softc *hif_ctx)
 
 	QDF_BUG(scn);
 	scn->linkstate_vote++;
+	HIF_INFO("Up_linkstate_vote %d", scn->linkstate_vote);
 	if (scn->linkstate_vote == 1)
 		hif_bus_prevent_linkdown(scn, true);
 }