Skip to contentSkip to conversation

android/pan: Fix wrong HAL service id

PATCH In review Ravi kumar Veeramally 2 participants 3 messages Nov 15, 2013 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

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
index 061e611..46b3700 100644
@@ -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
#1 lore raw

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
index e1c8dd7..026e245 100644
@@ -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