Commit 59981228 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 #74726.

Signed-off-by: default avatarLyle Zhu <lyle.zhu@nxp.com>
parent 89fdc35c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2241,7 +2241,7 @@ int bt_hfp_ag_remote_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;
	}