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

Commit 67718ac0 authored by Irfan Sheriff's avatar Irfan Sheriff
Browse files

Update statemachine for bssid change in supplicant

We now use bssid instead of pending_bssid which was only valid in ASSOCIATING state.
This allows us to correctly update bssid during roaming.

Change-Id: Idffff329828196ecbfc5015882d3665c932cf1e6
parent 527d14dc
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -1613,10 +1613,7 @@ public class WifiStateMachine extends StateMachine {
            mWifiInfo.setNetworkId(WifiConfiguration.INVALID_NETWORK_ID);
        }

        if (state == SupplicantState.ASSOCIATING) {
            /* BSSID is valid only in ASSOCIATING state */
        mWifiInfo.setBSSID(stateChangeResult.BSSID);
        }
        mWifiInfo.setSSID(stateChangeResult.SSID);

        mSupplicantStateTracker.sendMessage(Message.obtain(message));