Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f5969553 authored by Irfan Sheriff's avatar Irfan Sheriff Committed by Android Git Automerger
Browse files

am 5e4d0206: am b400184a: Merge "Handle AsyncChannel disconnect in WifiService" into honeycomb-LTE

* commit '5e4d0206':
  Handle AsyncChannel disconnect in WifiService
parents 48076da8 5e4d0206
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -321,6 +321,13 @@ public class WifiService extends IWifiManager.Stub {
                    }
                    break;
                }
                case AsyncChannel.CMD_CHANNEL_DISCONNECTED: {
                    Slog.e(TAG, "WifiStateMachine channel lost, msg.arg1 =" + msg.arg1);
                    mWifiStateMachineChannel = null;
                    //Re-establish connection to state machine
                    mWsmChannel.connect(mContext, this, mWifiStateMachine.getHandler());
                    break;
                }
                default: {
                    Slog.d(TAG, "WifiStateMachineHandler.handleMessage ignoring msg=" + msg);
                    break;
@@ -593,7 +600,12 @@ public class WifiService extends IWifiManager.Stub {
     */
    public WifiConfiguration getWifiApConfiguration() {
        enforceAccessPermission();
        if (mWifiStateMachineChannel != null) {
            return mWifiStateMachine.syncGetWifiApConfiguration(mWifiStateMachineChannel);
        } else {
            Slog.e(TAG, "mWifiStateMachineChannel is not initialized");
            return null;
        }
    }

    /**