All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: Send Connect failed event when LE Connection fails
@ 2012-04-05  8:53 Hemant Gupta
  2012-04-05 11:04 ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Hemant Gupta @ 2012-04-05  8:53 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Hemant Gupta, Hemant Gupta

This patch adds management connect failed event when LE Create Connection
Command fails to inform BlueZ that LE Connection failed to get established.

Signed-off-by: Hemant Gupta <hemant.gupta@stericsson.com>
---
 net/bluetooth/hci_event.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c
index 7325300..89662f0 100644
--- a/net/bluetooth/hci_event.c
+++ b/net/bluetooth/hci_event.c
@@ -1649,6 +1649,8 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status)
 	if (status) {
 		if (conn && conn->state == BT_CONNECT) {
 			conn->state = BT_CLOSED;
+			mgmt_connect_failed(hdev, &cp->peer_addr, conn->type,
+							conn->dst_type, status);
 			hci_proto_connect_cfm(conn, status);
 			hci_conn_del(conn);
 		}
-- 
1.7.0.4


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

* Re: [PATCH] Bluetooth: Send Connect failed event when LE Connection fails
  2012-04-05  8:53 [PATCH] Bluetooth: Send Connect failed event when LE Connection fails Hemant Gupta
@ 2012-04-05 11:04 ` Johan Hedberg
  2012-04-05 11:22   ` Hemant Gupta
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2012-04-05 11:04 UTC (permalink / raw)
  To: Hemant Gupta; +Cc: linux-bluetooth, Hemant Gupta

Hi Hemant,

On Thu, Apr 05, 2012, Hemant Gupta wrote:
> This patch adds management connect failed event when LE Create Connection
> Command fails to inform BlueZ that LE Connection failed to get established.

s/BlueZ/user space/

Also change the summary line to:

Bluetooth: mgmt: Fix missing connect failed event for LE

> --- a/net/bluetooth/hci_event.c
> +++ b/net/bluetooth/hci_event.c
> @@ -1649,6 +1649,8 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status)
>  	if (status) {
>  		if (conn && conn->state == BT_CONNECT) {
>  			conn->state = BT_CLOSED;
> +			mgmt_connect_failed(hdev, &cp->peer_addr, conn->type,
> +							conn->dst_type, status);
>  			hci_proto_connect_cfm(conn, status);
>  			hci_conn_del(conn);
>  		}

Please use our new alignment style for split lines, i.e. align with the
opening parenthesis.

Johan

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

* Re: [PATCH] Bluetooth: Send Connect failed event when LE Connection fails
  2012-04-05 11:04 ` Johan Hedberg
@ 2012-04-05 11:22   ` Hemant Gupta
  0 siblings, 0 replies; 3+ messages in thread
From: Hemant Gupta @ 2012-04-05 11:22 UTC (permalink / raw)
  To: Hemant Gupta, linux-bluetooth, Hemant Gupta

Hi Johan,

On Thu, Apr 5, 2012 at 4:34 PM, Johan Hedberg <johan.hedberg@gmail.com> wrote:
> Hi Hemant,
>
> On Thu, Apr 05, 2012, Hemant Gupta wrote:
>> This patch adds management connect failed event when LE Create Connection
>> Command fails to inform BlueZ that LE Connection failed to get established.
>
> s/BlueZ/user space/
>
> Also change the summary line to:
>
> Bluetooth: mgmt: Fix missing connect failed event for LE
>
Thanks, please have a look at my new patch.
>> --- a/net/bluetooth/hci_event.c
>> +++ b/net/bluetooth/hci_event.c
>> @@ -1649,6 +1649,8 @@ static void hci_cs_le_create_conn(struct hci_dev *hdev, __u8 status)
>>       if (status) {
>>               if (conn && conn->state == BT_CONNECT) {
>>                       conn->state = BT_CLOSED;
>> +                     mgmt_connect_failed(hdev, &cp->peer_addr, conn->type,
>> +                                                     conn->dst_type, status);
>>                       hci_proto_connect_cfm(conn, status);
>>                       hci_conn_del(conn);
>>               }
>
> Please use our new alignment style for split lines, i.e. align with the
> opening parenthesis.
>
Done, sent a new patch for review.
> Johan



-- 
Best Regards
Hemant Gupta
ST-Ericsson India

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

end of thread, other threads:[~2012-04-05 11:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05  8:53 [PATCH] Bluetooth: Send Connect failed event when LE Connection fails Hemant Gupta
2012-04-05 11:04 ` Johan Hedberg
2012-04-05 11:22   ` Hemant Gupta

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.