modemmanager: move cleanup and enable to the top
authorFlorian Eckert <fe@dev.tdt.de>
Wed, 21 Feb 2024 15:03:07 +0000 (16:03 +0100)
committerFlorian Eckert <fe@dev.tdt.de>
Tue, 5 Mar 2024 14:20:38 +0000 (15:20 +0100)
commitd839e194c50267f3b1fcae51d76ac96b4c36bd76
tree6cb664b7c84c28bc70b9465396c23da42cd0f3b3
parent2cd10d81134b5ff4b6350c477da3c9196e1b7489
modemmanager: move cleanup and enable to the top

Before a new connection attempt is made, the previous connection must be
cleaned up before further connection attempts are made. This is now done
by moving the cleanup and enable sequence to the beginning of the
conection setup.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
net/modemmanager/files/lib/netifd/proto/modemmanager.sh