Commit a3a08b93 authored by Lyle Zhu's avatar Lyle Zhu Committed by Alberto Escolar
Browse files

Bluetooth: Classic: HF_AG: Fix incorrect status judgment



Wrong condition of AG status is used for status
checking.

Fixes #74727.

Signed-off-by: default avatarLyle Zhu <lyle.zhu@nxp.com>
parent 59981228
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2036,7 +2036,7 @@ int bt_hfp_ag_terminate(struct bt_hfp_ag *ag)
		return -ENOTCONN;
	}

	if ((ag->call_state != BT_HFP_CALL_ACTIVE) || (ag->call_state != BT_HFP_CALL_HOLD)) {
	if ((ag->call_state != BT_HFP_CALL_ACTIVE) && (ag->call_state != BT_HFP_CALL_HOLD)) {
		hfp_ag_unlock(ag);
		return -EINVAL;
	}