* [PATCH bluez 0/2] Definitions needed for hcidump
@ 2011-10-18 7:11 Emeltchenko Andrei
2011-10-18 7:11 ` [PATCH bluez 1/2] add definitions for L2CAP fixed channels Emeltchenko Andrei
2011-10-18 7:11 ` [PATCH bluez 2/2] add btohll / htobll macros Emeltchenko Andrei
0 siblings, 2 replies; 5+ messages in thread
From: Emeltchenko Andrei @ 2011-10-18 7:11 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Those definitions are used in decoding L2CAP fixed channels
Andrei Emeltchenko (2):
add definitions for L2CAP fixed channels
add btohll / htobll macros
lib/bluetooth.h | 4 ++++
lib/l2cap.h | 5 +++++
2 files changed, 9 insertions(+), 0 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH bluez 1/2] add definitions for L2CAP fixed channels
2011-10-18 7:11 [PATCH bluez 0/2] Definitions needed for hcidump Emeltchenko Andrei
@ 2011-10-18 7:11 ` Emeltchenko Andrei
2011-10-18 7:56 ` Johan Hedberg
2011-10-18 7:11 ` [PATCH bluez 2/2] add btohll / htobll macros Emeltchenko Andrei
1 sibling, 1 reply; 5+ messages in thread
From: Emeltchenko Andrei @ 2011-10-18 7:11 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
---
lib/l2cap.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/l2cap.h b/lib/l2cap.h
index 47b3dc3..3880551 100644
--- a/lib/l2cap.h
+++ b/lib/l2cap.h
@@ -139,6 +139,11 @@ struct l2cap_conninfo {
#define L2CAP_SDULEN_SIZE 2
+/* L2CAP fixed channels */
+#define L2CAP_FC_L2CAP 0x02
+#define L2CAP_FC_CONNLESS 0x04
+#define L2CAP_FC_A2MP 0x08
+
/* L2CAP structures */
typedef struct {
uint16_t len;
--
1.7.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH bluez 2/2] add btohll / htobll macros
2011-10-18 7:11 [PATCH bluez 0/2] Definitions needed for hcidump Emeltchenko Andrei
2011-10-18 7:11 ` [PATCH bluez 1/2] add definitions for L2CAP fixed channels Emeltchenko Andrei
@ 2011-10-18 7:11 ` Emeltchenko Andrei
1 sibling, 0 replies; 5+ messages in thread
From: Emeltchenko Andrei @ 2011-10-18 7:11 UTC (permalink / raw)
To: linux-bluetooth
From: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
handle 64 bit swap
---
lib/bluetooth.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/bluetooth.h b/lib/bluetooth.h
index 738e07a..b0680e2 100644
--- a/lib/bluetooth.h
+++ b/lib/bluetooth.h
@@ -93,13 +93,17 @@ enum {
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define htobs(d) (d)
#define htobl(d) (d)
+#define htobll(d) (d)
#define btohs(d) (d)
#define btohl(d) (d)
+#define btohll(d) (d)
#elif __BYTE_ORDER == __BIG_ENDIAN
#define htobs(d) bswap_16(d)
#define htobl(d) bswap_32(d)
+#define htobll(d) bswap_64(d)
#define btohs(d) bswap_16(d)
#define btohl(d) bswap_32(d)
+#define btohll(d) bswap_64(d)
#else
#error "Unknown byte order"
#endif
--
1.7.4.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH bluez 1/2] add definitions for L2CAP fixed channels
2011-10-18 7:11 ` [PATCH bluez 1/2] add definitions for L2CAP fixed channels Emeltchenko Andrei
@ 2011-10-18 7:56 ` Johan Hedberg
2011-10-18 8:25 ` Emeltchenko Andrei
0 siblings, 1 reply; 5+ messages in thread
From: Johan Hedberg @ 2011-10-18 7:56 UTC (permalink / raw)
To: Emeltchenko Andrei; +Cc: linux-bluetooth
Hi Andrei,
On Tue, Oct 18, 2011, Emeltchenko Andrei wrote:
> ---
> lib/l2cap.h | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/lib/l2cap.h b/lib/l2cap.h
> index 47b3dc3..3880551 100644
> --- a/lib/l2cap.h
> +++ b/lib/l2cap.h
> @@ -139,6 +139,11 @@ struct l2cap_conninfo {
>
> #define L2CAP_SDULEN_SIZE 2
>
> +/* L2CAP fixed channels */
> +#define L2CAP_FC_L2CAP 0x02
> +#define L2CAP_FC_CONNLESS 0x04
> +#define L2CAP_FC_A2MP 0x08
> +
> /* L2CAP structures */
> typedef struct {
> uint16_t len;
This doesn't apply to current bluez.git.
Johan
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH bluez 1/2] add definitions for L2CAP fixed channels
2011-10-18 7:56 ` Johan Hedberg
@ 2011-10-18 8:25 ` Emeltchenko Andrei
0 siblings, 0 replies; 5+ messages in thread
From: Emeltchenko Andrei @ 2011-10-18 8:25 UTC (permalink / raw)
To: linux-bluetooth
Hi Johan,
On Tue, Oct 18, 2011 at 10:56:10AM +0300, Johan Hedberg wrote:
> > ---
> > lib/l2cap.h | 5 +++++
> > 1 files changed, 5 insertions(+), 0 deletions(-)
> >
> > diff --git a/lib/l2cap.h b/lib/l2cap.h
> > index 47b3dc3..3880551 100644
> > --- a/lib/l2cap.h
> > +++ b/lib/l2cap.h
> > @@ -139,6 +139,11 @@ struct l2cap_conninfo {
> >
> > #define L2CAP_SDULEN_SIZE 2
> >
> > +/* L2CAP fixed channels */
> > +#define L2CAP_FC_L2CAP 0x02
> > +#define L2CAP_FC_CONNLESS 0x04
> > +#define L2CAP_FC_A2MP 0x08
> > +
> > /* L2CAP structures */
> > typedef struct {
> > uint16_t len;
>
> This doesn't apply to current bluez.git.
Sorry, rebased to bluez from kernel.org and rearranged my patches.
Best regards
Andrei Emeltchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-10-18 8:25 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-18 7:11 [PATCH bluez 0/2] Definitions needed for hcidump Emeltchenko Andrei
2011-10-18 7:11 ` [PATCH bluez 1/2] add definitions for L2CAP fixed channels Emeltchenko Andrei
2011-10-18 7:56 ` Johan Hedberg
2011-10-18 8:25 ` Emeltchenko Andrei
2011-10-18 7:11 ` [PATCH bluez 2/2] add btohll / htobll macros Emeltchenko Andrei
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).