OSDN Git Service

bluetooth.c: fix discontinuous rfkill id issue
authorChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 29 Oct 2009 03:17:31 +0000 (11:17 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Thu, 29 Oct 2009 03:17:31 +0000 (11:17 +0800)
commit3fb13e11ee81b29b19e3dea1f70d9c441368a6d4
treedcd8ea03973d969c1e1f804a3c8f6ff34f4f7cd0
parent36af3080c1d3d61969a461bb95c56b0f347bf554
bluetooth.c: fix discontinuous rfkill id issue

The rfkill id may not continuous due to unplug and plug
or suspend and wakeup. This fix uses opendir and readdir
to find the first available bluetooth rfkill id.
bluedroid/bluetooth.c