linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: Handle the common profile & service ecode
@ 2015-04-14 11:37 Gowtham Anandha Babu
  2015-04-16 13:53 ` Gowtham Anandha Babu
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham Anandha Babu @ 2015-04-14 11:37 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: bharat.panda, cpgs, Gowtham Anandha Babu

Handles the common profile and service error codes sent over the
Attribute Protocol in btgatt-client and monitor.
---
 monitor/l2cap.c       | 9 +++++++++
 tools/btgatt-client.c | 6 ++++++
 2 files changed, 15 insertions(+)

diff --git a/monitor/l2cap.c b/monitor/l2cap.c
index fc565b1..55efa54 100644
--- a/monitor/l2cap.c
+++ b/monitor/l2cap.c
@@ -2046,6 +2046,15 @@ static void att_error_response(const struct l2cap_frame *frame)
 	case 0x11:
 		str = "Insufficient Resources";
 		break;
+	case 0xfd:
+		str = "CCC Improperly Configured";
+		break;
+	case 0xfe:
+		str = "Procedure Already in Progress";
+		break;
+	case 0xff:
+		str = "Out of Range";
+		break;
 	default:
 		str = "Reserved";
 		break;
diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c
index ee5315d..3935a7e 100644
--- a/tools/btgatt-client.c
+++ b/tools/btgatt-client.c
@@ -114,6 +114,12 @@ static const char *ecode_to_string(uint8_t ecode)
 		return "Group type Not Supported";
 	case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
 		return "Insufficient Resources";
+	case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
+		return "CCC Improperly Configured";
+	case BT_ERROR_ALREADY_IN_PROGRESS:
+		return "Procedure Already in Progress";
+	case BT_ERROR_OUT_OF_RANGE:
+		return "Out of Range";
 	default:
 		return "Unknown error type";
 	}
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* RE: [PATCH] tools: Handle the common profile & service ecode
  2015-04-14 11:37 [PATCH] tools: Handle the common profile & service ecode Gowtham Anandha Babu
@ 2015-04-16 13:53 ` Gowtham Anandha Babu
  2015-04-21 12:23   ` Gowtham Anandha Babu
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham Anandha Babu @ 2015-04-16 13:53 UTC (permalink / raw)
  To: linux-bluetooth

Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> Sent: Tuesday, April 14, 2015 5:08 PM
> To: linux-bluetooth@vger.kernel.org
> Cc: bharat.panda@samsung.com; cpgs@samsung.com; Gowtham Anandha
> Babu
> Subject: [PATCH] tools: Handle the common profile & service ecode
> 
> Handles the common profile and service error codes sent over the Attribute
> Protocol in btgatt-client and monitor.
> ---
>  monitor/l2cap.c       | 9 +++++++++
>  tools/btgatt-client.c | 6 ++++++
>  2 files changed, 15 insertions(+)
> 
> diff --git a/monitor/l2cap.c b/monitor/l2cap.c index fc565b1..55efa54
100644
> --- a/monitor/l2cap.c
> +++ b/monitor/l2cap.c
> @@ -2046,6 +2046,15 @@ static void att_error_response(const struct
> l2cap_frame *frame)
>  	case 0x11:
>  		str = "Insufficient Resources";
>  		break;
> +	case 0xfd:
> +		str = "CCC Improperly Configured";
> +		break;
> +	case 0xfe:
> +		str = "Procedure Already in Progress";
> +		break;
> +	case 0xff:
> +		str = "Out of Range";
> +		break;
>  	default:
>  		str = "Reserved";
>  		break;
> diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index
> ee5315d..3935a7e 100644
> --- a/tools/btgatt-client.c
> +++ b/tools/btgatt-client.c
> @@ -114,6 +114,12 @@ static const char *ecode_to_string(uint8_t ecode)
>  		return "Group type Not Supported";
>  	case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
>  		return "Insufficient Resources";
> +	case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
> +		return "CCC Improperly Configured";
> +	case BT_ERROR_ALREADY_IN_PROGRESS:
> +		return "Procedure Already in Progress";
> +	case BT_ERROR_OUT_OF_RANGE:
> +		return "Out of Range";
>  	default:
>  		return "Unknown error type";
>  	}
> --
> 1.9.1
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
> the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] tools: Handle the common profile & service ecode
  2015-04-16 13:53 ` Gowtham Anandha Babu
