OSDN Git Service

Fix Bluetooth tethering kitkat-x86 android-x86-4.4-r3
authorGrzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
Wed, 30 Jul 2014 09:14:22 +0000 (11:14 +0200)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Wed, 15 Jul 2015 07:21:32 +0000 (15:21 +0800)
commitcdd6de9c3f02b98c4af1e40f1097001c52144873
treee9a9932e701ae0de0e0df24adf7d489631f82a31
parent4796ccaed6b681efd9cc12f9a47b5a792fc7385b
Fix Bluetooth tethering

Ignore linkstate down events for bt-pan interface which cause its remove.
Interface should only be removed when we receive the interface remove event.

At connect init to bluetooth PAN service, bridge pan device adds tetherable
bt-pan interface as set in bluetooth regexs. Before bt-pan interface gets
tethered, multiple linkstate events are received by linkstate change notifier.
Receiving multiple time of linkstate down may cause remove of tetherable
interface (bt-pan), before we call tether method.
Finally when tethering method is called and bt-pan tether interface
is removed, error is returned because of not available tetherable interfaces.

Bug found during bluetooth PTS PAN testing. It affects multiple test cases.

Change-Id: Ifb0d16657ca238aa62064fee0fc4ee974a2518ad
services/java/com/android/server/connectivity/Tethering.java