OSDN Git Service

bluedroid: fix several issues to enable a bluetooth device eclair-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 6 Nov 2009 10:42:29 +0000 (18:42 +0800)
committer黃志偉 <cwhuang@linux.org.tw>
Fri, 16 Apr 2010 10:21:49 +0000 (18:21 +0800)
commitbbea219aeba0f80f2e2461d7cd515b4bd86049db
tree2fdd4b5dce6897cb010f8ec60d26c49f0933017f
parente737a4e3e96ac99b69c52e3884bec9af41fcfb78
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