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

Commit f376c837 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 24805 into eclair

* changes:
  Don't init wifiChannels until after supplicant up
parents e441dcbb 7c9bf7ca
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -374,13 +374,6 @@ public class WifiService extends IWifiManager.Stub {
        }
        setWifiEnabledState(eventualWifiState, uid);

        /*
         * Initialize the number of allowed radio channels if Wi-Fi is being turned on.
         */
        if (enable) {
            mWifiStateTracker.setNumAllowedChannels();
        }

        return true;
    }

+3 −0
Original line number Diff line number Diff line
@@ -784,6 +784,9 @@ public class WifiStateTracker extends NetworkStateTracker {
                    mBluetoothA2dp = new BluetoothA2dp(mContext);
                }
                checkIsBluetoothPlaying();

                // initialize this after the supplicant is alive
                setNumAllowedChannels();
                break;

            case EVENT_SUPPLICANT_DISCONNECT: