static void init_defaults(void)
{
+ uint8_t major, minor;
+
/* Default HCId settings */
memset(&main_opts, 0, sizeof(main_opts));
main_opts.name = g_strdup("BlueZ");
main_opts.reverse_sdp = TRUE;
main_opts.name_resolv = TRUE;
main_opts.debug_keys = FALSE;
+
+ if (sscanf(VERSION, "%hhu.%hhu", &major, &minor) != 2)
+ return;
+
+ main_opts.did_source = 0x0002; /* USB */
+ main_opts.did_vendor = 0x1d6b; /* Linux Foundation */
+ main_opts.did_product = 0x0246; /* BlueZ */
+ main_opts.did_version = (major << 8 | minor);
}
static GMainLoop *event_loop;