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

Commit 47c83a2e authored by Ricardo Cerqueira's avatar Ricardo Cerqueira
Browse files

ConnectivityService: update network settings when RAT changes

For radio subtype changes (GPRS/EDGE/UMTS/HSPA/etc on GSM), refresh
the network settings.
This causes the values from net.buffersize.<newtech> to be applied in
cases where a connectivity tech change does not imply an actual
reconnection, and applies the proper buffersizes (as configured) for
the new technology type

Change-Id: I7834d5cab5a7c9cfbebdcce81820238579d45177
parent d2efa25e
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1622,8 +1622,13 @@ public class ConnectivityService extends IConnectivityManager.Stub {
                    break;

                case NetworkStateTracker.EVENT_NETWORK_SUBTYPE_CHANGED:
                    // fill me in
                {
                    info = (NetworkInfo) msg.obj;
                    int netType = info.getType();
                    NetworkStateTracker thisNet = mNetTrackers[netType];
                    thisNet.updateNetworkSettings();
                    break;
                }
                case EVENT_RESTORE_DEFAULT_NETWORK:
                    FeatureUser u = (FeatureUser)msg.obj;
                    u.expire();