git://git.jankratochvil.net
/
gnokii.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
afafbe3
)
Conditional (enabled) compilation of Nokia Authentication phase (not needed?)
author
short
<>
Wed, 27 Feb 2002 22:47:30 +0000
(22:47 +0000)
committer
short
<>
Wed, 27 Feb 2002 22:47:30 +0000
(22:47 +0000)
common/newmodules/n6110.c
patch
|
blob
|
history
diff --git
a/common/newmodules/n6110.c
b/common/newmodules/n6110.c
index
fcb8ac9
..
80e0115
100644
(file)
--- 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) {
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);
#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 */
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;
if (N6110_Authentication()!=GE_NONE) return GE_TIMEOUT;
} else { /* No authentication */
if (N6110_SendIMEIFrame()!=GE_NONE) return GE_TIMEOUT;