umbim: log output of 'config' step

Display full configuration obtained using MBIM control channel in the
log, from umbim output verbatim, for easier troubleshooting, and in
preparation for parser refactoring.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
This commit is contained in:
Lech Perczak 2021-11-06 03:02:08 +01:00 committed by Hauke Mehrtens
parent 9ddbcd73d8
commit 5f873df8d4

View File

@ -179,7 +179,9 @@ _proto_mbim_setup() {
local zone="$(fw3 -q network "$interface" 2>/dev/null)"
echo "mbim[$$]" "Setting up $ifname"
eval $(umbim $DBG -n -t $tid -d $device config | sed 's/: /=/g')
local mbimconfig="$(umbim $DBG -n -t $tid -d $device config)"
echo "$mbimconfig"
eval $(echo "$mbimconfig" | sed 's/: /=/g')
tid=$((tid + 1))
proto_init_update "$ifname" 1