Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d94a3b21 authored by Henri Chataing's avatar Henri Chataing
Browse files

hearing_aid: Fix incorrect flag used

asha_asrc used in place of asha_encrypted_l2c_coc

Bug: 348505552
Test: m com.android.btservices
Flag: com.android.bluetooth.flags.asha_encrypted_l2c_coc
Change-Id: I8dc5ab4dc3d52141247a114d107785eb673d06c0
parent 473c1195
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1108,7 +1108,7 @@ class HearingAidImpl : public HearingAid {
        /// The L2CAP will automatically reconnect the LE-ACL link on
        /// disconnection when there is a pending channel request,
        /// which invalidates all encryption checks performed here.
        com::android::bluetooth::flags::asha_asrc()
        com::android::bluetooth::flags::asha_encrypted_l2c_coc()
            ? BTM_SEC_IN_ENCRYPT | BTM_SEC_OUT_ENCRYPT
            : BTM_SEC_NONE,
        HearingAidImpl::GapCallbackStatic, BT_TRANSPORT_LE);