Author: nbd Date: 2014-10-02 14:19:26 +0200 (Thu, 02 Oct 2014) New Revision: 42723
Modified: trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh Log: uqmi: do not wait for network connection before starting dhcp Signed-off-by: Felix Fietkau <[email protected]> Modified: trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh =================================================================== --- trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh 2014-10-02 12:19:09 UTC (rev 42722) +++ trunk/package/network/utils/uqmi/files/lib/netifd/proto/qmi.sh 2014-10-02 12:19:26 UTC (rev 42723) @@ -25,6 +25,13 @@ --autoconnect > /dev/null } +qmi_wds_release() { + [ -n "$cid" ] || return 0 + + uqmi -s -d "$device" --set-client-id wds,"$cid" --release-client-id wds + uci_revert_state network $interface cid +} + proto_qmi_setup() { local interface="$1" @@ -101,13 +108,7 @@ ${password:+--password $password} \ --autoconnect > /dev/null - if ! uqmi -s -d "$device" --get-data-status | grep '"connected"' > /dev/null; then - echo "Connection lost" - proto_notify_error "$interface" NOT_CONNECTED - return 1 - fi - - echo "Connected, starting DHCP" + echo "Starting DHCP" proto_init_update "$ifname" 1 proto_send_update "$interface" @@ -135,10 +136,7 @@ echo "Stopping network" qmi_disconnect - [ -n "$cid" ] && { - uqmi -s -d "$device" --set-client-id wds,"$cid" --release-client-id wds - uci_revert_state network $interface cid - } + qmi_wds_release proto_init_update "*" 0 proto_send_update "$interface" _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
