OSDN Git Service

bluedroid: fix several issues to enable a bluetooth device gingerbread-x86
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 30 Jul 2010 07:31:16 +0000 (15:31 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 4 Aug 2011 09:35:27 +0000 (17:35 +0800)
commit59b35e523c860c15783fff8bf70f51acf58b5357
treece0cd95a95216b7e2f00d4d6f0ecd748f1049c24
parenta0e7c79d1b6b62db573c582edec245a4a3370dc1
bluedroid: fix several issues to enable a bluetooth device

* 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.

Change-Id: Ib21637acf17ab2f3f8d4379ebd570f0cf85189da
bluedroid/bluetooth.c