Network: Added registration state (both SOL and UNSOL) support
[hayes-ril.git] / hayes-ril.c
index fac4877..8cbe064 100644 (file)
@@ -27,7 +27,9 @@
 struct ril_device *ril_device;
 struct ril_globals ril_globals;
 
-struct ril_dispatch_unsol ril_dispatch_unsol[] = {};
+struct ril_dispatch_unsol ril_dispatch_unsol[] = {
+       { "AT+CREG", at_creg_unexpect }
+};
 
 void ril_on_request(int request, void *data, size_t length, RIL_Token t)
 {
@@ -50,6 +52,9 @@ void ril_on_request(int request, void *data, size_t length, RIL_Token t)
                case RIL_REQUEST_SIGNAL_STRENGTH:
                        ril_request_signal_strength(t, data, length);
                        break;
+               case RIL_REQUEST_REGISTRATION_STATE:
+                       ril_request_registration_state(t, data, length);
+                       break;
                // Call
                case RIL_REQUEST_GET_CURRENT_CALLS:
                        ril_request_get_current_calls(t, data, length);