Merge cros/upstream to cros/master

Contains the following commits:
 5f496a4 Revert "libmbim-glib,qdu: add read version and edl switch commands" (Aleksander Morgado)
 2e0fa95 libmbim-glib,test: add IP configuration parser test with IPv6 info (Aleksander Morgado)
 1507cee build: version bump to indicate existence of new API (Quectel QDU) (Aleksander Morgado)
 2b2f300 libmbim-glib,qdu: add read version and edl switch commands (Ivan Mikhanchuk)
 823372a build: Make feature options boolean (Iñigo Martínez)
 fdb7546 ci: switch to trigger pipelines on the 'main' branch (Aleksander Morgado)
 582bafa RELEASING: update default branch name to 'main' (Aleksander Morgado)
 f74aae9 build: version bump indicate existence of new API (MS context types) (Aleksander Morgado)
 c22d31c docs: add API index for 1.26.2 (Aleksander Morgado)
 247a206 libmbim-glib,quectel: 'radio state' command available since 1.26.2 (Aleksander Morgado)
 038efc7 mbimcli: new '--quectel-query-radio-state' and '--quectel-set-radio-state' operations (Aleksander Morgado)
 f6043e0 libmbim-glib: new 'Quectel' service (Aleksander Morgado)
 523da17 libmbim-glib,device: rename 'dummy' with 'placeholder' (Aleksander Morgado)
 b3cca0c libmbim-glib,api: rename 'network blacklist' to 'network denylist' (Aleksander Morgado)
 984fe27 libmbim-glib,enums: fix MbimAccessMediaType documentation (Aleksander Morgado)
 8c2eac7 libmbim-glib,uuid: set missing Since tag in MBIM_UUID_MS_UICC_LOW_LEVEL_ACCESS (Aleksander Morgado)
 4ea5995 libmbim-glib,uuid: new context type definitions in Microsoft Extensions (Aleksander Morgado)
 489f40e mbimcli: implement --set-ip-packet-filters (Aleksander Morgado)
 b72257f basic-connect: implement ip-packet-filters (Som_SP)
 792af73 meson.build: add an option to not build man pages. (Nicolas Cavallari)
 f6fbc6c build: Fix double quotes in rules file (Iñigo Martínez)
 7590e34 libmbim-glib,test: minor refactoring in method names (Aleksander Morgado)
 e335b17 libmbim-glib,test: add Device Caps v3 parser test (Aleksander Morgado)
 70ccf75 libmbim-glib,test: always enable message traces (Aleksander Morgado)
 e980523 libmbim-glib,tlv: parsers for wake command and wake packet types (Aleksander Morgado)
 ee9eea6 ms-basic-connect-extensions: implement wake-reason (Som_SP)
 9eb738c ms-basic-connect-extensions-v3: implement 'Modem Configuration' (Som_SP)
 5b20317 mbimcli: add support for MBIMEx v3.0 Device Caps (Aleksander Morgado)
 88cc6b2 MBIMEx 3.0: implement 'device caps v3' (Som_SP)
 25b17dc build-aux,codegen: new 'tlv-guint16-array' field type (Aleksander Morgado)
 a5fbc67 libmbim-glib,enums: update MbimCtrlCaps in MBIMEx v3.0 (Aleksander Morgado)
 96d9140 libmbim-glib,enums: rename 'MbimDataClassV2' to 'MbimDataClassV3' (Aleksander Morgado)
 6d09092 libmbim-glib,message: printable support for MBIMEx v2.0 extensions (Aleksander Morgado)
 d69bab7 build-aux,codegen: fix attempting to unref a NULL MbimTlv (Aleksander Morgado)
 872259e libmbim-glib,message: remove obsolete read_string_tlv() method (Aleksander Morgado)
 32034e4 libmbim-glib,tlv: fix string reading in BE systems (Aleksander Morgado)
 b840b84 docs,reference: add missing entries for mbim_tlv_string_{new|get} (Aleksander Morgado)
 a58bb37 libmbim-glib,proxy: fix wrong message unref in MBIMEx reporting logic (Aleksander Morgado)
 ab218de libmbim-glib,enums: minor fix in MBIM_FREQUENCY_RANGE_UNKNOWN (Aleksander Morgado)
 8482cdc build: version bump to flag existence of new API (NO_ESIM_PROFILE) (Aleksander Morgado)
 ab20894 libmbim-glib,enums: update MBIM_SUBSCRIBER_READY_STATE_NO_ESIM_PROFILE doc (Aleksander Morgado)
 b292716 libmbim-glib: Adding esim no profile support in ready state (Som_SP)
 700d07a libmbim-glib,enums: add comment about MBimDataClass vs MbimDataClassV2 (Aleksander Morgado)
 31bcbea libmbim-glib,enums: add missing Since tags (Aleksander Morgado)
 2658b0b libmbim-glib,mbimcli: 'Registration Parameters' command is part of MBIMEx v3.0 (Aleksander Morgado)
 3ec0440 libmbim-glib,tlv: specify it's used since MBIMEx v3.0 (Aleksander Morgado)
 421ead1 libmbim-glib,mbimcli: 'Version' command is part of MBIMEx v2.0 (Aleksander Morgado)
 b72136e build-aux,mbim-codegen: report ms-struct and ms-struct-array as nullable (Aleksander Morgado)
 9f60c77 mbimcli,basic-connect: avoid updating connect positional arguments logic (Aleksander Morgado)
 b7432fc build-aux,codegen: remove 'string-tlv' from structs (Aleksander Morgado)
 9506fd8 ms-basic-connect-v3: switch 'Basic Connect' to use MbimTlvs (Aleksander Morgado)
 2bb3cc6 libmbim-glib,test,message-parser: include printable output in traces (Aleksander Morgado)
 f20b157 libmbim-glib,test,message-builder: include printable output in traces (Aleksander Morgado)
 56983e6 libmbim-glib: new MbimTlv generic type (Aleksander Morgado)
 8c781c8 ms-basic-connect: implement connect for mbim version 3 (Som_SP)
 01b8115 ms-basic-connect-v3: fix MbimTai struct definition (Aleksander Morgado)
 0ab3098 mbimcli,basic-connect: minor rework on how packet service status response is printed (Aleksander Morgado)
 11ba859 MBIMEx 3.0: implement "packet service v3" for SA (Som_SP)
 0a5176f libmbim-glib: implement 'Base Stations Info v3' (Aleksander Morgado)
 c3c7277 ms-basic-connect-extensions-v3: don't reimplement commands if they didn't change (Aleksander Morgado)
 91adfb1 ms-basic-connect-v3: don't reimplement commands if they didn't change (Aleksander Morgado)
 45523ca ms-basic-connect-v2: don't reimplement commands if they didn't change (Aleksander Morgado)
 426a135 build-aux,codegen: generate support for all versions of same service together (Aleksander Morgado)
 a8673ea libmbim-glib: implement 'Base Stations Info' (Aleksander Morgado)
 75c5b76 build-aux,codegen: support 'gint32' fields in structs (Aleksander Morgado)
 f200daf build-aux,codegen: new 'ms-struct' type (Aleksander Morgado)
 ff2930b build-aux,codegen: treat empty ms-struct-array as no array (Aleksander Morgado)
 0d31108 build-aux,codegen: always initialize output array size in ms-struct-array (Aleksander Morgado)
 6378f61 build: version bump to indicate existence of new API (MBIM_NW_ERROR_NONE) (Aleksander Morgado)
 75f3b0b libmbim-glib,enums: rename MBIM_NW_ERROR_UNKNOWN to MBIM_NW_ERROR_NONE (Aleksander Morgado)
 bb1d6da mbimcli,ms-basic-connect-extensions: print detailed network error info (Aleksander Morgado)
 7ef442b ms-basic-connect-extensions-v3: fix order of NwError field (Aleksander Morgado)
 7a764b4 libmbim-glib,ms-basic-connect-extensions-v3: add new service to build (Aleksander Morgado)
 60f779c ms-basic-connect-extensions-v3: implement 'lte-attach-info' (Som_SP)
 a710f74 libmbim-glib,message: support printing basic connect v3 messages (Aleksander Morgado)
 7b6b249 mbimcli: allow requesting MBIMEx v3.0 (Aleksander Morgado)
 c9572ba docs,reference: add missing MbimSubscriberReadyStatusFlag flag docs (Aleksander Morgado)
 6eff8a7 libmbim-glib,ms-basic-connect-v3: fix ready status flags (Aleksander Morgado)
 a81e655 libmbim-glib,ms-basic-connect-v3: add new service to build (Aleksander Morgado)
 48d1a88 libmbim-glib,device: allow requesting MBIMEx v3.0 (Aleksander Morgado)
 6928485 ms-basic-connect-v3: implement "subscriber-ready-status" (Som_SP)
 3d44393 libmbim-glib,proxy: report MBIMEx to clients on proxy config (Aleksander Morgado)
 881f9a3 docs,reference: add missing enum documentation (Aleksander Morgado)
 21b5c67 docs,reference: add 1.28 index reference (Aleksander Morgado)
 03335a2 mbimcli,ms-basic-connect-extensions: use key-value pairs for --ms-set-registration-parameters (Aleksander Morgado)
 ae85b33 ms-basic-connect-extensions: rework enum fields in 'Registration Parameters' (Aleksander Morgado)
 2ed143c build-aux,codegen: allow 'gboolean' as public output (Aleksander Morgado)
 fa93547 libmbim-glib,cid: add missing entry for 'Registration Parameters' (Aleksander Morgado)
 6bfe3e5 ms-basic-connect-extensions: rename 'Registration Params' to 'Registration Parameters' (Aleksander Morgado)
 ef95079 ms-basic-connect-extensions: add comment about unnamed IEs in Register Params (Aleksander Morgado)
 d9552bc MBIMEx 3.0: implement "registration-params" (Som_SP)
 d1d75f0 ci: bump image template to refresh CA certificates (Aleksander Morgado)
 80bcf58 mbimcli,sar: demote message to debug level (Aleksander Morgado)
 6d2140a mbimcli,sar: print 'all' instead of '0xFFFFFFFF' in SAR config response (Aleksander Morgado)
 c9672ae mbimcli,sar: minor changes in how SAR config response is printed (Aleksander Morgado)
 7fd0ac2 mbimcli,sar: use regex matching for the list of SAR config states (Aleksander Morgado)
 64f52fc mbimcli,sar: avoid custom string to enums parsers (Aleksander Morgado)
 06312c0 mbimcli,sar: use 'all' to set antenna index as '0xFFFFFFFF' (Jack Song)
 5b6a4ad mbimcli,ms-basic-connect-extensions: fix double message unref (Aleksander Morgado)
 9808f46 mbimcli,basic-connect: support 'context-type' in --connect (Aleksander Morgado)
 804f07c mbimcli,basic-connect: support 'compression' in --connect (Aleksander Morgado)
 005f1e9 mbimcli,basic-connect: avoid custom string to enums parsers (Aleksander Morgado)
 c896f5f mbimcli,ms-basic-connect-extensions: avoid custom string to enums parsers (Aleksander Morgado)
 07ff953 mbimcli: setup common helper to get enum values from strings (Aleksander Morgado)
 e7654f8 mbimcli,basic-connect: auth, username and protocol validation only in legacy input format (Aleksander Morgado)
 6c2d10e mbimcli,basic-connect: minor coding style updates (Aleksander Morgado)
 172c462 mbimcli,basic-connect: deprecate 'apn' key and prefer 'access-string' (Aleksander Morgado)
 d8cb4b0 mbimcli,ms-basic-connect-extensions: use key-value pairs for --ms-set-provisioned-contexts (Aleksander Morgado)
 b35422e mbimcli,basic-connect: overwrite duplicated key-value pairs (Aleksander Morgado)
 19cd976 mbimcli: don't include possible enum values in the short command help (Aleksander Morgado)
 dd14741 mbimcli,ms-basic-connect-extensions: minor coding style updates (Aleksander Morgado)
 caa3b47 docs: add missing references to 'Provisioned Contexts v2' enum types (Aleksander Morgado)
 392e95a ms-basic-connect-extensions: rename enum types in 'Provisioned Contexts v2' (Aleksander Morgado)
 d6d0114 ms-basic-connect-extensions: minor alignment fixes in JSON (Aleksander Morgado)
 7ebff59 ms-basic-connect-extensions: implement 'provisioned-context-v2' (Som_SP)
 54cec41 mbimcli,basic-connect: support MBIMEx v2.0 'Signal State' (Aleksander Morgado)
 f73fba3 build-aux,codegen: include printable info for struct fields with public type (Aleksander Morgado)
 fa06ce0 build-aux,codegen: document public format type in struct fields (Aleksander Morgado)
 54d738b sms: fix public format for SMS CDMA language (Aleksander Morgado)
 bd89b91 ms-basic-connect-v2: implement 'Signal State v2' (Aleksander Morgado)
 cd3554c build-aux,codegen: define new 'ms-struct-array' type (Aleksander Morgado)
 8dde6bb build-aux,codegen: fix error messages when 'struct-type' field missing (Aleksander Morgado)
 de75176 build-aux,codegen: separate methods to process different struct array types (Aleksander Morgado)
 9538b9f build-aux,codegen: add missing annotations in the input 'ref-struct-array' types (Aleksander Morgado)
 1d0415b libmbim-glib,message: fallback to printing v1 format if message undefined in v2 (Aleksander Morgado)
 718e6ce mbim-codegen: report UNSUPPORTED error when printing unknown CID (Aleksander Morgado)
 af6f897 mbimcli,basic-connect: support MBIMEx v2.0 'Packet Service' (Aleksander Morgado)
 d21bcb6 ms-basic-connect-v2: implement 'Packet Service' (Som_SP)
 67f895a libmbim-glib,proxy: notify to new clients the current MBIMEx version (Aleksander Morgado)
 baa6641 libmbim,device: receive from proxy MBIMEx version updates (Aleksander Morgado)
 d94fb7a libmbim-glib,proxy: notify to all clients updates in the MBIMEx version (Aleksander Morgado)
 39abda6 libmbim-glib,proxy: monitor MBIMEx version exchange and track per device (Aleksander Morgado)
 63cf334 mbimcli,basic-connect: support MBIMEx v2.0 'Register State' (Aleksander Morgado)
 2842748 mbimcli: allow requesting MBIMEx v2.0 support on device open (Aleksander Morgado)
 edb1d92 libmbim-glib,message: new method to get printable string with mbimex support (Aleksander Morgado)
 ae83b73 ms-basic-connect-v2: new 'MS Basic Connect V2" service and 'Register State' message (Aleksander Morgado)
 18c5e77 mbim-codegen: no need to redefine service inside each command (Aleksander Morgado)
 418f289 libmbim-glib,enums: define 5G NSA/SA data classes (Aleksander Morgado)
 547de0c libmbim-glib,device: new methods to manage the MBIMEx version (Aleksander Morgado)
 8fe6a3d libmbim-glib,device: new 'MS_MBIMEX_V2' open flag (Aleksander Morgado)
 73137ab ci: add uninstall check in the release task (Aleksander Morgado)
 9e0a74d ci: add tests without introspection support (Aleksander Morgado)
 d356118 build: cleanup gitignore after meson port (Aleksander Morgado)
 5da217a libmbim-glib,mbimcli: remove execution bit from mode in source files (Aleksander Morgado)
 231ade7 build: Add explicit content files to documentation (Iñigo Martínez)
 433108b build: Remove unnecessary MALLOC_PERTURB_ variable set (Iñigo Martínez)
 531374d build: Add version script linker flag when available (Iñigo Martínez)
 86a5dc7 build: Use install_dir instead of subdir (Iñigo Martínez)
 35abb03 build: Use the install_mode option (Iñigo Martínez)
 02b027b build: Use strings for include_directories (Iñigo Martínez)
 28674e6 build: Use the if_found feature (Iñigo Martínez)
 9607e04 build: Make use of dictionaries (Iñigo Martínez)
 6b4a303 build: Make use of features build option for introspection (Iñigo Martínez)
 38deb2f build: Removed duplicated variable (Iñigo Martínez)
 69c72d3 build: Use / instead of join_paths (Iñigo Martínez)
 2e6edfc build: Create a variable for the project name (Iñigo Martínez)
 28dc349 build: Make use of the summary function (Iñigo Martínez)
 f5a06ff build: Use the newer python module (Iñigo Martínez)
 a64d93a build: use python3 everywhere (goapunk)
 a596ba4 mbimcli,ms-basic-connect-extensions: switch 16 bit reader to bcd reader (Aleksander Morgado)
 87413ab mbimcli,ms-basic-connect-extensions: improve --ms-query-version command help (Aleksander Morgado)
 8af3bbd mbimcli,ms-basic-connect-extensions: minor comment style issues (Aleksander Morgado)
 5a8672e mbimcli,ms-basic-connect-extensions: remove redundant comments (Aleksander Morgado)
 f58ba1c libmbim-glib,ms-basic-connect-extensions: adding cid 'location-info-status' (Som_SP)
 9f9da41 libmbim-glib,ms-basic-connect-extensions: adding cid 'version' (Som_SP)
 411287f mbim-codegen: add support to r/w 16bit unsigned integers (Som_SP)
 ce8b4da libmbim-glib,device: don't allow close() if opening (Aleksander Morgado)
 0a119a7 libmbim-glib,device: ensure CLOSED state always in mbim_device_close() (Aleksander Morgado)

BUG=b:209486121
TEST=emerge-hatch libmbim && cros deploy && run tast

Cq-Depend: chromium:3399592, chromium:3389829, chromium:3417870
Change-Id: I72eabf76cc5783624c6f658915d174e6f803bd12
tree: dafdde6c2fdba3df8ee15547c355b67c553246e6
  1. build-aux/
  2. data/
  3. docs/
  4. examples/
  5. LICENSES/
  6. src/
  7. utils/
  8. .gitignore
  9. .gitlab-ci.yml
  10. AUTHORS
  11. meson.build
  12. meson_options.txt
  13. NEWS
  14. OWNERS
  15. README.chromium
  16. README.md
  17. RELEASING
  18. unblocked_terms.txt
README.md

libmbim

libmbim is a glib-based library for talking to WWAN modems and devices which speak the Mobile Broadband Interface Model (MBIM) protocol.

License

  • libmbim-glib library is released under the LGPL-2.1-or-later license.
  • mbimcli tool is released under the GPL-2.0-or-later license.

License texts can be found under the LICENSES folder.

Code of Conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms, which you can find in the following link: https://www.freedesktop.org/wiki/CodeOfConduct CoC issues may be raised to the project maintainers at the following address: libmbim-devel-owner@lists.freedesktop.org