From 68b0ac6e197649900e05ee53467699de12ba4809 Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Fri, 9 Dec 2011 16:44:19 +0100 Subject: [PATCH] broadband-modem: by default only send init command once Will handle sending it twice only for Nokia phones. --- src/mm-broadband-modem.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c index bc638268..72b085e4 100644 --- a/src/mm-broadband-modem.c +++ b/src/mm-broadband-modem.c @@ -1051,14 +1051,7 @@ modem_init_finish (MMIfaceModem *self, } static const MMBaseModemAtCommand modem_init_sequence[] = { - /* Send the init command twice; some devices (Nokia N900) appear to take a - * few commands before responding correctly. Instead of penalizing them for - * being stupid the first time by failing to enable the device, just - * try again. - - * TODO: only send init command 2nd time if 1st time failed? - */ - { "Z E0 V1", 3, FALSE, NULL }, + /* Init command */ { "Z E0 V1", 3, FALSE, mm_base_modem_response_processor_no_result_continue }, /* Ensure echo is off after the init command; some modems ignore the