In libsamsung-ipc, IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT was changed to
IPC_GPRS_FAIL_CAUSE_UNKNOWN_PDP_CONTEXT as the former seems to be a typo.

This change was made by the following libsamsung-ipc commit:
    82c1658cf5e3daac8aae73776235c4ca91d2f0e4
    82c1658 Fix IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT typo

As IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT was used in libsamsung-ril too,
we need to do the change here too, as otherwise we will end with
compilation errors like that while compiling Replicant 6.0:
    target thumb C: libsamsung-ril <= hardware/replicant/libsamsung-ril/rfs.c
    hardware/replicant/libsamsung-ril/data.c: In function 
'ipc2ril_gprs_fail_cause':
    hardware/replicant/libsamsung-ril/data.c:62:8: error:
    'IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT' undeclared (first use in this 
function)
       case IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT:
            ^

Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
 data.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/data.c b/data.c
index 5fedf92..cb612a9 100644
--- a/data.c
+++ b/data.c
@@ -59,7 +59,7 @@ int ipc2ril_gprs_fail_cause(unsigned char fail_cause)
                        return PDP_FAIL_NSAPI_IN_USE;
                case IPC_GPRS_FAIL_CAUSE_NETWORK_FAILURE:
                        return PDP_FAIL_DATA_REGISTRATION_FAIL;
-               case IPC_GPRS_FAIL_CAUSE_UNKOWN_PDP_CONTEXT:
+               case IPC_GPRS_FAIL_CAUSE_UNKNOWN_PDP_CONTEXT:
                case IPC_GPRS_FAIL_CAUSE_INVALID_MSG:
                case IPC_GPRS_FAIL_CAUSE_PROTOCOL_ERROR:
                        return PDP_FAIL_PROTOCOL_ERRORS;
-- 
2.27.0

_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant

Reply via email to