aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/utils
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2020-02-07 12:41:59 +0100
committerChristian Lamparter <chunkeey@gmail.com>2021-12-27 13:51:41 +0100
commit6d1cca7e659a040f4db2ed042ab71eef66bb03d4 (patch)
tree4d265b043c1776fd44ec66f6afd1638dc2565b11 /package/network/utils
parent049870a7fe92834b2438c65200d12f938d219cef (diff)
downloadupstream-6d1cca7e659a040f4db2ed042ab71eef66bb03d4.tar.gz
upstream-6d1cca7e659a040f4db2ed042ab71eef66bb03d4.tar.bz2
upstream-6d1cca7e659a040f4db2ed042ab71eef66bb03d4.zip
umbim: explicitly check for PIN1 state
PIN2 is used only to restrict changing of fixed dialling feature, does not affect network registration. Therefore explicitly check for PIN1 state during connection setup, which is required for network registration. Signed-off-by: Martin Schiller <ms@dev.tdt.de> [Updated commit description] Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
Diffstat (limited to 'package/network/utils')
-rwxr-xr-xpackage/network/utils/umbim/files/lib/netifd/proto/mbim.sh3
1 files changed, 2 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 db716c3dbf..a33759cd6d 100755
--- a/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
+++ b/package/network/utils/umbim/files/lib/netifd/proto/mbim.sh
@@ -86,7 +86,8 @@ _proto_mbim_setup() {
tid=$((tid + 1))
echo "mbim[$$]" "Checking pin"
- umbim $DBG -n -t $tid -d $device pinstate || {
+ umbim $DBG -n -t $tid -d $device pinstate
+ [ $? -eq 2 ] && {
echo "mbim[$$]" "PIN required"
tid=$((tid + 1))
umbim $DBG -t $tid -d "$device" disconnect