Skip to content

libmbim-glib,qdu: replace unsized-byte-array fields with guint16 fields

This MR replaces unsized-byte-array fields in Quectel QDU commands with guint16 fields.

The fields in both commands don't seem to have a functional meaning and only accept one value. I didn't find a way to hard code values in .json files, so I added accepted values in the comments.

With the response it is not possible to use anything else except unsized-byte-array, since the response has a lot of gibberish in between firmware string characters. Here is an example of the response:

00000000  01 00 00 00 0c 00 00 00  2e 00 00 00 45 00 4d 00  |............E.M.|
00000010  30 00 35 00 47 00 46 00  41 00 52 00 30 00 37 00  |0.5.G.F.A.R.0.7.|
00000020  41 00 30 00 35 00 4d 00  31 00 47 00 5f 00 30 00  |A.0.5.M.1.G._.0.|
00000030  31 00 2e 00 30 00 30 00  31 00 00 00              |1...0.0.1...|

Reasons for such a "hacky" way to do this are beyond my understanding unfortunately, but this is how it works right now.

Merge request reports