Diff between 9846bd9ef17eb33667029d69e85a9fb325756e88 and e87dadbe1bbfa39feead7488a06605e0cda29ecb

Changed Files

File Additions Deletions Status
btio/btio.c +2 -2 modified

Full Patch

diff --git a/btio/btio.c b/btio/btio.c
index f9b2507..d58e986 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,