frameworks/base
修訂 | b9e4e1e26e897a71a71769b76344764c05709ed6 (tree) |
---|---|
時間 | 2011-08-24 16:27:31 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
wifi: do not disable interface when network connection lost
@@ -1241,7 +1241,7 @@ public class WifiStateTracker extends NetworkStateTracker { | ||
1241 | 1241 | |
1242 | 1242 | case EVENT_DEFERRED_DISCONNECT: |
1243 | 1243 | if (mWifiInfo.getSupplicantState() != SupplicantState.UNINITIALIZED) { |
1244 | - handleDisconnectedState(DetailedState.DISCONNECTED, true); | |
1244 | + handleDisconnectedState(DetailedState.DISCONNECTED, !SupplicantState.isValidState(mWifiInfo.getSupplicantState())); | |
1245 | 1245 | } |
1246 | 1246 | break; |
1247 | 1247 |