summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2018-10-01 16:53:31 +0300
committerAleksander Morgado <aleksander@aleksander.es>2018-10-12 11:39:03 +0200
commit8269f4d86927fbe19e78776a12736680fe9169b6 (patch)
treefc0cb9975fdf8f227e451b1961b1ff010ba6c49b
parenta04f974ce4d0933af06b1161b251c5d5d7c3f0ff (diff)
qmi-network: Don't create invalid --wds-start-network when APN is not setqmi-1-20
In 1.20.2 the warning for this was turned into an error. (cherry picked from commit 289d8ad6419895e2e1fba3d78a54a0db65da521d)
-rwxr-xr-xutils/qmi-network.in12
1 files changed, 7 insertions, 5 deletions
diff --git a/utils/qmi-network.in b/utils/qmi-network.in
index bf7bed9..a9e5299 100755
--- a/utils/qmi-network.in
+++ b/utils/qmi-network.in
@@ -334,11 +334,13 @@ start_network ()
setup_data_format
- START_NETWORK_ARGS="apn='$APN'"
- if [ -n "$APN_USER" ]; then
- START_NETWORK_ARGS="${START_NETWORK_ARGS},username='$APN_USER'"
- if [ -n "$APN_PASS" ]; then
- START_NETWORK_ARGS="${START_NETWORK_ARGS},password='$APN_PASS'"
+ if [ -n "$APN" ]; then
+ START_NETWORK_ARGS="apn='$APN'"
+ if [ -n "$APN_USER" ]; then
+ START_NETWORK_ARGS="${START_NETWORK_ARGS},username='$APN_USER'"
+ if [ -n "$APN_PASS" ]; then
+ START_NETWORK_ARGS="${START_NETWORK_ARGS},password='$APN_PASS'"
+ fi
fi
fi