Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Blutooth Hci interface down option #354

Merged
merged 1 commit into from
May 8, 2024

Conversation

gowthambabu92
Copy link

Everytime before launching android user has to manually do "sudo hciconfig hci0 down" when BT Card is passthrough.

Added 'bluetooth' section with 'hci_down' flag in the vm-manager. If set to 'true', will bring down the BT hci interface.

Tests done:

  1. Build vm-manager binary
  2. Add BT USB Pci address in the [passthrough]
  3. Add hci_down=true in [bluetooth]
  4. Launch Android and check BT on success
  5. Validated on RPL NUC with AX211

Tracked-On: OAM-116593

@sysopenci
Copy link

Building VM-Manager Code. For more details refer below link:
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/209/

@sysopenci
Copy link

Building VM-Manager Code. For more details refer below link:
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/210/

@sysopenci
Copy link

Build successful.
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/209/

@sysopenci
Copy link

Please find the Deb Package Path :
artifactory/dev-automation-ba-local/vm-manager-binaries/354/PR/b454149

@sysopenci
Copy link

Build successful.
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/210/

@sysopenci
Copy link

Please find the Deb Package Path :
artifactory/dev-automation-ba-local/vm-manager-binaries/354/PR/1f0b028

@@ -57,6 +57,7 @@ class VmBuilderQemu : public VmBuilder {
void BuildVcpuCmd(void);
bool BuildFirmwareCmd(void);
void BuildVdiskCmd(void);
void BringDownBtHciIntf();
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -300,6 +300,18 @@ bool VmBuilderQemu::SetupSriov(void) {
return true;
}

void VmBuilderQemu::BringDownBtHciIntf() {
Copy link
Contributor

Choose a reason for hiding this comment

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

add void to if no param required:
void BringDownBtHciIntf(void);

Everytime before launching android user has to manually
do "sudo hciconfig hci0 down" when BT Card is passthrough.

Added 'bluetooth' section with 'hci_down' flag in the vm-manager.
If set to 'true', will bring down the BT hci interface.

Tests done:
1. Build vm-manager binary
2. Add BT USB Pci address in the [passthrough]
3. Add hci_down=true in [bluetooth]
4. Launch Android and check BT on success
5. Validated on RPL NUC with AX211

Tracked-On: OAM-116593
Signed-off-by: Gowtham Anandha Babu <gowtham.anandha.babu@intel.com>
Signed-off-by: Aman Bhadouria <aman.bhadouria@intel.com>
@sysopenci
Copy link

Building VM-Manager Code. For more details refer below link:
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/211/

@sysopenci
Copy link

Build successful.
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-FLOW/211/

@sysopenci
Copy link

Please find the Deb Package Path :
artifactory/dev-automation-ba-local/vm-manager-binaries/354/PR/cc3b668

@sysopenci
Copy link

Building VM-Manager Code. For more details refer below link:
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-MERGE-FLOW/143/

@sysopenci
Copy link

Build successful.
job/satg-aee-android-ci/job/Prod/job/VM-MANAGER-PR-MERGE-FLOW/143/

@sysopenci
Copy link

Please find the Deb Package Path :
artifactory/dev-automation-ba-local/vm-manager-binaries/354/MR/cc3b668

@sysopenci sysopenci merged commit bf1c0f1 into projectceladon:master May 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants