From: short <> Date: Wed, 27 Feb 2002 22:47:30 +0000 (+0000) Subject: Conditional (enabled) compilation of Nokia Authentication phase (not needed?) X-Git-Tag: uc_works1~27 X-Git-Url: https://git.jankratochvil.net/?p=gnokii.git;a=commitdiff_plain;h=a2613480a5a1d2e6a1314841f43ae53e85f05f8b Conditional (enabled) compilation of Nokia Authentication phase (not needed?) --- 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;