summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2025-10-04build: require CMake >= 3.10 due to dropped legacy supportHEADmasterHauke Mehrtens
CMake version 4.0 and later require minimum version of 3.5 or later. Update to minimum version 3.10 which is the last not deprecated minimum version. CMake 3.10 was released in November 2017 and is included in Ubuntu 18.04. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2022-08-13umbim: fix invalid mbim message string encodingDaniel Danzberger
Strings in mbim messages have to follow these formatting rules: - 4 byte alignment, padded if not. - utf-16 little endian. Fixes: - mbim connect fails with more than 1 string parameter (apn/user/pass) when they are not 4 byte aligned. Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2021-08-18umbim: fix compilation with GCC 10Stijn Tintel
When building umbim with GCC 10, a bunch of these errors appear: cli.c: In function 'mbim_device_caps_response': cli.c:55:29: error: taking address of packed member of 'struct mbim_basic_connect_device_caps_r' may result in an unaligned pointer value [-Werror=address-of-packed-member] 55 | deviceid = mbim_get_string(&caps->deviceid, buffer); | ^~~~~~~~~~~~~~~ Fix them by disabling padding between fields of struct mbim_string. Acked-by: John Crispin <john@phrozen.org> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2019-09-11umbim: add home provider query supportIngo Feinerer
This adds support to query the home provider, mainly for debugging and information purposes. Signed-off-by: Ingo Feinerer <feinerer@logic.at> Reviewed-by: Bjørn Mork <bjorn@mork.no>
2019-04-10Iron out all extra compiler warningsPetr Štetiar
mbim-msg.c:83:17: error: comparison between signed and unsigned integer expressions cli.c:50:10: error: comparison between signed and unsigned integer expressions cli.c:81:10: error: comparison between signed and unsigned integer expressions cli.c:104:10: error: comparison between signed and unsigned integer expressions cli.c:140:10: error: comparison between signed and unsigned integer expressions cli.c:154:18: error: comparison between signed and unsigned integer expressions cli.c:171:10: error: comparison between signed and unsigned integer expressions cli.c:194:10: error: comparison between signed and unsigned integer expressions cli.c:223:10: error: comparison between signed and unsigned integer expressions cli.c:229:17: error: comparison between signed and unsigned integer expressions cli.c:241:17: error: comparison between signed and unsigned integer expressions cli.c:247:17: error: comparison between signed and unsigned integer expressions cli.c:259:17: error: comparison between signed and unsigned integer expressions cli.c:272:10: error: comparison between signed and unsigned integer expressions cli.c:549:16: error: comparison between signed and unsigned integer expressions mbim-dev.c:68:21: error: comparison between signed and unsigned integer expressions mbim-dev.c:97:10: error: comparison between signed and unsigned integer expressions Reviewed-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-04-10Enable extra compiler checksPetr Štetiar
Let's enforce additional automatic checks enforced by the compiler in order to catch possible errors during compilation. Reviewed-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-04-10mbim-proxy supportBjørn Mork
This adds support for the libmbim-glib "mbim-proxy", allowing umbim to access a device under ModemManager control. The feature is mostly useful for debugging and development purposes, and is therefore disabled by default. Signed-off-by: Bjørn Mork <bjorn@mork.no>
2019-04-10umbim: add registration set supportIngo Feinerer
This implements the MBIM automatic registration mode to let the function select the best provider network. Signed-off-by: Ingo Feinerer <feinerer@logic.at> Reviewed-by: Bjørn Mork <bjorn@mork.no>
2016-05-11add radio_state set/query supportBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-05-11update usage()Bjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-05-11get buffer size from driverBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2016-05-11dynamically allocate bufferBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03support non default ip-typesBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03support IPv6 configurationBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03fix IP configuration prefix outputBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03add command_id to verbose outputBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03avoid parsing InformationBuffer unless status is "success"Bjørn Mork
The MBIM specification requires that the InformationBuffer is empty unless the status field is MBIM_STATUS_SUCCESS, except for 4 explicit combinations of status code and command id. Avoid calling the reply handler if the status code is non-zero and the information buffer is empty. Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03add command done status to verbose outputBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2015-04-03fix subscriber response segfaultBjørn Mork
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2014-12-10fix build for 64 bit systemsJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-09-08cleanup authprotocol handlingJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-08-24add support for authproto/username/passwordJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-08-24sanitize pincode properlyJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-08-24add gpl licenseJohn Crispin
Signed-off-by: John Crispin <blogic@openwrt.org>
2014-08-21initial importJohn Crispin