android/pan: Fix wrong HAL service id
PATCH 1/2 android/pan: Fix wrong HAL service id
--- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
android/pan.c +1 -1
@@ -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)
Signature · 1 line
1.8.3.2
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(+)
android/hal-ipc.c +3 -0
@@ -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);
Signature · 1 line
1.8.3.2
Hi Ravi,
Quoted 3 lines · Ravi kumar Veeramally
--- android/pan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Both patches have been applied. Thanks.
Johan