qcacmn: check linkstate_vote in hif_vote_link_down
It is not right that linkstate_vote is 0 when entering hif_vote_link_down, this indicates there is a mismatch for vote up/down. Enable debug to catch such case at first time. Change-Id: I128bc42917ca5de949ee0d0b657579c14dd96eac CRs-Fixed: 3009469
This commit is contained in:

committed by
Madan Koyyalamudi

parent
f5673aa2a4
commit
7e7d768c71
@@ -127,6 +127,10 @@ void hif_vote_link_down(struct hif_opaque_softc *hif_ctx)
|
||||
struct hif_softc *scn = HIF_GET_SOFTC(hif_ctx);
|
||||
|
||||
QDF_BUG(scn);
|
||||
if (scn->linkstate_vote == 0)
|
||||
QDF_DEBUG_PANIC("linkstate_vote(%d) has already been 0",
|
||||
scn->linkstate_vote);
|
||||
|
||||
scn->linkstate_vote--;
|
||||
hif_info("Down_linkstate_vote %d", scn->linkstate_vote);
|
||||
if (scn->linkstate_vote == 0)
|
||||
|
Reference in New Issue
Block a user