umbim: fix invalid mbim message string encoding master
authorDaniel Danzberger <daniel@dd-wrt.com>
Tue, 10 May 2022 11:34:03 +0000 (13:34 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 13 Aug 2022 15:51:25 +0000 (17:51 +0200)
commit146bc77c98ace3d1cc672986669650d2e1da71f3
tree324d93f368b94d17098c8cccd9c7d10575d3c0c2
parentde5623104baee6e0c13c92f05c15bf4b4145c0b1
umbim: fix invalid mbim message string encoding

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>
mbim-msg.c