Commit: 2ed2c75c11d682a9767247f4bcad40a636030d89
Parent: de16dfe9125f522fff22707632587e5f582d6eb1
Author: Dmitriy Paliy <dmitriy.paliy@nokia.com>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2011-07-29 12:13:24
Tree: 7aa84dad801b483bf7adf9c3d04c228626a1e27c

Fix adapter->global_mode updating in btd_adapter_switch_offline() Currently, use of RequestSession and SetProperty adapter method calls sets global_mode to on. Switching adapter off via plug-in interface in this scenario releases all sessions, that, in turn, restores adapter's state to global_mode, which is on. Result is the adapter is switched off and immediately switched on. This patch fixes such inconsistency by overwriting global_mode to mode off when request comes from plug-in.

Diffstat

M src/adapter.c | 2 ++

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

View Full Diff | Patch