summaryrefslogtreecommitdiff
path: root/sysprop
diff options
context:
space:
mode:
author Katherine Lai <laikatherine@google.com> 2025-01-21 19:49:49 +0000
committer Katherine Lai <laikatherine@google.com> 2025-02-19 18:20:58 +0000
commitd2c61295cb4c02a9b805bdf52b0052eaaec76fa4 (patch)
treee2ee4e99d9477336fbc81f5061b1b4771a5fb824 /sysprop
parent57238606fb4ff38304e62578ae8e7f76f49611dc (diff)
HAL: Add a sysprop to read MSFT vendor specific opcode
Using MGMT to read the MSFT vendor specific opcode from the kernel is too BlueZ specific. Replace with a sysprop instead. Bug: 390425327 Bug: 365787977 Flag: com.android.bluetooth.flags.le_scan_msft_support Test: mmm packages/modules/Bluetooth Change-Id: I88bd30f1c1b81ab1299af0459aef4e7596183db0
Diffstat (limited to 'sysprop')
-rw-r--r--sysprop/Android.bp1
-rw-r--r--sysprop/BUILD.gn1
-rw-r--r--sysprop/exported_include/android_bluetooth_sysprop.h1
-rw-r--r--sysprop/hci.sysprop10
4 files changed, 13 insertions, 0 deletions
diff --git a/sysprop/Android.bp b/sysprop/Android.bp
index 241e8711f7..ef0ebad98d 100644
--- a/sysprop/Android.bp
+++ b/sysprop/Android.bp
@@ -13,6 +13,7 @@ sysprop_library {
"device_id.sysprop",
"gap.sysprop",
"hardware.sysprop",
+ "hci.sysprop",
"hfp.sysprop",
],
property_owner: "Platform",
diff --git a/sysprop/BUILD.gn b/sysprop/BUILD.gn
index 9cdbf48530..84b21f0737 100644
--- a/sysprop/BUILD.gn
+++ b/sysprop/BUILD.gn
@@ -9,6 +9,7 @@ sysprop("libcom.android.sysprop.bluetooth") {
"device_id.sysprop",
"gap.sysprop",
"hardware.sysprop",
+ "hci.sysprop",
"hfp.sysprop",
]
deps = [ "//bt/floss/android-base:android-base" ]
diff --git a/sysprop/exported_include/android_bluetooth_sysprop.h b/sysprop/exported_include/android_bluetooth_sysprop.h
index 24053123ac..4d3949a75f 100644
--- a/sysprop/exported_include/android_bluetooth_sysprop.h
+++ b/sysprop/exported_include/android_bluetooth_sysprop.h
@@ -23,4 +23,5 @@
#include <device_id.sysprop.h>
#include <gap.sysprop.h>
#include <hardware.sysprop.h>
+#include <hci.sysprop.h>
#include <hfp.sysprop.h>
diff --git a/sysprop/hci.sysprop b/sysprop/hci.sysprop
new file mode 100644
index 0000000000..04e7b6ccf8
--- /dev/null
+++ b/sysprop/hci.sysprop
@@ -0,0 +1,10 @@
+module: "android.sysprop.bluetooth.Hci"
+owner: Platform
+
+prop {
+ api_name: "msft_vendor_opcode"
+ type: Integer
+ scope: Internal
+ access: Readonly
+ prop_name: "bluetooth.hci.msft_vendor_opcode"
+} \ No newline at end of file