Re: [RFC BlueZ v0 2/5] Use defines instead of magic numbers

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

 



Hi Mikel,

On Wed, Jul 18, 2012, Mikel Astiz wrote:
> On Mon, May 14, 2012 at 5:33 PM, Mikel Astiz <mikel.astiz.oss@xxxxxxxxx> wrote:
> > From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx>
> >
> > The error-handling code should use the defines instead of magic numbers.
> > ---
> >  src/device.c |   42 +++++++++++++++++++++---------------------
> >  1 files changed, 21 insertions(+), 21 deletions(-)
> 
> Ping.
> 
> This was included inside a RFC series but has actually no dependency.

Thanks for the reminder. The patch has now been applied.

The usefulness of the patch is quite short-lived though since we've
pretty much stopped using HCI related values in userspace with the
introduction of mgmt. Looking at the code base it seems like several
places need fixing as the status value passed from mgmt.c to core is not
an HCI status but MGMT_STATUS_*. All places in the kernel should be
converting HCI status values with mgmt_status() before putting them into
a mgmt event. If you find some place that doesn't do that send a patch
please.

Johan
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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