@ 2015-04-21 12:23   ` Gowtham Anandha Babu
  2015-05-15  5:15     ` Gowtham Anandha Babu
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham Anandha Babu @ 2015-04-21 12:23 UTC (permalink / raw)
  To: linux-bluetooth

Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> Sent: Thursday, April 16, 2015 7:23 PM
> To: linux-bluetooth@vger.kernel.org
> Subject: RE: [PATCH] tools: Handle the common profile & service ecode
> 
> Ping.
> 
> > -----Original Message-----
> > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> > owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> > Sent: Tuesday, April 14, 2015 5:08 PM
> > To: linux-bluetooth@vger.kernel.org
> > Cc: bharat.panda@samsung.com; cpgs@samsung.com; Gowtham Anandha
> Babu
> > Subject: [PATCH] tools: Handle the common profile & service ecode
> >
> > Handles the common profile and service error codes sent over the
> > Attribute Protocol in btgatt-client and monitor.
> > ---
> >  monitor/l2cap.c       | 9 +++++++++
> >  tools/btgatt-client.c | 6 ++++++
> >  2 files changed, 15 insertions(+)
> >
> > diff --git a/monitor/l2cap.c b/monitor/l2cap.c index fc565b1..55efa54
> 100644
> > --- a/monitor/l2cap.c
> > +++ b/monitor/l2cap.c
> > @@ -2046,6 +2046,15 @@ static void att_error_response(const struct
> > l2cap_frame *frame)
> >  	case 0x11:
> >  		str = "Insufficient Resources";
> >  		break;
> > +	case 0xfd:
> > +		str = "CCC Improperly Configured";
> > +		break;
> > +	case 0xfe:
> > +		str = "Procedure Already in Progress";
> > +		break;
> > +	case 0xff:
> > +		str = "Out of Range";
> > +		break;
> >  	default:
> >  		str = "Reserved";
> >  		break;
> > diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index
> > ee5315d..3935a7e 100644
> > --- a/tools/btgatt-client.c
> > +++ b/tools/btgatt-client.c
> > @@ -114,6 +114,12 @@ static const char *ecode_to_string(uint8_t ecode)
> >  		return "Group type Not Supported";
> >  	case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
> >  		return "Insufficient Resources";
> > +	case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
> > +		return "CCC Improperly Configured";
> > +	case BT_ERROR_ALREADY_IN_PROGRESS:
> > +		return "Procedure Already in Progress";
> > +	case BT_ERROR_OUT_OF_RANGE:
> > +		return "Out of Range";
> >  	default:
> >  		return "Unknown error type";
> >  	}
> > --
> > 1.9.1
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe
linux-bluetooth"
> in
> > the body of a message to majordomo@vger.kernel.org More majordomo
> info
> > at  http://vger.kernel.org/majordomo-info.html
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
> the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [PATCH] tools: Handle the common profile & service ecode
  2015-04-21 12:23   ` Gowtham Anandha Babu
@ 2015-05-15  5:15     ` Gowtham Anandha Babu
  2015-05-15 11:49       ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 5+ messages in thread
From: Gowtham Anandha Babu @ 2015-05-15  5:15 UTC (permalink / raw)
  To: linux-bluetooth
  Cc: 'Luiz Augusto von Dentz', 'Bharat Bhusan Panda'

Ping.

> -----Original Message-----
> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> Sent: Tuesday, April 21, 2015 5:54 PM
> To: linux-bluetooth@vger.kernel.org
> Subject: RE: [PATCH] tools: Handle the common profile & service ecode
> 
> Ping.
> 
> > -----Original Message-----
> > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> > owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> > Sent: Thursday, April 16, 2015 7:23 PM
> > To: linux-bluetooth@vger.kernel.org
> > Subject: RE: [PATCH] tools: Handle the common profile & service ecode
> >
> > Ping.
> >
> > > -----Original Message-----
> > > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
> > > owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
> > > Sent: Tuesday, April 14, 2015 5:08 PM
> > > To: linux-bluetooth@vger.kernel.org
> > > Cc: bharat.panda@samsung.com; cpgs@samsung.com; Gowtham
> Anandha
> > Babu
> > > Subject: [PATCH] tools: Handle the common profile & service ecode
> > >
> > > Handles the common profile and service error codes sent over the
> > > Attribute Protocol in btgatt-client and monitor.
> > > ---
> > >  monitor/l2cap.c       | 9 +++++++++
> > >  tools/btgatt-client.c | 6 ++++++
> > >  2 files changed, 15 insertions(+)
> > >
> > > diff --git a/monitor/l2cap.c b/monitor/l2cap.c index
> > > fc565b1..55efa54
> > 100644
> > > --- a/monitor/l2cap.c
> > > +++ b/monitor/l2cap.c
> > > @@ -2046,6 +2046,15 @@ static void att_error_response(const struct
> > > l2cap_frame *frame)
> > >  	case 0x11:
> > >  		str = "Insufficient Resources";
> > >  		break;
> > > +	case 0xfd:
> > > +		str = "CCC Improperly Configured";
> > > +		break;
> > > +	case 0xfe:
> > > +		str = "Procedure Already in Progress";
> > > +		break;
> > > +	case 0xff:
> > > +		str = "Out of Range";
> > > +		break;
> > >  	default:
> > >  		str = "Reserved";
> > >  		break;
> > > diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index
> > > ee5315d..3935a7e 100644
> > > --- a/tools/btgatt-client.c
> > > +++ b/tools/btgatt-client.c
> > > @@ -114,6 +114,12 @@ static const char *ecode_to_string(uint8_t
> ecode)
> > >  		return "Group type Not Supported";
> > >  	case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
> > >  		return "Insufficient Resources";
> > > +	case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
> > > +		return "CCC Improperly Configured";
> > > +	case BT_ERROR_ALREADY_IN_PROGRESS:
> > > +		return "Procedure Already in Progress";
> > > +	case BT_ERROR_OUT_OF_RANGE:
> > > +		return "Out of Range";
> > >  	default:
> > >  		return "Unknown error type";
> > >  	}
> > > --
> > > 1.9.1
> > >
> > > --
> > > To unsubscribe from this list: send the line "unsubscribe
> linux-bluetooth"
> > in
> > > the body of a message to majordomo@vger.kernel.org More majordomo
> > info
> > > at  http://vger.kernel.org/majordomo-info.html
> >
> > --
> > To unsubscribe from this list: send the line "unsubscribe
linux-bluetooth"
> in
> > the body of a message to majordomo@vger.kernel.org More majordomo
> info
> > at  http://vger.kernel.org/majordomo-info.html
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
in
> the body of a message to majordomo@vger.kernel.org More majordomo
> info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] tools: Handle the common profile & service ecode
  2015-05-15  5:15     ` Gowtham Anandha Babu
@ 2015-05-15 11:49       ` Luiz Augusto von Dentz
  0 siblings, 0 replies; 5+ messages in thread
From: Luiz Augusto von Dentz @ 2015-05-15 11:49 UTC (permalink / raw)
  To: Gowtham Anandha Babu; +Cc: linux-bluetooth@vger.kernel.org, Bharat Bhusan Panda

Hi Gowtham,

