uqmi: also try newer pin verification
authorKoen Vandeputte <koen.vandeputte@ncentric.com>
Tue, 24 Oct 2017 14:20:21 +0000 (16:20 +0200)
committerMathias Kresin <dev@kresin.me>
Mon, 11 Dec 2017 11:26:39 +0000 (12:26 +0100)
Newer devices tend to only support the newer version of the pin
verification command, so also try that one.

Fixes PIN issues with modems like the Sierra Wireless MC7455

Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh

index 35de6c5ad5eb6059336eaf436cf7ba67b2415e68..7b58f6dd90ae7a043fbd09e0b8bf0d7d43cd99e4 100755 (executable)
@@ -69,7 +69,7 @@ proto_qmi_setup() {
        done
 
        [ -n "$pincode" ] && {
-               uqmi -s -d "$device" --verify-pin1 "$pincode" || {
+               uqmi -s -d "$device" --verify-pin1 "$pincode" || uqmi -s -d "$device" --uim-verify-pin1 "$pincode" || {
                        echo "Unable to verify PIN"
                        proto_notify_error "$interface" PIN_FAILED
                        proto_block_restart "$interface"