google_charger: fix incorrect csi_status for dock_defend

report CSI_STATUS_DEFEND_DOCK when dd_state is active.

Bug: 278192441
Change-Id: I5a99df111c74047c2e3066ff87a1af134f00baf2
Signed-off-by: Jack Wu <[email protected]>
(cherry picked from commit 8ddaee76a96865e39095db3bbb8edd01b1eb2a34)
diff --git a/google_charger.c b/google_charger.c
index 3492c00..70f43b8 100644
--- a/google_charger.c
+++ b/google_charger.c
@@ -2246,7 +2246,7 @@
 						   chg_drv->charge_start_level);
 	const bool is_disconnected = chg_state_is_disconnected(&chg_drv->chg_state);
 	const bool is_full = (chg_drv->chg_state.f.flags & GBMS_CS_FLAG_DONE) != 0;
-	const bool is_dock = chg_drv->bd_state.dd_triggered;
+	const bool is_dock = chg_drv->bd_state.dd_state == DOCK_DEFEND_ACTIVE;
 	const bool is_temp = chg_drv->bd_state.triggered;
 
 	if (!chg_drv->csi_status_votable)