iface-modem-3gpp: cleanup packet service state on disabling

Otherwise the state cached by the protocol implementation will be
different to the one exposed in the 3GPP interface.
This commit is contained in:
Aleksander Morgado
2023-05-24 14:09:06 +00:00
parent edf2235259
commit 614cc3e467

View File

@@ -2691,6 +2691,7 @@ interface_disabling_step (GTask *task)
/* fall through */ /* fall through */
case DISABLING_STEP_REGISTRATION_STATE: case DISABLING_STEP_REGISTRATION_STATE:
update_packet_service_state (self, MM_MODEM_3GPP_PACKET_SERVICE_STATE_UNKNOWN);
update_registration_state (self, MM_MODEM_3GPP_REGISTRATION_STATE_UNKNOWN); update_registration_state (self, MM_MODEM_3GPP_REGISTRATION_STATE_UNKNOWN);
mm_iface_modem_3gpp_update_access_technologies (self, MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN); mm_iface_modem_3gpp_update_access_technologies (self, MM_MODEM_ACCESS_TECHNOLOGY_UNKNOWN);
mm_iface_modem_3gpp_update_location (self, 0, 0, 0); mm_iface_modem_3gpp_update_location (self, 0, 0, 0);