OSDN Git Service

bluedroid: fix several issues to enable a bluetooth device donut-x86 android-x86-1.6
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Nov 2009 10:42:29 +0000 (18:42 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Nov 2009 10:42:29 +0000 (18:42 +0800)
commitd36e2308be3c1164e0aa93284b157c99c415ee65
treedb230b6153839ace9895ccfa00e654b210fe5aa5
parent3fb13e11ee81b29b19e3dea1f70d9c441368a6d4
bluedroid: fix several issues to enable a bluetooth device

* init_rfkill(): use the first rkilll interface (eeepc-bluetooth)
* set_bluetooth_power(): check the rfkill state before set it. If the
  state is already the expected value, don't write to it. This avoids
  the permission issue after wakeup for external bluetooth dongle.
* bt_enable(): try to disable and re-enable eeepc-bluetooth if unable
  to turn on it, since the rfkill id may has changed.
bluedroid/bluetooth.c