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

Commit afdca68b authored by Mike Lockwood's avatar Mike Lockwood Committed by Android Git Automerger
Browse files

am 599221c7: wifi: Update the AccessPointState network ID after saving configuration.

Merge commit '599221c7'

* commit '599221c7':
  wifi: Update the AccessPointState network ID after saving configuration.
parents 6a176dc6 599221c7
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -422,6 +422,17 @@ public class WifiLayer {
            return false;
        }
        
        /*
         * It's necessary to update the network id of this state because the network id
         * could have changed after the configuration is saved. For example, if there are
         * more than 10 saved open-networks, some older open-networks will have been be forgotten.
         */
        state.setNetworkId(AccessPointState.NETWORK_ID_ANY);
        config = findConfiguredNetwork(state);
        if (config != null) {
            state.setNetworkId(config.networkId);
        }

        /*
         * We could reload the configured networks, but instead just shortcut
         * and add this state to our list in memory