UPSTREAM: broadband-modem-mbim: common process for register state messages

Both the register state indications and the register state set
response messages will be processed in the same way.

This ensures that the registration state reported during the set
response, along with the additional info provided in that
message (e.g. access technologies) are taken into account.

This change also avoids fully relying on the register state
indications sent by the modem, as the indication may not be sent after
a successful update operation (given that the operation response
already contains the last valid state).

(cherry picked from commit edf22352594eece73c81f3104dde32396ab79c75)

BUG=b:284027809
TEST=tast --verbose run ${DUT} cellular.ShillCellularSuspendResumeAutoconnect.enabled

Change-Id: I752218b43b382fa40539c9c7b9d786a603ec5779
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/modemmanager-next/+/4565435
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>
Tested-by: Aleksander Morgado <aleksandermj@google.com>
Commit-Queue: Aleksander Morgado <aleksandermj@google.com>
1 file changed