Skip to content

RDKEMW-13205 : Airpods getting auto-connected even auto-connect is OFF.#60

Merged
DamianoBaroneSky merged 12 commits intodevelopfrom
RDKEMW-13205-1
Feb 12, 2026
Merged

RDKEMW-13205 : Airpods getting auto-connected even auto-connect is OFF.#60
DamianoBaroneSky merged 12 commits intodevelopfrom
RDKEMW-13205-1

Conversation

@natrajmuthusamy
Copy link
Contributor

Reason for change:
Disconnect the airpods when auto-connect is set to OFF for an audio device since the ACL connection remains active even after the authorization rejection.

Priority: P1
Test Procedure: Follow the steps provided in description.

Risks: Medium
Signed-off-by:Natraj Muthusamy Natraj_Muthusamy@comcast.com

Reason for change:
Disconnect the airpods when auto-connect is set to OFF for an audio
device since the ACL connection remains active even after the
authorization rejection.

Priority: P1
Test Procedure: Follow the steps provided in description.

Risks: Medium
Signed-off-by:Natraj Muthusamy <Natraj_Muthusamy@comcast.com>
@natrajmuthusamy natrajmuthusamy requested a review from a team as a code owner February 9, 2026 09:40
Copilot AI review requested due to automatic review settings February 9, 2026 09:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent AirPods from remaining connected when auto-connect is OFF by scheduling a delayed disconnect after an incoming connection is rejected (authorization rejection still leaves the ACL link up).

Changes:

  • Add AirPods/Apple-vendor detection on “incoming connection rejected” paths and start a 5-second disconnect timer.
  • Modify the disconnect timer callback to always disconnect the device when the timer fires (removing prior streaming/startup safety checks).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 11, 2026 12:40
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comments suppressed due to low confidence (1)

unitTest/unitTest_btmgr/test_btrMgr.c:5153

  • The test name/comment and setup don’t match the behavior being tested: expectedDevId is set to 0 (often used as “no device”), then ghBTRMgrDevHdlCurStreaming is set to the same value, which makes the callback skip disconnect but doesn’t represent a real “device is streaming” scenario. Use a non-zero device id and rename/update the test to reflect that it verifies the ‘device is currently streaming => do not disconnect’ case.
void test_btrmgr_DisconnectDeviceTimerCb_DeviceNotStreaming(void)
{
    tBTRCoreDevId expectedDevId = 0; // The device is now not streaming

    // Setup: Device has started streaming
    ghBTRMgrDevHdlCurStreaming = expectedDevId;


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 11, 2026 12:59
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 8 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

natrajmuthusamy and others added 2 commits February 11, 2026 18:38
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings February 11, 2026 13:18
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings February 12, 2026 10:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rdkcentral rdkcentral deleted a comment from Copilot AI Feb 12, 2026
@DamianoBaroneSky DamianoBaroneSky merged commit 6123066 into develop Feb 12, 2026
11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants