From a2613480a5a1d2e6a1314841f43ae53e85f05f8b Mon Sep 17 00:00:00 2001 From: short <> Date: Wed, 27 Feb 2002 22:47:30 +0000 Subject: [PATCH] Conditional (enabled) compilation of Nokia Authentication phase (not needed?) --- common/newmodules/n6110.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/common/newmodules/n6110.c b/common/newmodules/n6110.c index fcb8ac9..80e0115 100644 --- a/common/newmodules/n6110.c +++ b/common/newmodules/n6110.c @@ -431,6 +431,8 @@ GSM_Error N6110_SendStatusRequest(void) static void N6110_ReplyGetAuthentication(u16 MessageLength, u8 *MessageBuffer, u8 MessageType) { + LIVE; + #if defined WIN32 || !defined HAVE_SNPRINTF sprintf(Current_IMEI, "%s", MessageBuffer+9); sprintf(Current_Model, "%s", MessageBuffer+25); @@ -721,7 +723,12 @@ GSM_Error N6110_Initialise(char *port_device, char *initlength, After making it phone display "Accessory connected" and probably give access to some function (I'm not too sure about it !) Anyway, I make it now for N51xx/61xx */ - if (GetModelFeature (FN_AUTHENTICATION)!=0) { +#if 1 + if (GetModelFeature (FN_AUTHENTICATION)!=0) +#else + if (0/*Lace-hack:GetModelFeature (FN_AUTHENTICATION)!=0*/) +#endif + { if (N6110_Authentication()!=GE_NONE) return GE_TIMEOUT; } else { /* No authentication */ if (N6110_SendIMEIFrame()!=GE_NONE) return GE_TIMEOUT; -- 1.8.3.1