umbim: fail connect step immediately
authorLech Perczak <lech.perczak@gmail.com>
Mon, 9 Jan 2023 21:08:07 +0000 (22:08 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Apr 2023 19:33:04 +0000 (21:33 +0200)
commitda84eddedbf0abc8e17b0bfbeac53de1bca1a918
tree8e6910d47efe8b5b6b864cf492279cc5b42fe761
parent0be14c622b809e7d3551c21e7ac6dbae6b0403f8
umbim: fail connect step immediately

Subsequent calls to 'umbim connect' do not have any effect if a failure
occured, and in such case an infinite loop without timeout is created,
leading to possibility of interface stuck at connecting forever.
Drop this loop, and issue MBIM disconnect properly, so netifd can
restart from scratch.
This issue can be observed with Sierra EM7455 at changing APN, which
causes network re-registration by default, and a MBIM transaction
timeout, which is resolved on next interface bringup by netifd.

Signed-off-by: Lech Perczak <lech.perczak@gmail.com>
package/network/utils/umbim/files/lib/netifd/proto/mbim.sh