Commit: 8d523a075b96024d01ab7657e80c8126c6485df1
Parent: 2776a390de23fe9a79eaaec23a14f563b228a020
Author: Timo Gienger <timo.gienger@nokia.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-11-23 16:10:36
Tree: 51fc50190a958aadc5a178b199fcdc882d20e0d8

Fix reading of on_mode in btd_adapter_get_mode 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 D-Bus call was done and the variable was set in config file as connectable. Additionally the patch removes the 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.

Diffstat

M src/adapter.c | 10 ++- - - - - - - -

1 files changed, 2 insertions(+), 8 deletions(-)

View Full Diff | Patch