On Fri, May 15, 2015 at 8:15 AM, Gowtham Anandha Babu
<gowtham.ab@samsung.com> wrote:
> Ping.
>
>> -----Original Message-----
>> From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
>> owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
>> Sent: Tuesday, April 21, 2015 5:54 PM
>> To: linux-bluetooth@vger.kernel.org
>> Subject: RE: [PATCH] tools: Handle the common profile & service ecode
>>
>> Ping.
>>
>> > -----Original Message-----
>> > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
>> > owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
>> > Sent: Thursday, April 16, 2015 7:23 PM
>> > To: linux-bluetooth@vger.kernel.org
>> > Subject: RE: [PATCH] tools: Handle the common profile & service ecode
>> >
>> > Ping.
>> >
>> > > -----Original Message-----
>> > > From: linux-bluetooth-owner@vger.kernel.org [mailto:linux-bluetooth-
>> > > owner@vger.kernel.org] On Behalf Of Gowtham Anandha Babu
>> > > Sent: Tuesday, April 14, 2015 5:08 PM
>> > > To: linux-bluetooth@vger.kernel.org
>> > > Cc: bharat.panda@samsung.com; cpgs@samsung.com; Gowtham
>> Anandha
>> > Babu
>> > > Subject: [PATCH] tools: Handle the common profile & service ecode
>> > >
>> > > Handles the common profile and service error codes sent over the
>> > > Attribute Protocol in btgatt-client and monitor.
>> > > ---
>> > >  monitor/l2cap.c       | 9 +++++++++
>> > >  tools/btgatt-client.c | 6 ++++++
>> > >  2 files changed, 15 insertions(+)
>> > >
>> > > diff --git a/monitor/l2cap.c b/monitor/l2cap.c index
>> > > fc565b1..55efa54
>> > 100644
>> > > --- a/monitor/l2cap.c
>> > > +++ b/monitor/l2cap.c
>> > > @@ -2046,6 +2046,15 @@ static void att_error_response(const struct
>> > > l2cap_frame *frame)
>> > >   case 0x11:
>> > >           str = "Insufficient Resources";
>> > >           break;
>> > > + case 0xfd:
>> > > +         str = "CCC Improperly Configured";
>> > > +         break;
>> > > + case 0xfe:
>> > > +         str = "Procedure Already in Progress";
>> > > +         break;
>> > > + case 0xff:
>> > > +         str = "Out of Range";
>> > > +         break;
>> > >   default:
>> > >           str = "Reserved";
>> > >           break;
>> > > diff --git a/tools/btgatt-client.c b/tools/btgatt-client.c index
>> > > ee5315d..3935a7e 100644
>> > > --- a/tools/btgatt-client.c
>> > > +++ b/tools/btgatt-client.c
>> > > @@ -114,6 +114,12 @@ static const char *ecode_to_string(uint8_t
>> ecode)
>> > >           return "Group type Not Supported";
>> > >   case BT_ATT_ERROR_INSUFFICIENT_RESOURCES:
>> > >           return "Insufficient Resources";
>> > > + case BT_ERROR_CCC_IMPROPERLY_CONFIGURED:
>> > > +         return "CCC Improperly Configured";
>> > > + case BT_ERROR_ALREADY_IN_PROGRESS:
>> > > +         return "Procedure Already in Progress";
>> > > + case BT_ERROR_OUT_OF_RANGE:
>> > > +         return "Out of Range";
>> > >   default:
>> > >           return "Unknown error type";
>> > >   }
>> > > --
>> > > 1.9.1
>> > >
>> > > --
>> > > To unsubscribe from this list: send the line "unsubscribe
>> linux-bluetooth"
>> > in
>> > > the body of a message to majordomo@vger.kernel.org More majordomo
>> > info
>> > > at  http://vger.kernel.org/majordomo-info.html
>> >
>> > --
>> > To unsubscribe from this list: send the line "unsubscribe
> linux-bluetooth"
>> in
>> > the body of a message to majordomo@vger.kernel.org More majordomo
>> info
>> > at  http://vger.kernel.org/majordomo-info.html
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth"
> in
>> the body of a message to majordomo@vger.kernel.org More majordomo
>> info at  http://vger.kernel.org/majordomo-info.html

Applied, thanks.


-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-15 11:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-14 11:37 [PATCH] tools: Handle the common profile & service ecode Gowtham Anandha Babu
2015-04-16 13:53 ` Gowtham Anandha Babu
2015-04-21 12:23   ` Gowtham Anandha Babu
2015-05-15  5:15     ` Gowtham Anandha Babu
2015-05-15 11:49       ` Luiz Augusto von Dentz

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).