Linux bluetooth development
 help / color / mirror / Atom feed
* Bug in hciconfig.c
@ 2011-03-28 12:31 Arno Willig
  2011-03-28 12:44 ` Johan Hedberg
  0 siblings, 1 reply; 3+ messages in thread
From: Arno Willig @ 2011-03-28 12:31 UTC (permalink / raw)
  To: linux-bluetooth

Hi there,

I do not follow this list, so please excuse me, if this request isn't
appropriate here.

I think I found an error in the Bluez Package of my Ubuntu 11.04
distro. (bluez-4.90)
In bluez-4.90/tools/hciconfig.c (Function cmd_version(), line 1141):

       hciver = hci_vertostr(ver.hci_ver);
 -     lmpver = lmp_vertostr(ver.hci_ver);


I think it should be this, right?

       hciver = hci_vertostr(ver.hci_ver);
 +    lmpver = lmp_vertostr(ver.lmp_ver);


Maybe nobody saw this before, because the values are nevertheless
equal (2.1 for example) ?


Please tell me if this is really a bug or if I oversaw something, will you?

Regards,

Arno Willig

-- 
Arno Willig <akw@thinkwiki.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug in hciconfig.c
  2011-03-28 12:31 Bug in hciconfig.c Arno Willig
@ 2011-03-28 12:44 ` Johan Hedberg
  2011-03-28 13:04   ` Arno Willig
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Hedberg @ 2011-03-28 12:44 UTC (permalink / raw)
  To: Arno Willig; +Cc: linux-bluetooth

Hi Arno,

On Mon, Mar 28, 2011, Arno Willig wrote:
> I do not follow this list, so please excuse me, if this request isn't
> appropriate here.
> 
> I think I found an error in the Bluez Package of my Ubuntu 11.04
> distro. (bluez-4.90)
> In bluez-4.90/tools/hciconfig.c (Function cmd_version(), line 1141):
> 
>        hciver = hci_vertostr(ver.hci_ver);
>  -     lmpver = lmp_vertostr(ver.hci_ver);
> 
> 
> I think it should be this, right?
> 
>        hciver = hci_vertostr(ver.hci_ver);
>  +    lmpver = lmp_vertostr(ver.lmp_ver);
> 
> 
> Maybe nobody saw this before, because the values are nevertheless
> equal (2.1 for example) ?
> 
> 
> Please tell me if this is really a bug or if I oversaw something, will you?

It's a real bug which can be seen from commit 9848c1fa that introduced
it (6 years ago). Before that commit the code was correctly using lmp_ver.

I've pushed a patch to fix it upstream.

Johan

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bug in hciconfig.c
  2011-03-28 12:44 ` Johan Hedberg
@ 2011-03-28 13:04   ` Arno Willig
  0 siblings, 0 replies; 3+ messages in thread
From: Arno Willig @ 2011-03-28 13:04 UTC (permalink / raw)
  To: Arno Willig, linux-bluetooth

Hi Johan,

wow, 6 years...
I always wondered whi LMP and HCI versions are identical on my
bluetooth sticks, but maybe this is correct for most devices...

Thank you!

Ciao, Arno


2011/3/28 Johan Hedberg <johan.hedberg@gmail.com>:
> Hi Arno,
>
> On Mon, Mar 28, 2011, Arno Willig wrote:
>> I do not follow this list, so please excuse me, if this request isn't
>> appropriate here.
>>
>> I think I found an error in the Bluez Package of my Ubuntu 11.04
>> distro. (bluez-4.90)
>> In bluez-4.90/tools/hciconfig.c (Function cmd_version(), line 1141):
>>
>>        hciver = hci_vertostr(ver.hci_ver);
>>  -     lmpver = lmp_vertostr(ver.hci_ver);
>>
>>
>> I think it should be this, right?
>>
>>        hciver = hci_vertostr(ver.hci_ver);
>>  +    lmpver = lmp_vertostr(ver.lmp_ver);
>>
>>
>> Maybe nobody saw this before, because the values are nevertheless
>> equal (2.1 for example) ?
>>
>>
>> Please tell me if this is really a bug or if I oversaw something, will you?
>
> It's a real bug which can be seen from commit 9848c1fa that introduced
> it (6 years ago). Before that commit the code was correctly using lmp_ver.
>
> I've pushed a patch to fix it upstream.
>
> Johan
>



-- 
Arno Willig <akw@thinkwiki.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-03-28 13:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-28 12:31 Bug in hciconfig.c Arno Willig
2011-03-28 12:44 ` Johan Hedberg
2011-03-28 13:04   ` Arno Willig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox