umbim: add missing json_close_object call
authorMartin Schiller <ms@dev.tdt.de>
Fri, 15 Jan 2021 14:24:23 +0000 (15:24 +0100)
committerChristian Lamparter <chunkeey@gmail.com>
Mon, 27 Dec 2021 12:51:41 +0000 (13:51 +0100)
Otherwise, connection setup may fail due to JSON parse error in netifd.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[Updated commit description]
Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh

index a33759cd6d93092e3724c0e9448181d7900d4ce5..3fa411c6c6d676399bf62fd1cd002ad1a5adf950 100755 (executable)
@@ -154,6 +154,7 @@ _proto_mbim_setup() {
        json_add_string proto "dhcpv6"
        json_add_string extendprefix 1
        proto_add_dynamic_defaults
+       json_close_object
        ubus call network add_dynamic "$(json_dump)"
 }