* [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ @ 2010-02-17 12:49 Stefan Seyfried 2010-02-17 12:49 ` [PATCH 1/2] Fix compilation with bluez 4.61's changed hci.h Stefan Seyfried 2010-02-18 10:12 ` [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried 0 siblings, 2 replies; 4+ messages in thread From: Stefan Seyfried @ 2010-02-17 12:49 UTC (permalink / raw) To: BlueZ development; +Cc: Marcel Holtmann Bluez 4.61 broke compilation of hcidump. The first patch fixes this for bluez 4.61, the second patch implements an (admittedly ugly) hack to also allow to compile hcidump with older bluez versions. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] Fix compilation with bluez 4.61's changed hci.h 2010-02-17 12:49 [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried @ 2010-02-17 12:49 ` Stefan Seyfried 2010-02-17 12:49 ` [PATCH 2/2] Add hack to allow compilation with old bluez lib Stefan Seyfried 2010-02-18 10:12 ` [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried 1 sibling, 1 reply; 4+ messages in thread From: Stefan Seyfried @ 2010-02-17 12:49 UTC (permalink / raw) To: BlueZ development; +Cc: Marcel Holtmann, Stefan Seyfried From: Stefan Seyfried <seife@sphairon.com> --- parser/hci.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parser/hci.c b/parser/hci.c index f1507fc..e4fc473 100644 --- a/parser/hci.c +++ b/parser/hci.c @@ -1973,7 +1973,7 @@ static inline void read_ext_inquiry_response_dump(int level, struct frame *frm) static inline void read_inquiry_transmit_power_level_dump(int level, struct frame *frm) { - read_inquiry_transmit_power_level_rp *rp = frm->ptr; + read_inq_response_tx_power_level_rp *rp = frm->ptr; p_indent(level, frm); printf("status 0x%2.2x level %d\n", rp->status, rp->level); @@ -2325,7 +2325,7 @@ static inline void cmd_complete_dump(int level, struct frame *frm) case OCF_READ_EXT_INQUIRY_RESPONSE: read_ext_inquiry_response_dump(level, frm); return; - case OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL: + case OCF_READ_INQ_RESPONSE_TX_POWER_LEVEL: read_inquiry_transmit_power_level_dump(level, frm); return; case OCF_READ_DEFAULT_ERROR_DATA_REPORTING: -- 1.6.6.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] Add hack to allow compilation with old bluez lib 2010-02-17 12:49 ` [PATCH 1/2] Fix compilation with bluez 4.61's changed hci.h Stefan Seyfried @ 2010-02-17 12:49 ` Stefan Seyfried 0 siblings, 0 replies; 4+ messages in thread From: Stefan Seyfried @ 2010-02-17 12:49 UTC (permalink / raw) To: BlueZ development; +Cc: Marcel Holtmann, Stefan Seyfried From: Stefan Seyfried <seife@sphairon.com> --- parser/hci.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/parser/hci.c b/parser/hci.c index e4fc473..33c3640 100644 --- a/parser/hci.c +++ b/parser/hci.c @@ -41,6 +41,12 @@ #include <bluetooth/hci.h> #include <bluetooth/hci_lib.h> +/* ugly hack, as hci.h changed incompatibly with bluez 4.61 */ +#ifndef OCF_READ_INQ_RESPONSE_TX_POWER_LEVEL +#define OCF_READ_INQ_RESPONSE_TX_POWER_LEVEL OCF_READ_INQUIRY_TRANSMIT_POWER_LEVEL +#define read_inq_response_tx_power_level_rp read_inquiry_transmit_power_level_rp +#endif + #include "parser.h" static uint16_t manufacturer = DEFAULT_COMPID; -- 1.6.6.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ 2010-02-17 12:49 [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried 2010-02-17 12:49 ` [PATCH 1/2] Fix compilation with bluez 4.61's changed hci.h Stefan Seyfried @ 2010-02-18 10:12 ` Stefan Seyfried 1 sibling, 0 replies; 4+ messages in thread From: Stefan Seyfried @ 2010-02-18 10:12 UTC (permalink / raw) To: linux-bluetooth; +Cc: Marcel Holtmann Hi Marcel, On Wed, 17 Feb 2010 13:49:40 +0100 Stefan Seyfried <stefan.seyfried@googlemail.com> wrote: > Bluez 4.61 broke compilation of hcidump. > The first patch fixes this for bluez 4.61, the second patch implements an > (admittedly ugly) hack to also allow to compile hcidump with older bluez > versions. Is there anything grossly wrong with these patches (apart from the admitted ugliness ;) so they get ignored or do I have an email problem with git-send-email on my side? Thanks, seife -- Stefan Seyfried "Any ideas, John?" "Well, surrounding them's out." ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-18 10:12 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-02-17 12:49 [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried 2010-02-17 12:49 ` [PATCH 1/2] Fix compilation with bluez 4.61's changed hci.h Stefan Seyfried 2010-02-17 12:49 ` [PATCH 2/2] Add hack to allow compilation with old bluez lib Stefan Seyfried 2010-02-18 10:12 ` [Patch 0/2] Resend: Fix hcidump compilation with bluez-4.61+ Stefan Seyfried
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).