Skip to contentSkip to conversation

vhci: Add function to interact with force_static_address

PATCH Applied Luiz Augusto von Dentz 3 participants 3 messages Oct 7, 2022 – Oct 10, 2022 Bluetooth drivers

lore
Share & tools
lore

Luiz Augusto von Dentz

author maintainer
#0 lore raw

PATCH 1/1 vhci: Add function to interact with force_static_address

From: Luiz Augusto von Dentz <[email protected]>

This adds functions that can be used to set debugfs force_static_address.

---
 emulator/vhci.c | 10 ++++++++++
 emulator/vhci.h |  1 +
 2 files changed, 11 insertions(+)
emulator/vhci.c +10 -0
index 4295e30ef980..a12b11e0f305 100644
@@ -257,3 +257,13 @@ int vhci_set_emu_opcode(struct vhci *vhci, uint16_t opcode)
 {
 	return btdev_set_emu_opcode(vhci->btdev, opcode);
 }
+
+int vhci_set_force_static_address(struct vhci *vhci, bool enable)
+{
+	char val;
+
+	val = (enable) ? 'Y' : 'N';
+
+	return vhci_debugfs_write(vhci, "force_static_address", &val,
+							sizeof(val));
+}
emulator/vhci.h +1 -0
index c42e8bde1cd5..6da56cb589fe 100644
@@ -28,3 +28,4 @@ int vhci_set_force_wakeup(struct vhci *vhci, bool enable);
 int vhci_set_msft_opcode(struct vhci *vhci, uint16_t opcode);
 int vhci_set_aosp_capable(struct vhci *vhci, bool enable);
 int vhci_set_emu_opcode(struct vhci *vhci, uint16_t opcode);
+int vhci_set_force_static_address(struct vhci *vhci, bool enable);
Signature · 1 line
2.37.3
#1 lore raw

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=683837

---Test result---

Test Summary:

CheckPatch                    PASS      1.09 seconds
GitLint                       PASS      0.76 seconds
Prep - Setup ELL              PASS      26.35 seconds
Build - Prep                  PASS      0.71 seconds
Build - Configure             PASS      8.27 seconds
Build - Make                  PASS      743.03 seconds
Make Check                    PASS      11.88 seconds
Make Check w/Valgrind         PASS      288.41 seconds
Make Distcheck                PASS      235.27 seconds
Build w/ext ELL - Configure   PASS      8.28 seconds
Build w/ext ELL - Make        PASS      85.03 seconds
Incremental Build w/ patches  PASS      0.00 seconds
Scan Build                    PASS      494.72 seconds

---
Regards,
Linux Bluetooth

#2 lore raw
In reply to Luiz Augusto von Dentz
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 8 lines · On Fri, 7 Oct 2022 15:55:27 -0700 you wrote:

From: Luiz Augusto von Dentz <[email protected]>

This adds functions that can be used to set debugfs force_static_address.

---
 emulator/vhci.c | 10 ++++++++++
 emulator/vhci.h |  1 +
 2 files changed, 11 insertions(+)

Here is the summary with links:
- [BlueZ] vhci: Add function to interact with force_static_address

    https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=c2bf15137410

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html