Re: [PATCH] Fixed reading of on_mode in btd_adapter_get_mode

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

 



Hi Timo,

On Wed, Nov 23, 2011, Timo Gienger wrote:
> If InitiallyPowered was set to false, it was not possible to
> use hciconfig tool, as on_mode variable was set to MODE_OFF
> making it impossible to enable BT via hciconfig until a DBUS
> call was done and the variable was set in config file as
> connectable.
> Furthermore removed if-else condition, as the both calls
> done exactly the same. Removed also last else condition
> as MODE_OFF should not be valid for on_mode.
> Fix tested with hciops interface.
> 
> Signed-off-by: Timo Gienger <timo.gienger@xxxxxxxxx>
> ---
>  src/adapter.c |   10 ++--------
>  1 files changed, 2 insertions(+), 8 deletions(-)

The patch looks ok and I didn't find any issues when testing it either,
so it's now pushed upstream. It'd be good if others test this too since
the mode/on_mode logic with all various configuration combinations is
far from simple.

Before applying I did have to fix your commit message though. Please pay
attention to the following:

- The form of the summary line is "Fix ...", not "Fixing..."
- We don't use signed-off-by in the user-space git
- D-Bus is written D-Bus, not DBUS
- You can have longer lines than 60 characters in the commit message
  body (72 is a good limit). Let your editor automate this for you (it
  looked like you might have manually done the formating).

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