Skip to contentSkip to conversation

monitor: Fix the incorrect vendor name

PATCH Superseded Tedd Ho-Jeong An 3 participants 3 messages Apr 21, 2021 Bluetooth drivers

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/1 monitor: Fix the incorrect vendor name

From: Tedd Ho-Jeong An <[email protected]>

This patch fixes the vendor name is alwasy shown as "Microsoft" for the commands and Unknown name for vendor events.

< HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249

        Type: Data fragment (0x01)
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 4

      Microsoft Secure Send (0x3f|0x0009) ncmd 31
        Status: Success (0x00)
---
 monitor/msft.h   |   6 +++
 monitor/packet.c | 131 ++++++++++++++++++++++++++++++++++++++---------
 2 files changed, 113 insertions(+), 24 deletions(-)
monitor/msft.h +6 -0
index a268f4bc7..7573b5ba1 100644
@@ -24,6 +24,12 @@
 
 #include <stdint.h>
 
+struct msft_ext {
+	uint16_t opcode;
+	uint8_t  evt_prefix_len;
+	uint8_t  evt_prefix[32];
+};
+
 struct vendor_ocf;
 struct vendor_evt;
 
monitor/packet.c +107 -24

227 lines not on this page · raw message

Signature · 1 line
2.25.1
#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=470617

---Test result---

Test Summary:

CheckPatch                    PASS      0.54 seconds
GitLint                       PASS      0.11 seconds
Prep - Setup ELL              PASS      48.15 seconds
Build - Prep                  PASS      0.14 seconds
Build - Configure             PASS      8.32 seconds
Build - Make                  PASS      205.14 seconds
Make Check                    PASS      9.13 seconds
Make Dist                     PASS      12.34 seconds
Make Dist - Configure         PASS      5.17 seconds
Make Dist - Make              PASS      84.35 seconds
Build w/ext ELL - Configure   PASS      8.62 seconds
Build w/ext ELL - Make        PASS      196.41 seconds

Details
##############################
Test: CheckPatch - PASS
Desc: Run checkpatch.pl script with rule in .checkpatch.conf

##############################
Test: GitLint - PASS
Desc: Run gitlint with rule in .gitlint

##############################
Test: Prep - Setup ELL - PASS
Desc: Clone, build, and install ELL

##############################
Test: Build - Prep - PASS
Desc: Prepare environment for build

##############################
Test: Build - Configure - PASS
Desc: Configure the BlueZ source tree

##############################
Test: Build - Make - PASS
Desc: Build the BlueZ source tree

##############################
Test: Make Check - PASS
Desc: Run 'make check'

##############################
Test: Make Dist - PASS
Desc: Run 'make dist' and build the distribution tarball

##############################
Test: Make Dist - Configure - PASS
Desc: Configure the source from distribution tarball

##############################
Test: Make Dist - Make - PASS
Desc: Build the source from distribution tarball

##############################
Test: Build w/ext ELL - Configure - PASS
Desc: Configure BlueZ source with '--enable-external-ell' configuration

##############################
Test: Build w/ext ELL - Make - PASS
Desc: Build BlueZ source with '--enable-external-ell' configuration

---
Regards,
Linux Bluetooth

maintainer
#2 lore raw
In reply to Tedd Ho-Jeong An

Hi Tedd,

Quoted 35 lines

This patch fixes the vendor name is alwasy shown as "Microsoft" for the commands and Unknown name for vendor events.

< HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249

       Type: Data fragment (0x01)
Quoted 1 line

HCI Event: Command Complete (0x0e) plen 4

     Microsoft Secure Send (0x3f|0x0009) ncmd 31
       Status: Success (0x00)
---
monitor/msft.h   |   6 +++
monitor/packet.c | 131 ++++++++++++++++++++++++++++++++++++++---------
2 files changed, 113 insertions(+), 24 deletions(-)
monitor/msft.h +6 -0
index a268f4bc7..7573b5ba1 100644
@@ -24,6 +24,12 @@
 
 #include <stdint.h>
 
+struct msft_ext {
+	uint16_t opcode;
+	uint8_t  evt_prefix_len;
+	uint8_t  evt_prefix[32];
+};
+
 struct vendor_ocf;
 struct vendor_evt;
 
monitor/packet.c +0 -0
index d729a01cc..6df96df48 100644

monitor/packet.c struct index_data { · line 268

Quoted 5 lines
monitor/packet.c +1 -1
@@ -265,7 +265,7 @@ struct index_data {
 	uint8_t  type;
 	uint8_t  bdaddr[6];
 	uint16_t manufacturer;
-	uint16_t msft_opcode;
+	struct msft_ext msft_ext;

don’t bother with the struct, just add the extra needed variables right here.

Regards

Marcel