aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorLech Perczak <lech.perczak@gmail.com>2021-07-19 19:04:09 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-29 21:33:04 +0200
commit9bb4b9a968ab72aaca199a6c21b29adbeb83a839 (patch)
tree45b39ff86a0298218a75e29e676cff0243e622d7 /package/network
parent356a6f0eee93ffd03e8f398446ceded144c6237f (diff)
downloadupstream-9bb4b9a968ab72aaca199a6c21b29adbeb83a839.tar.gz
upstream-9bb4b9a968ab72aaca199a6c21b29adbeb83a839.tar.bz2
upstream-9bb4b9a968ab72aaca199a6c21b29adbeb83a839.zip
umbim: use IP configuration provided by MBIM by default
Previously, DHCP was used. According to MBIM Specification v1.0 errata 1 [1], section 10.5.20, MBIM_CID_IP_CONFIGURATION, if MBIM information element containing IP configuration is available, host shall use it, and fall back to in-band mechanisms to acquire it therwise - therefore make static configuration the default. [1] https://www.usb.org/document-library/mobile-broadband-interface-model-v10-errata-1-and-adopters-agreement Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/utils/umbim/files/lib/netifd/proto/mbim.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
index c5f3663271..3867411818 100755
--- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
+++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
@@ -169,7 +169,7 @@ _proto_mbim_setup() {
echo "mbim[$$]" "Connected"
- if [ "$dhcp" = 0 ]; then
+ if [ -z "$dhcp" -o "$dhcp" = 0 ]; then
echo "mbim[$$]" "Setting up $ifname"
eval $(umbim $DBG -n -t $tid -d $device config | sed 's/: /=/g')
tid=$((tid + 1))