ncm: add error check and retry mechanism for gcom call
authorMike Wilson <mikewse@hotmail.com>
Mon, 20 Jul 2020 20:25:33 +0000 (22:25 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 28 Mar 2023 12:19:33 +0000 (14:19 +0200)
commit8f27093ce784daad5a9b1c89f51d0a76a8bbb07b
treee243e4d5edc460dfe1202cc5f629e4448b6a3b72
parent77f11d2772dcee35b4956d1d36d95b369b6b719c
ncm: add error check and retry mechanism for gcom call

This patch solves the problem of receiving "error" responses when
initially calling gcom. This avoids unnecessary NO_DEVICE failures.

A retry loop retries the call after an "error" response within the
specified delay. A successful response will continue with the connection
immediately without waiting for max specified delay, bringing the
interface up sooner.

Signed-off-by: Mike Wilson <mikewse@hotmail.com>
package/network/utils/comgt/files/ncm.sh