2013-11-15 09:59:24

by Ravi kumar Veeramally

[permalink] [raw]
Subject: [PATCH 1/2] android/pan: Fix wrong HAL service id

---
android/pan.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/android/pan.c b/android/pan.c
index 061e611..46b3700 100644
--- a/android/pan.c
+++ b/android/pan.c
@@ -87,7 +87,7 @@ void bt_pan_handle_cmd(int sk, uint8_t opcode, void *buf, uint16_t len)
break;
}

- ipc_send_rsp(sk, HAL_SERVICE_ID_A2DP, status);
+ ipc_send_rsp(sk, HAL_SERVICE_ID_PAN, status);
}

bool bt_pan_register(int sk, const bdaddr_t *addr)
--
1.8.3.2



2013-11-15 10:03:07

by Johan Hedberg

[permalink] [raw]
Subject: Re: [PATCH 1/2] android/pan: Fix wrong HAL service id

Hi Ravi,

On Fri, Nov 15, 2013, Ravi kumar Veeramally wrote:
> ---
> android/pan.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Both patches have been applied. Thanks.

Johan

2013-11-15 09:59:25

by Ravi kumar Veeramally

[permalink] [raw]
Subject: [PATCH 2/2] android/hal-ipc: Add pan notification call to hal-ipc dispatch handler

---
android/hal-ipc.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/android/hal-ipc.c b/android/hal-ipc.c
index e1c8dd7..026e245 100644
--- a/android/hal-ipc.c
+++ b/android/hal-ipc.c
@@ -55,6 +55,9 @@ static void notification_dispatch(struct hal_hdr *msg, int fd)
case HAL_SERVICE_ID_A2DP:
bt_notify_a2dp(msg->opcode, msg->payload, msg->len);
break;
+ case HAL_SERVICE_ID_PAN:
+ bt_notify_pan(msg->opcode, msg->payload, msg->len);
+ break;
default:
DBG("Unhandled notification service=%d opcode=0x%x",
msg->service_id, msg->opcode);
--
1.8.3.2