[source] uqmi: also try newer pin verification

LEDE Commits lede-commits at lists.infradead.org
Mon Dec 11 03:36:07 PST 2017


mkresin pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/ed82c52a4a88af17e525914f5d5727f0bc448c5a

commit ed82c52a4a88af17e525914f5d5727f0bc448c5a
Author: Koen Vandeputte <koen.vandeputte at ncentric.com>
AuthorDate: Tue Oct 24 16:20:21 2017 +0200

    uqmi: also try newer pin verification
    
    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 at ncentric.com>
---
 package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
index 35de6c5..7b58f6d 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -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"



More information about the lede-commits mailing list