diff options
author | Adrian Bunk <bunk@stusta.de> | 2018-10-01 16:53:31 +0300 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2018-10-12 11:39:03 +0200 |
commit | 8269f4d86927fbe19e78776a12736680fe9169b6 (patch) | |
tree | fc0cb9975fdf8f227e451b1961b1ff010ba6c49b | |
parent | a04f974ce4d0933af06b1161b251c5d5d7c3f0ff (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-x | utils/qmi-network.in | 12 |
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 |