diff --git a/android/hal-msg.h b/android/hal-msg.h
index f0cc800..a5e5c76 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
/* Bluetooth Socket HAL api */
#define HAL_OP_SOCK_LISTEN 0x01
-struct hal_op_sock_listen {
+struct hal_cmd_sock_listen {
uint8_t type;
uint8_t name[256];
uint8_t uuid[16];
} __attribute__((packed));
#define HAL_OP_SOCK_CONNECT 0x02
-struct hal_op_sock_connect {
+struct hal_cmd_sock_connect {
uint8_t bdaddr[6];
uint8_t type;
uint8_t uuid[16];
diff --git a/android/hal-sock.c b/android/hal-sock.c
index cd85f1f..32c7939 100644
--- a/android/hal-sock.c
+++ b/android/hal-sock.c
const uint8_t *uuid, int chan,
int *sock, int flags)
{
- struct hal_op_sock_listen cmd;
+ struct hal_cmd_sock_listen cmd;
DBG("");
const uint8_t *uuid, int chan,
int *sock, int flags)
{
- struct hal_op_sock_connect cmd;
+ struct hal_cmd_sock_connect cmd;
if ((!uuid && chan <= 0) || !bdaddr || !sock) {
error("invalid params: bd_addr %p, uuid %p, chan %d, sock %p",