FreeCalypso > hg > fc-tourmaline
view src/g23m-gsm/alr2/alr_test/alr_test.mak @ 303:f76436d19a7a default tip
!GPRS config: fix long-standing AT+COPS chance hanging bug
There has been a long-standing bug in FreeCalypso going back years:
sometimes in the AT command bring-up sequence of an ACI-only MS,
the AT+COPS command would produce only a power scan followed by
cessation of protocol stack activity (only L1 ADC traces), instead
of the expected network search sequence. This behaviour was seen
in different FC firmware versions going back to Citrine, and seemed
to follow some law of chance, not reliably repeatable.
This bug has been tracked down and found to be specific to !GPRS
configuration, stemming from our TCS2/TCS3 hybrid and reconstruction
of !GPRS support that was bitrotten in TCS3.2/LoCosto version.
ACI module psa_mms.c, needed only for !GPRS, was missing in the TCS3
version and had to be pulled from TCS2 - but as it turns out,
there is a new field in the MMR_REG_REQ primitive that needs to be
set correctly, and that psa_mms.c module is the place where this
initialization needed to be added.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 08 Jun 2023 08:23:37 +0000 |
parents | 3a14ee9a9843 |
children |
line wrap: on
line source
# Microsoft Developer Studio Generated NMAKE File, Based on alr_test.dsp !IF "$(CFG)" == "" CFG=alr_test - Win32 Debug GSM !MESSAGE No configuration specified. Defaulting to alr_test - Win32 Debug GSM. !ENDIF !IF "$(CFG)" != "alr_test - Win32 Debug GPRS" && "$(CFG)" != "alr_test - Win32 Debug GSM" !MESSAGE Invalid configuration "$(CFG)" specified. !MESSAGE You can specify a configuration when running NMAKE !MESSAGE by defining the macro CFG on the command line. For example: !MESSAGE !MESSAGE NMAKE /f "alr_test.mak" CFG="alr_test - Win32 Debug GSM" !MESSAGE !MESSAGE Possible choices for configuration are: !MESSAGE !MESSAGE "alr_test - Win32 Debug GPRS" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE "alr_test - Win32 Debug GSM" (based on "Win32 (x86) Dynamic-Link Library") !MESSAGE !ERROR An invalid configuration is specified. !ENDIF !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF !IF "$(CFG)" == "alr_test - Win32 Debug GPRS" OUTDIR=.\GPRS INTDIR=.\GPRS # Begin Custom Macros OutDir=.\GPRS # End Custom Macros ALL : "..\..\..\test\alr_gprs_test\alr_gprs.dll" "$(OUTDIR)\alr_test.bsc" CLEAN : -@erase "$(INTDIR)\alr_cases.obj" -@erase "$(INTDIR)\alr_cases.sbr" -@erase "$(INTDIR)\alr_cbch_constraints.obj" -@erase "$(INTDIR)\alr_cbch_constraints.sbr" -@erase "$(INTDIR)\alr_cbch_steps.obj" -@erase "$(INTDIR)\alr_cbch_steps.sbr" -@erase "$(INTDIR)\alr_constraints.obj" -@erase "$(INTDIR)\alr_constraints.sbr" -@erase "$(INTDIR)\alr_dedicated_constraints.obj" -@erase "$(INTDIR)\alr_dedicated_constraints.sbr" -@erase "$(INTDIR)\alr_dedicated_steps.obj" -@erase "$(INTDIR)\alr_dedicated_steps.sbr" -@erase "$(INTDIR)\alr_idle_constraints.obj" -@erase "$(INTDIR)\alr_idle_constraints.sbr" -@erase "$(INTDIR)\alr_idle_steps.obj" -@erase "$(INTDIR)\alr_idle_steps.sbr" -@erase "$(INTDIR)\alr_ncell_constraints.obj" -@erase "$(INTDIR)\alr_ncell_constraints.sbr" -@erase "$(INTDIR)\alr_ncell_steps.obj" -@erase "$(INTDIR)\alr_ncell_steps.sbr" -@erase "$(INTDIR)\alr_steps.obj" -@erase "$(INTDIR)\alr_steps.sbr" -@erase "$(INTDIR)\vc60.idb" -@erase "$(INTDIR)\vc60.pdb" -@erase "$(OUTDIR)\alr_gprs.exp" -@erase "$(OUTDIR)\alr_gprs.lib" -@erase "$(OUTDIR)\alr_gprs.map" -@erase "$(OUTDIR)\alr_test.bsc" -@erase "..\..\..\test\alr_gprs_test\alr_gprs.dll" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" CPP=cl.exe CPP_PROJ=/nologo /Zp1 /MDd /W3 /Zi /Od /I "\gpf\inc" /I "\gpf\tap" /I "\g23m\condat\ms\tdcinc" /D "USE_DLL" /D "_WINDOWS" /D "WIN32" /D "USE_TCD_STUB" /D "GPRS" /Fr"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /GZ /Zm1000 /c .c{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .cpp{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .cxx{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .c{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << .cpp{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << .cxx{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << MTL=midl.exe MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32 RSC=rc.exe BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\alr_test.bsc" BSC32_SBRS= \ "$(INTDIR)\alr_cases.sbr" \ "$(INTDIR)\alr_constraints.sbr" \ "$(INTDIR)\alr_steps.sbr" \ "$(INTDIR)\alr_dedicated_constraints.sbr" \ "$(INTDIR)\alr_dedicated_steps.sbr" \ "$(INTDIR)\alr_ncell_constraints.sbr" \ "$(INTDIR)\alr_ncell_steps.sbr" \ "$(INTDIR)\alr_cbch_constraints.sbr" \ "$(INTDIR)\alr_cbch_steps.sbr" \ "$(INTDIR)\alr_idle_constraints.sbr" \ "$(INTDIR)\alr_idle_steps.sbr" "$(OUTDIR)\alr_test.bsc" : "$(OUTDIR)" $(BSC32_SBRS) $(BSC32) @<< $(BSC32_FLAGS) $(BSC32_SBRS) << LINK32=link.exe LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib shell32.lib wsock32.lib /nologo /subsystem:windows /dll /pdb:none /map:"$(INTDIR)\alr_gprs.map" /debug /machine:IX86 /nodefaultlib:"LIBCD" /nodefaultlib:"LIBC" /out:"\g23m\condat\ms\test\alr_gprs_test\alr_gprs.dll" /implib:"$(OUTDIR)\alr_gprs.lib" /FORCE:MULTIPLE LINK32_OBJS= \ "$(INTDIR)\alr_cases.obj" \ "$(INTDIR)\alr_constraints.obj" \ "$(INTDIR)\alr_steps.obj" \ "$(INTDIR)\alr_dedicated_constraints.obj" \ "$(INTDIR)\alr_dedicated_steps.obj" \ "$(INTDIR)\alr_ncell_constraints.obj" \ "$(INTDIR)\alr_ncell_steps.obj" \ "$(INTDIR)\alr_cbch_constraints.obj" \ "$(INTDIR)\alr_cbch_steps.obj" \ "$(INTDIR)\alr_idle_constraints.obj" \ "$(INTDIR)\alr_idle_steps.obj" \ "..\..\..\tdclib\tdcinc.lib" \ "..\..\..\..\..\..\GPF\LIB\win32\tdc.lib" "..\..\..\test\alr_gprs_test\alr_gprs.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ELSEIF "$(CFG)" == "alr_test - Win32 Debug GSM" OUTDIR=.\GSM INTDIR=.\GSM # Begin Custom Macros OutDir=.\GSM # End Custom Macros ALL : "..\..\..\test\alr_gsm_test\alr_gsm.dll" "$(OUTDIR)\alr_test.bsc" CLEAN : -@erase "$(INTDIR)\alr_cases.obj" -@erase "$(INTDIR)\alr_cases.sbr" -@erase "$(INTDIR)\alr_cbch_constraints.obj" -@erase "$(INTDIR)\alr_cbch_constraints.sbr" -@erase "$(INTDIR)\alr_cbch_steps.obj" -@erase "$(INTDIR)\alr_cbch_steps.sbr" -@erase "$(INTDIR)\alr_constraints.obj" -@erase "$(INTDIR)\alr_constraints.sbr" -@erase "$(INTDIR)\alr_dedicated_constraints.obj" -@erase "$(INTDIR)\alr_dedicated_constraints.sbr" -@erase "$(INTDIR)\alr_dedicated_steps.obj" -@erase "$(INTDIR)\alr_dedicated_steps.sbr" -@erase "$(INTDIR)\alr_idle_constraints.obj" -@erase "$(INTDIR)\alr_idle_constraints.sbr" -@erase "$(INTDIR)\alr_idle_steps.obj" -@erase "$(INTDIR)\alr_idle_steps.sbr" -@erase "$(INTDIR)\alr_ncell_constraints.obj" -@erase "$(INTDIR)\alr_ncell_constraints.sbr" -@erase "$(INTDIR)\alr_ncell_steps.obj" -@erase "$(INTDIR)\alr_ncell_steps.sbr" -@erase "$(INTDIR)\alr_steps.obj" -@erase "$(INTDIR)\alr_steps.sbr" -@erase "$(INTDIR)\vc60.idb" -@erase "$(INTDIR)\vc60.pdb" -@erase "$(OUTDIR)\alr_gsm.exp" -@erase "$(OUTDIR)\alr_gsm.lib" -@erase "$(OUTDIR)\alr_gsm.map" -@erase "$(OUTDIR)\alr_test.bsc" -@erase "..\..\..\test\alr_gsm_test\alr_gsm.dll" "$(OUTDIR)" : if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)" CPP=cl.exe CPP_PROJ=/nologo /Zp1 /MDd /W3 /Zi /Od /I "\gpf\inc" /I "\gpf\tap" /I "\g23m\condat\ms\tdcinc" /D "USE_DLL" /D "_WINDOWS" /D "WIN32" /D "USE_TCD_STUB" /Fr"$(INTDIR)\\" /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /GZ /GZ /Zm1000 /c .c{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .cpp{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .cxx{$(INTDIR)}.obj:: $(CPP) @<< $(CPP_PROJ) $< << .c{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << .cpp{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << .cxx{$(INTDIR)}.sbr:: $(CPP) @<< $(CPP_PROJ) $< << MTL=midl.exe MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32 RSC=rc.exe BSC32=bscmake.exe BSC32_FLAGS=/nologo /o"$(OUTDIR)\alr_test.bsc" BSC32_SBRS= \ "$(INTDIR)\alr_cases.sbr" \ "$(INTDIR)\alr_constraints.sbr" \ "$(INTDIR)\alr_steps.sbr" \ "$(INTDIR)\alr_dedicated_constraints.sbr" \ "$(INTDIR)\alr_dedicated_steps.sbr" \ "$(INTDIR)\alr_ncell_constraints.sbr" \ "$(INTDIR)\alr_ncell_steps.sbr" \ "$(INTDIR)\alr_cbch_constraints.sbr" \ "$(INTDIR)\alr_cbch_steps.sbr" \ "$(INTDIR)\alr_idle_constraints.sbr" \ "$(INTDIR)\alr_idle_steps.sbr" "$(OUTDIR)\alr_test.bsc" : "$(OUTDIR)" $(BSC32_SBRS) $(BSC32) @<< $(BSC32_FLAGS) $(BSC32_SBRS) << LINK32=link.exe LINK32_FLAGS=kernel32.lib user32.lib gdi32.lib shell32.lib wsock32.lib /nologo /subsystem:windows /dll /pdb:none /map:"$(INTDIR)\alr_gsm.map" /debug /machine:IX86 /nodefaultlib:"LIBCD" /nodefaultlib:"LIBC" /out:"\g23m\condat\ms\test\alr_gsm_test\alr_gsm.dll" /implib:"$(OUTDIR)\alr_gsm.lib" /FORCE:MULTIPLE LINK32_OBJS= \ "$(INTDIR)\alr_cases.obj" \ "$(INTDIR)\alr_constraints.obj" \ "$(INTDIR)\alr_steps.obj" \ "$(INTDIR)\alr_dedicated_constraints.obj" \ "$(INTDIR)\alr_dedicated_steps.obj" \ "$(INTDIR)\alr_ncell_constraints.obj" \ "$(INTDIR)\alr_ncell_steps.obj" \ "$(INTDIR)\alr_cbch_constraints.obj" \ "$(INTDIR)\alr_cbch_steps.obj" \ "$(INTDIR)\alr_idle_constraints.obj" \ "$(INTDIR)\alr_idle_steps.obj" \ "..\..\..\tdclib\tdcinc.lib" \ "..\..\..\..\..\..\GPF\LIB\win32\tdc.lib" "..\..\..\test\alr_gsm_test\alr_gsm.dll" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS) $(LINK32) @<< $(LINK32_FLAGS) $(LINK32_OBJS) << !ENDIF !IF "$(NO_EXTERNAL_DEPS)" != "1" !IF EXISTS("alr_test.dep") !INCLUDE "alr_test.dep" !ELSE !MESSAGE Warning: cannot find "alr_test.dep" !ENDIF !ENDIF !IF "$(CFG)" == "alr_test - Win32 Debug GPRS" || "$(CFG)" == "alr_test - Win32 Debug GSM" SOURCE=.\alr_cases.cpp "$(INTDIR)\alr_cases.obj" "$(INTDIR)\alr_cases.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_constraints.cpp "$(INTDIR)\alr_constraints.obj" "$(INTDIR)\alr_constraints.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_steps.cpp "$(INTDIR)\alr_steps.obj" "$(INTDIR)\alr_steps.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_dedicated_constraints.cpp "$(INTDIR)\alr_dedicated_constraints.obj" "$(INTDIR)\alr_dedicated_constraints.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_dedicated_steps.cpp "$(INTDIR)\alr_dedicated_steps.obj" "$(INTDIR)\alr_dedicated_steps.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_ncell_constraints.cpp "$(INTDIR)\alr_ncell_constraints.obj" "$(INTDIR)\alr_ncell_constraints.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_ncell_steps.cpp "$(INTDIR)\alr_ncell_steps.obj" "$(INTDIR)\alr_ncell_steps.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_cbch_constraints.cpp "$(INTDIR)\alr_cbch_constraints.obj" "$(INTDIR)\alr_cbch_constraints.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_cbch_steps.cpp "$(INTDIR)\alr_cbch_steps.obj" "$(INTDIR)\alr_cbch_steps.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_idle_constraints.cpp "$(INTDIR)\alr_idle_constraints.obj" "$(INTDIR)\alr_idle_constraints.sbr" : $(SOURCE) "$(INTDIR)" SOURCE=.\alr_idle_steps.cpp "$(INTDIR)\alr_idle_steps.obj" "$(INTDIR)\alr_idle_steps.sbr" : $(SOURCE) "$(INTDIR)" !ENDIF