monitor: Fix the incorrect vendor name
Subsystems (2)
A message that is not in the archive (sent off-list or not yet received): Tedd Ho-Jeong An <[email protected]
From: Tedd Ho-Jeong An <[email protected]>
This patch fixes the vendor name is alwasy shown as "Microsoft" even though a different vendor.
< 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/packet.c | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)monitor/packet.c +3 -9
@@ -9325,18 +9325,12 @@ static const char *get_supported_command(int bit)static const char *current_vendor_str (void ) { -uint16_t manufacturer, msft_opcode; +uint16_t manufacturer; -if (index_current <MAX_INDEX ) { +if (index_current <MAX_INDEX ) manufacturer = index_list[index_current].manufacturer; - msft_opcode = index_list[index_current].msft_opcode; - }else { +else manufacturer = fallback_manufacturer; - msft_opcode =BT_HCI_CMD_NOP ; - } - -if (msft_opcode !=BT_HCI_CMD_NOP ) -return "Microsoft" ;switch (manufacturer) {case 2 :
Signature · 1 line
2.25.1
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=466779
---Test result---
Test Summary:
CheckPatch PASS 0.39 seconds GitLint PASS 0.10 seconds Prep - Setup ELL PASS 44.99 seconds Build - Prep PASS 0.10 seconds Build - Configure PASS 7.84 seconds Build - Make PASS 187.18 seconds Make Check PASS 9.45 seconds Make Dist PASS 12.13 seconds Make Dist - Configure PASS 4.91 seconds Make Dist - Make PASS 79.26 seconds Build w/ext ELL - Configure PASS 7.94 seconds Build w/ext ELL - Make PASS 181.20 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
Marcel Holtmann
maintainerHi Tedd,
Quoted 25 lines
This patch fixes the vendor name is alwasy shown as "Microsoft" even though a different vendor.
< HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249
Type: Data fragment (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4Microsoft Secure Send (0x3f|0x0009) ncmd 31 Status: Success (0x00) --- monitor/packet.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)monitor/packet.c +2
-2@@ -9325,18 +9325,12 @@ static const char *get_supported_command(int bit)static const char *current_vendor_str (void ) { -uint16_t manufacturer, msft_opcode; +uint16_t manufacturer; -if (index_current <MAX_INDEX ) { +if (index_current <MAX_INDEX )
monitor/packet.c static const char *get_supported_command(int bit) · line 9339
Quoted 10 lines
monitor/packet.c +1
-7manufacturer = index_list[index_current].manufacturer; - msft_opcode = index_list[index_current].msft_opcode; - }else { + else manufacturer = fallback_manufacturer; - msft_opcode =BT_HCI_CMD_NOP ; - } - -if (msft_opcode !=BT_HCI_CMD_NOP ) -return "Microsoft" ;
seems we have a bug here, but the fix can not be correct either. If we are running on Intel firmware and the Microsoft extension is used, it should show Microsoft and not Intel for the vendor commands.
Regards
Marcel
Hi Marcel,
On 4/14/21, 3:09 AM, "Marcel Holtmann" <[email protected]> wrote:
Hi Tedd,
> This patch fixes the vendor name is alwasy shown as "Microsoft" even
> though a different vendor.
>
> < HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249
> Type: Data fragment (0x01)
>> HCI Event: Command Complete (0x0e) plen 4
> Microsoft Secure Send (0x3f|0x0009) ncmd 31
> Status: Success (0x00)
> ---
> monitor/packet.c | 12 +++---------
> 1 file changed, 3 insertions(+), 9 deletions(-)
>
> diff --git a/monitor/packet.c b/monitor/packet.c
> index d729a01cc..91d2294ff 100644
> --- a/monitor/packet.c
> +++ b/monitor/packet.c
> @@ -9325,18 +9325,12 @@ static const char *get_supported_command(int bit)
>
> static const char *current_vendor_str(void)
> {
> - uint16_t manufacturer, msft_opcode;
> + uint16_t manufacturer;
>
> - if (index_current < MAX_INDEX) {
> + if (index_current < MAX_INDEX)
> manufacturer = index_list[index_current].manufacturer;
> - msft_opcode = index_list[index_current].msft_opcode;
> - } else {
> + else
> manufacturer = fallback_manufacturer;
> - msft_opcode = BT_HCI_CMD_NOP;
> - }
> -
> - if (msft_opcode != BT_HCI_CMD_NOP)
> - return "Microsoft";
seems we have a bug here, but the fix can not be correct either. If we are running on Intel firmware and the Microsoft extension is used, it should show Microsoft and not Intel for the vendor commands.I submitted v2 and I think I took care of the msft_opcode handling but I realized that the msft_event_opcode is also like msft_opcode - each vendor will have a different value. I know the msft_event_code for Intel, which is 0x50, but don't know for Realtek. (Do you happen to know?)
I changed the v2 to RFC for your further comments.
Regards
Marcel
Regards,
Tedd
Hi Tedd,
Quoted 45 lines · Tedd
Hi Marcel,
On 4/14/21, 3:09 AM, "Marcel Holtmann" <[email protected]> wrote:
Hi Tedd, > This patch fixes the vendor name is alwasy shown as "Microsoft" even > though a different vendor. > > < HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249 > Type: Data fragment (0x01) >> HCI Event: Command Complete (0x0e) plen 4 > Microsoft Secure Send (0x3f|0x0009) ncmd 31 > Status: Success (0x00) > --- > monitor/packet.c | 12 +++--------- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/monitor/packet.c b/monitor/packet.c > index d729a01cc..91d2294ff 100644 > --- a/monitor/packet.c > +++ b/monitor/packet.c > @@ -9325,18 +9325,12 @@ static const char *get_supported_command(int bit) > > static const char *current_vendor_str(void) > { > - uint16_t manufacturer, msft_opcode; > + uint16_t manufacturer; > > - if (index_current < MAX_INDEX) { > + if (index_current < MAX_INDEX) > manufacturer = index_list[index_current].manufacturer; > - msft_opcode = index_list[index_current].msft_opcode; > - } else { > + else > manufacturer = fallback_manufacturer; > - msft_opcode = BT_HCI_CMD_NOP; > - } > - > - if (msft_opcode != BT_HCI_CMD_NOP) > - return "Microsoft"; seems we have a bug here, but the fix can not be correct either. If we are running on Intel firmware and the Microsoft extension is used, it should show Microsoft and not Intel for the vendor commands.
Quoted 2 lines
I submitted v2 and I think I took care of the
msft_opcodehandling but I realized that themsft_event_opcodeis also likemsft_opcode- each vendor will have a different value. I know themsft_event_codefor Intel, which is0x50, but don't know for Realtek. (Do you happen to know?)
On my Realtek device the msft_event_code is 8 bytes long: 0x23 0x79 0x54 0x33 0x77 0x88 0x97 0x68.
localhost ~ # hcitool cmd 0x3f 0xf0 0x00
< HCI Command: ogf 0x3f, ocf 0x00f0, plen 1
00
Quoted 1 line
HCI Event:
0x0eplen 22
02 F0 FC 00 00 3F 00 00 00 00 00 00 00 08 23 79 54 33 77 88 97 68
Quoted 9 lines
I changed the v2 to RFC for your further comments.
Regards
Marcel
Regards,
Tedd
Cheers,
Archie
Hi Archie,
Quoted 59 lines · Archie Pusaka
Hi Tedd,
Quoted 47 lines · Tedd
Hi Marcel,
On 4/14/21, 3:09 AM, "Marcel Holtmann" <[email protected]> wrote:
Hi Tedd, > This patch fixes the vendor name is alwasy shown as "Microsoft" even > though a different vendor. > > < HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249 > Type: Data fragment (0x01) >> HCI Event: Command Complete (0x0e) plen 4 > Microsoft Secure Send (0x3f|0x0009) ncmd 31 > Status: Success (0x00) > --- > monitor/packet.c | 12 +++--------- > 1 file changed, 3 insertions(+), 9 deletions(-) > > diff --git a/monitor/packet.c b/monitor/packet.c > index d729a01cc..91d2294ff 100644 > --- a/monitor/packet.c > +++ b/monitor/packet.c > @@ -9325,18 +9325,12 @@ static const char *get_supported_command(intbit)
Quoted 9 lines
static const char
*current_vendor_str(void)
{
-uint16_tmanufacturer,msft_opcode;
+uint16_tmanufacturer;- if (
index_current<MAX_INDEX) {
+ if (index_current<MAX_INDEX)manufacturer = index_list[index_current].manufacturer;monitor/packet.c static const char *get_supported_command(int bit) · line 9339
Quoted 9 lines
monitor/packet.c +1
-7- msft_opcode = index_list[index_current].msft_opcode; - }else { +else manufacturer = fallback_manufacturer; - msft_opcode =BT_HCI_CMD_NOP ; - } - -if (msft_opcode !=BT_HCI_CMD_NOP ) -return "Microsoft" ;seems we have a bug here, but the fix can not be correct either. If we
are running on Intel firmware and the Microsoft extension is used, it should show Microsoft and not Intel for the vendor commands.Quoted 5 lines
I submitted v2 and I think I took care of the
msft_opcodehandling but I realized that themsft_event_opcodeis also likemsft_opcode- each vendor will have a different value.
I know themsft_event_codefor Intel, which is0x50, but don't know for Realtek. (Do you happen to know?)On my Realtek device the
msft_event_codeis 8 bytes long:0x230x790x540x330x770x880x970x68.
Quoted 7 lines
localhost ~ # hcitool cmd
0x3f0xf00x00
< HCI Command: ogf0x3f, ocf0x00f0, plen 1
00Quoted 1 line
HCI Event:
0x0eplen 2202 F0 FC 00 00 3F 00 00 00 00 00 00 00 08 23 79 54 33 77 88 97 68
Thanks for the info.
I am going to change the pat to support "variable" length of msft_event_code.
Quoted 12 lines
Quoted 9 lines
I changed the v2 to RFC for your further comments.
Regards
Marcel
Regards,
TeddCheers,
Archie
Marcel Holtmann
maintainerHi Archie,
Quoted 38 lines
Quoted 38 lines
Quoted 25 lines
This patch fixes the vendor name is alwasy shown as "Microsoft" even though a different vendor.
< HCI Command: Microsoft Secure Send (0x3f|0x0009) plen 249
Type: Data fragment (0x01)Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 4Microsoft Secure Send (0x3f|0x0009) ncmd 31 Status: Success (0x00) --- monitor/packet.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-)monitor/packet.c +2
-2@@ -9325,18 +9325,12 @@ static const char *get_supported_command(int bit)static const char *current_vendor_str (void ) { -uint16_t manufacturer, msft_opcode; +uint16_t manufacturer; -if (index_current <MAX_INDEX ) { +if (index_current <MAX_INDEX )monitor/packet.c static const char *get_supported_command(int bit) · line 9339
Quoted 10 lines
monitor/packet.c +1
-7manufacturer = index_list[index_current].manufacturer; - msft_opcode = index_list[index_current].msft_opcode; - }else { + else manufacturer = fallback_manufacturer; - msft_opcode =BT_HCI_CMD_NOP ; - } - -if (msft_opcode !=BT_HCI_CMD_NOP ) -return "Microsoft" ;seems we have a bug here, but the fix can not be correct either. If we are running on Intel firmware and the Microsoft extension is used, it should show Microsoft and not Intel for the vendor commands.
Quoted 5 lines
Quoted 2 lines
I submitted v2 and I think I took care of the
msft_opcodehandling but I realized that themsft_event_opcodeis also likemsft_opcode- each vendor will have a different value. I know themsft_event_codefor Intel, which is0x50, but don't know for Realtek. (Do you happen to know?)On my Realtek device the
msft_event_codeis 8 bytes long:0x230x790x540x330x770x880x970x68.
I remember having seen different event prefixes for Realtek controllers. However after re-testing it seems to be the same.
My latest 5.1 dongle has this:
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 22
Microsoft Extension (0x3f|0x00f0) ncmd 2 Read Supported Features (0x00)
Status: Success (0x00)
Features: 0x3f 0x00 0x00 0x00 0x00 0x00 0x00 0x00
RSSI Monitoring feature for BR/EDR RSSI Monitoring feature for LE connections RSSI Monitoring of LE advertisements Advertising Monitoring of LE advertisements Verifying the validity of P-192 and P-256 keys Continuous Advertising Monitoring
Event prefix length: 8
23 79 54 33 77 88 97 68
And my older 4.2 dongle has this:
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 22
Microsoft Extension (0x3f|0x00f0) ncmd 2 Read Supported Features (0x00)
Status: Success (0x00)
Features: 0x0f 0x00 0x00 0x00 0x00 0x00 0x00 0x00
RSSI Monitoring feature for BR/EDR RSSI Monitoring feature for LE connections RSSI Monitoring of LE advertisements Advertising Monitoring of LE advertisements
Event prefix length: 8
23 79 54 33 77 88 97 68
Regards
Marcel
RFC v2 1/1 monitor: Fix the incorrect vendor name
In reply to a message not in the archiveFrom: Tedd Ho-Jeong An <[email protected]>
This patch fixes the vendor name is alwasy shown as "Microsoft".
< 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/packet.c | 56 +++++++++++++++++++++++++++++++++++++-----------
1 file changed, 44 insertions(+), 12 deletions(-)monitor/packet.c +44 -12
@@ -266,6 +266,7 @@ struct index_data {uint8_t bdaddr[6 ];uint16_t manufacturer;uint16_t msft_opcode; +uint8_t msft_evt_code;size_t frame; };
@@ -3940,6 +3941,7 @@ void packet_monitor(struct timeval *tv, struct ucred *cred,memcpy (index_list[index].bdaddr, ni->bdaddr,6 ); index_list[index].manufacturer = fallback_manufacturer; index_list[index].msft_opcode =BT_HCI_CMD_NOP ; + index_list[index].msft_evt_code =0x00 ; }addr2str (ni->bdaddr, str);
@@ -4006,9 +4008,11 @@ void packet_monitor(struct timeval *tv, struct ucred *cred,/* * Intel controllers that support the * Microsoft vendor extension are using -* 0xFC1E for VsMsftOpCode. +* 0xFC1E for VsMsftOpCode and 0x50 for event +* code. */ index_list[index].msft_opcode =0xFC1E ; + index_list[index].msft_evt_code =0x50 ;break ;case 93 :/*
@@ -9323,7 +9327,7 @@ static const char *get_supported_command(int bit)return NULL ; } -static const char *current_vendor_str (void ) +static const char *current_vendor_str (uint16_t ocf) {uint16_t manufacturer, msft_opcode;
@@ -9335,7 +9339,35 @@ static const char *current_vendor_str(void) msft_opcode =BT_HCI_CMD_NOP ; } -if (msft_opcode !=BT_HCI_CMD_NOP ) +if (msft_opcode !=BT_HCI_CMD_NOP && +cmd_opcode_ocf (msft_opcode) == ocf) +return "Microsoft" ; + +switch (manufacturer) { +case 2 : +return "Intel" ; +case 15 : +return "Broadcom" ; +case 93 : +return "Realtek" ; + } + +return NULL ; +} + +static const char *current_vendor_evt_str (uint8_t evt) +{ +uint16_t manufacturer, msft_evt_code; + +if (index_current <MAX_INDEX ) { + manufacturer = index_list[index_current].manufacturer; + msft_evt_code = index_list[index_current].msft_evt_code; + }else { + manufacturer = fallback_manufacturer; + msft_evt_code =0x00 ; + } + +if (msft_evt_code == evt)return "Microsoft" ;switch (manufacturer) {
@@ -9378,18 +9410,18 @@ static const struct vendor_ocf *current_vendor_ocf(uint16_t ocf)static const struct vendor_evt *current_vendor_evt (uint8_t evt) { -uint16_t manufacturer, msft_opcode; +uint16_t manufacturer, msft_evt_code;if (index_current <MAX_INDEX ) { manufacturer = index_list[index_current].manufacturer; - msft_opcode = index_list[index_current].msft_opcode; + msft_evt_code = index_list[index_current].msft_evt_code; }else { manufacturer = fallback_manufacturer; - msft_opcode =BT_HCI_CMD_NOP ; + msft_evt_code =0x00 ; } -if (msft_opcode !=BT_HCI_CMD_NOP ) -return NULL ; +if (msft_evt_code == evt) +return msft_vendor_evt ();switch (manufacturer) {case 2 :
@@ -9573,7 +9605,7 @@ static void cmd_complete_evt(const void *data, uint8_t size)const struct vendor_ocf *vnd =current_vendor_ocf (ocf);if (vnd) { -const char *str =current_vendor_str (); +const char *str =current_vendor_str (ocf);if (str) { snprintf(vendor_str, sizeof(vendor_str),
@@ -9665,7 +9697,7 @@ static void cmd_status_evt(const void *data, uint8_t size)const struct vendor_ocf *vnd =current_vendor_ocf (ocf);if (vnd) { -const char *str =current_vendor_str (); +const char *str =current_vendor_str (ocf);if (str) { snprintf(vendor_str, sizeof(vendor_str),
@@ -11018,7 +11050,7 @@ static void vendor_evt(const void *data, uint8_t size)const struct vendor_evt *vnd =current_vendor_evt (subevent);if (vnd) { -const char *str =current_vendor_str (); +const char *str =current_vendor_evt_str (subevent);if (str) { snprintf(vendor_str, sizeof(vendor_str),
@@ -11419,7 +11451,7 @@ void packet_hci_command(struct timeval *tv, struct ucred *cred, uint16_t index,const struct vendor_ocf *vnd =current_vendor_ocf (ocf);if (vnd) { -const char *str =current_vendor_str (); +const char *str =current_vendor_str (ocf);if (str) { snprintf(vendor_str, sizeof(vendor_str),
Signature · 1 line
2.25.1
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=467397
---Test result---
Test Summary:
CheckPatch PASS 0.36 seconds GitLint PASS 0.12 seconds Prep - Setup ELL PASS 48.80 seconds Build - Prep PASS 0.12 seconds Build - Configure PASS 8.55 seconds Build - Make PASS 204.79 seconds Make Check PASS 9.22 seconds Make Dist PASS 12.94 seconds Make Dist - Configure PASS 5.25 seconds Make Dist - Make PASS 84.41 seconds Build w/ext ELL - Configure PASS 8.55 seconds Build w/ext ELL - Make PASS 196.08 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
PATCH 1/1 monitor: Update manpage
In reply to a message not in the archiveFrom: Tedd Ho-Jeong An <[email protected]>
This patch updates the manpage for btmon.
--- Makefile.am | 10 +--- Makefile.tools | 3 + doc/btmon.txt | 35 ----------- monitor/btmon.1 | 152 ++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 156 insertions(+), 44 deletions(-) delete mode 100644 doc/btmon.txt create mode 100644 monitor/btmon.1
Makefile.am +1 -9
@@ -579,14 +579,6 @@ if LIBRARY pkgconfig_DATA = lib/bluez.pc endif -manual_pages = doc/btmon.1 - -if MANPAGES -dist_noinst_MANS += $(manual_pages) -endif - -EXTRA_DIST += $(manual_pages:.1=.txt) - DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \ --enable-health \ --enable-midi \
@@ -597,7 +589,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-datafiles --enable-library \ --disable-systemd \ --disable-udev -DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) $(manual_pages) +DISTCLEANFILES = $(pkgconfig_DATA) $(unit_tests) MAINTAINERCLEANFILES = Makefile.in \ aclocal.m4 configure config.h.in config.sub config.guess \
Makefile.tools +3 -0
@@ -49,6 +49,9 @@ monitor_btmon_SOURCES = monitor/main.c monitor/bt.h \ monitor/tty.h monitor_btmon_LDADD = lib/libbluetooth-internal.la \ src/libshared-mainloop.la $(UDEV_LIBS) -ldl +dist_man_MANS += monitor/btmon.1 +else +EXTRA_DIST += monitor/btmon.1 endif if LOGGER
doc/btmon.txt deleted +0 -35
@@ -1,35 +0,0 @@ -BTMON(1) -======== -:doctype: manpage - - -NAME ----- -btmon - Bluetooth monitor - - -SYNOPSIS --------- -*btmon* ['OPTIONS'] - - -DESCRIPTION ------------ -The btmon(1) command provides access to the Bluetooth subsystem monitor -infrastructure for reading HCI traces. - - -AUTHOR ------- -btmon was originally written by Marcel Holtmann. - - -RESOURCES ---------- -See <http://www.bluez.org/> - - -COPYING -------- -Free use of this software is granted under ther terms of the GNU Lesser -General Public Licenses (LGPL).
monitor/btmon.1 new file +152 -0
152 lines not on this page · raw message
Signature · 1 line
2.25.1
RE: [BlueZ] monitor: Update manpage
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=468265
---Test result---
Test Summary:
CheckPatch PASS 0.37 seconds GitLint PASS 0.12 seconds Prep - Setup ELL PASS 46.72 seconds Build - Prep PASS 0.11 seconds Build - Configure PASS 8.50 seconds Build - Make PASS 193.28 seconds Make Check PASS 9.69 seconds Make Dist PASS 13.37 seconds Make Dist - Configure PASS 5.64 seconds Make Dist - Make PASS 81.35 seconds Build w/ext ELL - Configure PASS 8.48 seconds Build w/ext ELL - Make PASS 186.76 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
PATCH 1/1 monitor: Add Intel read supported VS features command
In reply to a message not in the archiveFrom: Tedd Ho-Jeong An <[email protected]>
< HCI Command: Intel Read Supported VS Features (0x3f|0x00a6) plen 1
Page: 0x01
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 22
Intel Read Supported VS Features (0x3f|0x00a6) ncmd 1
Status: Success (0x00)
Page: 0x01
Max Pages: 0x02
Supported Features:
1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
---
monitor/intel.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)monitor/intel.c +23 -0
@@ -471,6 +471,25 @@ static void memory_write_cmd(const void *data, uint8_t size)packet_hexdump (data +6 , size -6 ); } +static void read_supported_vs_features_cmd (const void *data,uint8_t size) +{ +uint8_t page =get_u8 (data); +print_field ("Page: 0x%2.2x" , page); +} + +static void read_supported_vs_features_rsp (const void *data,uint8_t size) +{ +uint8_t status =get_u8 (data); +uint8_t page =get_u8 (data +1 ); +uint8_t max_pages =get_u8 (data +2 ); + +print_status (status); +print_field ("Page: 0x%2.2x" , page); +print_field ("Max Pages: 0x%2.2x" , max_pages); +print_field ("Supported Features:" ); +packet_hexdump (data +3 , size -3 ); +} +static const struct vendor_ocf vendor_ocf_table[] = { {0x001 ,"Reset" , reset_cmd,8 , true,
@@ -533,6 +552,10 @@ static const struct vendor_ocf vendor_ocf_table[] = { {0x08e ,"Memory Write" , memory_write_cmd,6 , false, status_rsp, 1, true }, + { 0x0a6, "Read Supported VS Features", + read_supported_vs_features_cmd,1 , true, + read_supported_vs_features_rsp, 19, true }, + { } };
Signature · 1 line
2.25.1
RE: [BlueZ] monitor: Add Intel read supported VS features command
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=468819
---Test result---
Test Summary:
CheckPatch FAIL 0.38 seconds GitLint PASS 0.13 seconds Prep - Setup ELL PASS 48.88 seconds Build - Prep PASS 0.15 seconds Build - Configure PASS 8.45 seconds Build - Make PASS 205.84 seconds Make Check PASS 9.07 seconds Make Dist PASS 11.93 seconds Make Dist - Configure PASS 5.23 seconds Make Dist - Make PASS 83.00 seconds Build w/ext ELL - Configure PASS 8.24 seconds Build w/ext ELL - Make PASS 194.16 seconds
Details
##############################
Test: CheckPatch - FAIL
Desc: Run checkpatch.pl script with rule in .checkpatch.conf Output:
monitor: Add Intel read supported VS features command WARNING:LINE_SPACING: Missing a blank line after declarations #27: FILE: monitor/intel.c:477:
+ uint8_t page = get_u8(data);
+ print_field("Page: 0x%2.2x", page);
- total: 0 errors, 1 warnings, 35 lines checked
NOTE: For some of the reported defects, checkpatch may be able to
mechanically convert to the typical style using --fix or --fix-inplace.
"[PATCH] monitor: Add Intel read supported VS features command" has style problems, please review.
NOTE: Ignored message types: COMMIT_MESSAGE COMPLEX_MACRO CONST_STRUCT FILE_PATH_CHANGES MISSING_SIGN_OFF PREFER_PACKED SPLIT_STRING SSCANF_TO_KSTRTO
NOTE: If any of the errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.
##############################
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
PATCH v2 1/1 monitor: Add Intel read supported VS features command
In reply to a message not in the archiveFrom: Tedd Ho-Jeong An <[email protected]>
< HCI Command: Intel Read Supported VS Features (0x3f|0x00a6) plen 1
Page: 0x01
Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 22
Intel Read Supported VS Features (0x3f|0x00a6) ncmd 1
Status: Success (0x00)
Page: 0x01
Max Pages: 0x02
Supported Features:
1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
---
monitor/intel.c | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)monitor/intel.c +24 -0
@@ -471,6 +471,26 @@ static void memory_write_cmd(const void *data, uint8_t size)packet_hexdump (data +6 , size -6 ); } +static void read_supported_vs_features_cmd (const void *data,uint8_t size) +{ +uint8_t page =get_u8 (data); + +print_field ("Page: 0x%2.2x" , page); +} + +static void read_supported_vs_features_rsp (const void *data,uint8_t size) +{ +uint8_t status =get_u8 (data); +uint8_t page =get_u8 (data +1 ); +uint8_t max_pages =get_u8 (data +2 ); + +print_status (status); +print_field ("Page: 0x%2.2x" , page); +print_field ("Max Pages: 0x%2.2x" , max_pages); +print_field ("Supported Features:" ); +packet_hexdump (data +3 , size -3 ); +} +static const struct vendor_ocf vendor_ocf_table[] = { {0x001 ,"Reset" , reset_cmd,8 , true,
@@ -533,6 +553,10 @@ static const struct vendor_ocf vendor_ocf_table[] = { {0x08e ,"Memory Write" , memory_write_cmd,6 , false, status_rsp, 1, true }, + { 0x0a6, "Read Supported VS Features", + read_supported_vs_features_cmd,1 , true, + read_supported_vs_features_rsp, 19, true }, + { } };
Signature · 1 line
2.25.1
RE: [BlueZ,v2] monitor: Add Intel read supported VS features command
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=468919
---Test result---
Test Summary:
CheckPatch PASS 0.37 seconds GitLint PASS 0.12 seconds Prep - Setup ELL PASS 51.15 seconds Build - Prep PASS 0.15 seconds Build - Configure PASS 8.88 seconds Build - Make PASS 224.08 seconds Make Check PASS 9.67 seconds Make Dist PASS 13.41 seconds Make Dist - Configure PASS 5.66 seconds Make Dist - Make PASS 91.53 seconds Build w/ext ELL - Configure PASS 9.04 seconds Build w/ext ELL - Make PASS 208.59 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
Marcel Holtmann
maintainerRe: [BlueZ v2] monitor: Add Intel read supported VS features command
In reply to Tedd Ho-Jeong AnHi Tedd,
Quoted 9 lines
< HCI Command: Intel Read Supported VS Features (0x3f|0x00a6) plen 1
Page: 0x01Quoted 1 line
HCI Event: Command Complete (
0x0e) plen 22Intel Read Supported VS Features (0x3f|0x00a6) ncmd 1 Status: Success (0x00) Page: 0x01 Max Pages: 0x02 Supported Features: 1f 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
scrap the VS part of the name. I never used it since we prefix them with “Intel“ anyway.
Regards
Marcel