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>
Thu, 30 Mar 2023 00:03:32 +0000 (02:03 +0200)
commitb573a785e0c53d710b8bd6637c7d5ba73fe6839c
tree2bf016155a034721d1e0c0a311aad94cabc1e73e
parentf61c5cf76b9d13d9cc5962c4640ba14f28800215
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>
(cherry picked from commit 8f27093ce784daad5a9b1c89f51d0a76a8bbb07b)
package/network/utils/comgt/files/ncm.sh