mirror of
https://github.com/openwrt/openwrt.git
synced 2025-04-12 21:53:23 +00:00
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>
This commit is contained in:
parent
049870a7fe
commit
6d1cca7e65
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user