From e87dadbe1bbfa39feead7488a06605e0cda29ecb Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 21 Feb 2014 15:33:01 +0200 Subject: btio: Add missing BT_IO_OPT_DEST_TYPE getting support --- btio/btio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'btio/btio.c') diff --git a/btio/btio.c b/btio/btio.c index f9b250789..d58e98621 100644 --- a/btio/btio.c +++ b/btio/btio.c @@ -1011,8 +1011,8 @@ parse_opts: bacpy(va_arg(args, bdaddr_t *), &dst.l2_bdaddr); break; case BT_IO_OPT_DEST_TYPE: - ERROR_FAILED(err, "Not implemented", EINVAL); - return FALSE; + *(va_arg(args, uint8_t *)) = dst.l2_bdaddr_type; + break; case BT_IO_OPT_DEFER_TIMEOUT: len = sizeof(int); if (getsockopt(sock, SOL_BLUETOOTH, BT_DEFER_SETUP, -- cgit v1.2.1