aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-08-11 11:16:05 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-11-04 11:15:18 +0000
commit824ad11356f82b5b91d557fa22b88c445ccc777c (patch)
tree04cef13872495d8aa30c75079a3fae25456d98f9 /src
parentf21fde38559141e382ad64f8ce048d73c7e197a4 (diff)
huawei: don't apply multiple port type hints methods
We will use one single method to apply port type hints, not a mix of them: * If AT^GETPORTMODE is supported, prefer its hints over any other method. * Otherwise, try to guess hints from USB interface descriptions. * And if none of the plugin-specific hints are supported, we'll default to applying generic port type hints from udev tags. Once the hints have been applied by one of the methods above, the fallback hint sequences are run: * Flag the first cdc-wdm port as primary if no other port has been flagged as primary. * Flag the USB interface 0 as PPP if no other port type hint has been set in any other port. The logic applying all these procedures has been refactored so that we have separate functions for each, which is much easier to read and follow, even if it requires multiple iterations over the port probe list. Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/238
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions