diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-04 11:34:00 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-09-04 11:34:00 +0200 |
commit | bf1da3faea4605a9a1305993b04e9db425561b1d (patch) | |
tree | ca58e96c0c6c499dd80336d76ef8eff50ad2cabe /src/mm-base-modem.h | |
parent | 72db2a53ed114a6b46515130a6ed8238eba35bfe (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-base-modem.h')
0 files changed, 0 insertions, 0 deletions