Context |
Check |
Description |
tedd_an/checkpatch |
success
|
Checkpatch PASS
|
tedd_an/gitlint |
success
|
Gitlint PASS
|
tedd_an/buildkernel |
success
|
Build Kernel PASS
|
tedd_an/testrunnersetup |
success
|
Test Runner Setup PASS
|
tedd_an/testrunnerl2cap-tester |
success
|
Total: 40, Passed: 40 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunnerbnep-tester |
success
|
Total: 1, Passed: 1 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunnermgmt-tester |
success
|
Total: 468, Passed: 468 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunnerrfcomm-tester |
success
|
Total: 9, Passed: 9 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunnersco-tester |
success
|
Total: 12, Passed: 12 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunnersmp-tester |
success
|
Total: 8, Passed: 8 (100.0%), Failed: 0, Not Run: 0
|
tedd_an/testrunneruserchan-tester |
success
|
Total: 4, Passed: 4 (100.0%), Failed: 0, Not Run: 0
|
@@ -751,7 +751,7 @@ void btrtl_set_quirks(struct hci_dev *hdev, struct btrtl_device_info *btrtl_dev)
case CHIP_ID_8852A:
set_bit(HCI_QUIRK_VALID_LE_STATES, &hdev->quirks);
set_bit(HCI_QUIRK_WIDEBAND_SPEECH_SUPPORTED, &hdev->quirks);
- hci_set_aosp_capable(hdev);
+ hci_set_aosp_capable(hdev, true);
break;
default:
rtl_dev_dbg(hdev, "Central-peripheral role not enabled.");
@@ -1730,7 +1730,7 @@ static int qca_setup(struct hci_uart *hu)
if (qca_is_wcn399x(soc_type) ||
qca_is_wcn6750(soc_type)) {
set_bit(HCI_QUIRK_USE_BDADDR_PROPERTY, &hdev->quirks);
- hci_set_aosp_capable(hdev);
+ hci_set_aosp_capable(hdev, true);
ret = qca_read_soc_version(hdev, &ver, soc_type);
if (ret)
@@ -264,7 +264,7 @@ static int vhci_setup(struct hci_dev *hdev)
struct vhci_data *vhci = hci_get_drvdata(hdev);
hci_set_msft_opcode(hdev, vhci->msft_opcode);
- hci_set_aosp_capable(hdev);
+ hci_set_aosp_capable(hdev, vhci->aosp_capable);
return 0;
}
@@ -343,7 +343,7 @@ static int virtbt_probe(struct virtio_device *vdev)
}
if (virtio_has_feature(vdev, VIRTIO_BT_F_AOSP_EXT))
- hci_set_aosp_capable(hdev);
+ hci_set_aosp_capable(hdev, true);
if (hci_register_dev(hdev) < 0) {
hci_free_dev(hdev);
@@ -1279,10 +1279,10 @@ static inline void hci_set_msft_opcode(struct hci_dev *hdev, __u16 opcode)
#endif
}
-static inline void hci_set_aosp_capable(struct hci_dev *hdev)
+static inline void hci_set_aosp_capable(struct hci_dev *hdev, bool enable)
{
#if IS_ENABLED(CONFIG_BT_AOSPEXT)
- hdev->aosp_capable = true;
+ hdev->aosp_capable = enable;
#endif
}