RE: To enablue DID in coming bluez release

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Resend:

--- a/main.c	Tue Dec 16 17:43:24 2008 +0800
+++ b/main.c	Tue Dec 16 17:44:43 2008 +0800
@@ -173,6 +173,16 @@ static void parse_config(GKeyFile *confi
 		debug("inqmode=%d", val);
 		main_opts.inqmode = val;
 	}
+	str = g_key_file_get_string(config, "General",
+					"VID/PID/VER", &err);
+	if (err) {
+		debug("%s", err->message);
+		g_clear_error(&err);
+	} else {
+		debug("vid/pid/ver=%s", str);
+		strcpy( main_opts.deviceid,str);
+		g_free(str);
+	}
 
 	main_opts.link_mode = HCI_LM_ACCEPT;

--- a/main.conf	Tue Dec 16 17:43:24 2008 +0800
+++ b/main.conf	Tue Dec 16 17:50:31 2008 +0800
@@ -28,3 +28,9 @@ OffMode = NoScan
 # Discover scheduler interval used in Adapter.DiscoverDevices
 # The value is in seconds. Defaults is 0 to use controller scheduler
 DiscoverSchedulerInterval = 0
+
+
+# User verndor and product and version information are used in DID profile
+# ":" to identify the value. FFFF is reserved for VendorId by default.
+VID/PID/VER = 1234:5678:abcd
+


Thanks


-----Original Message-----
From: linux-bluetooth-owner@xxxxxxxxxxxxxxx [mailto:linux-bluetooth-owner@xxxxxxxxxxxxxxx] On Behalf Of Li, Zhigang
Sent: 2008年12月16日 15:56
To: Marcel Holtmann
Cc: linux-bluetooth@xxxxxxxxxxxxxxx
Subject: RE: To enablue DID in coming bluez release

Please see the attached 
The patch is validated in my pc with 4.18 version and works fine.
If it's ok for you please merge it into upstream.
Thanks


-----Original Message-----
From: Marcel Holtmann [mailto:marcel@xxxxxxxxxxxx] 
Sent: 2008年12月12日 9:56
To: Li, Zhigang
Cc: linux-bluetooth@xxxxxxxxxxxxxxx
Subject: Re: To enablue DID in coming bluez release

Hi Zhigang,

> Could you please enable this profile in the coming release?
> To update:
> Add VID,PID,VER setting in main.conf
> 
> I think the parse_config also need add code in order to parse these value to main_opt.did.

I was expecting that you send me a patch for it.

Regards

Marcel


?韬{.n?????%??檩??w?{.n???{饼?z????n?■???h?璀?{?夸z罐?+€?zf"?????i?????_璁?:+v??撸?


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux