aboutsummaryrefslogtreecommitdiff
path: root/src/mm-port-probe.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-09-04 11:34:00 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-09-04 11:34:00 +0200
commitbf1da3faea4605a9a1305993b04e9db425561b1d (patch)
treeca58e96c0c6c499dd80336d76ef8eff50ad2cabe /src/mm-port-probe.h
parent72db2a53ed114a6b46515130a6ed8238eba35bfe (diff)
iface-modem-simple: never remove connected bearers
Modems have a maximum of bearers allowed to be connected at a time, number which is given by the number of available ports that may be used for data connections. When Simple.Connect() tries to launch a connection, it will try to find first an existing bearer with the required parameters (e.g. APN, IP type). If such bearer is found, it will just use it. If no such bearer is found, it will try to create one. When trying to create one, if there is no more room for bearers in the modem, we will remove the first disconnected bearer that we find, if any, before trying to create the new one. This logic now makes sure that no connected bearer gets removed in order to create a new one, and also that only one existing gets removed if possible (not every bearer as we did previously). Further logic to connect multiple bearers at a time cannot be done using the Simple interface.
Diffstat (limited to 'src/mm-port-probe.h')
0 files changed, 0 insertions, 0 deletions