base-files: add protocol qmi/mbim support for ucidef_set_interface()

Make it possible to setup default WAN interface for devices with built-in LTE
modems, using QMI or MBIM.

Signed-off-by: Andrey Butirsky <butirsky@gmail.com>
Reviewed-by: Lech Perczak <lech.perczak@gmail.com>
This commit is contained in:
Andrey Butirsky 2022-09-07 16:54:00 +03:00 committed by Hauke Mehrtens
parent 63460a5ba2
commit bf9dc17651

View File

@ -207,6 +207,14 @@ generate_network() {
EOF
}
;;
qmi|\
mbim)
uci -q batch <<-EOF
set network.$1.proto='${protocol}'
set network.$1.pdptype='ipv4'
EOF
;;
esac
}