--- network/server.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/network/server.c b/network/server.c index 6e0ce09..67d81e3 100644 --- a/network/server.c +++ b/network/server.c @@ -322,13 +322,13 @@ static uint16_t bnep_setup_decode(struct bnep_setup_conn_req *req, switch (req->uuid_size) { case 2: /* UUID16 */ - *dst_role = ntohs(bt_get_unaligned((uint16_t *) dest)); - *src_role = ntohs(bt_get_unaligned((uint16_t *) source)); + *dst_role = bt_get_be16(dest); + *src_role = bt_get_be16(source); break; case 4: /* UUID32 */ case 16: /* UUID128 */ - *dst_role = ntohl(bt_get_unaligned((uint32_t *) dest)); - *src_role = ntohl(bt_get_unaligned((uint32_t *) source)); + *dst_role = bt_get_be32(dest); + *src_role = bt_get_be32(source); break; default: return BNEP_CONN_INVALID_SVC; -- 1.7.8.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html