[openwrt/openwrt] uqmi: set IPv6 family explicitly in status check
LEDE Commits
lede-commits at lists.infradead.org
Sun Apr 2 09:56:35 PDT 2023
hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/8c445d56f12ffae8620fa99a3cf4a0ad82544efd
commit 8c445d56f12ffae8620fa99a3cf4a0ad82544efd
Author: Lech Perczak <lech.perczak at gmail.com>
AuthorDate: Tue Mar 15 19:29:59 2022 +0100
uqmi: set IPv6 family explicitly in status check
Some modems require CID to be set explicitly during IPv6 connection
status check, others require IPv6 address family to be checked explicitly
after establishing connection, in order to provide correct status.
Set both fields in the request to satisfy them.
Fixes: c8a88118af46 ("uqmi: set CID during 'query-data-status' operation")
Signed-off-by: Lech Perczak <lech.perczak at gmail.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 c2c5fc1eca..5045ce04af 100755
--- a/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
+++ b/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh
@@ -326,7 +326,7 @@ proto_qmi_setup() {
fi
# Check data connection state
- connstat=$(uqmi -s -d "$device" --set-client-id wds,"$cid_6" --get-data-status)
+ connstat=$(uqmi -s -d "$device" --set-client-id wds,"$cid_6" --set-ip-family ipv6 --get-data-status)
[ "$connstat" == '"connected"' ] || {
echo "No data link!"
uqmi -s -d "$device" --set-client-id wds,"$cid_6" --release-client-id wds > /dev/null 2>&1
More information about the lede-commits
mailing list