<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openmoko-gsmd/src/gsmd, branch zecke/misc/changes</title>
<subtitle>Openmoko gsmd/libgsmd</subtitle>
<id>https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=zecke%2Fmisc%2Fchanges</id>
<link rel='self' href='https://git.gnumonks.org/cgit/openmoko-gsmd/atom?h=zecke%2Fmisc%2Fchanges'/>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/'/>
<updated>2013-09-17T06:53:02+00:00</updated>
<entry>
<title>HACK: re-setting a device that is using USB... is not really that great</title>
<updated>2013-09-17T06:53:02+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>holger@moiji-mobile.com</email>
</author>
<published>2013-09-17T06:53:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=699d803aaf7a6c705fce4a41dca7f96df6bdae6a'/>
<id>urn:sha1:699d803aaf7a6c705fce4a41dca7f96df6bdae6a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wavecom: Fix unaligned memory access and silent stack corruption</title>
<updated>2013-03-17T09:40:26+00:00</updated>
<author>
<name>Holger Hans Peter Freyther</name>
<email>zecke@selfish.org</email>
</author>
<published>2013-03-16T21:05:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=6cdf70598ab71bad6b1aff95b9be9d972e581747'/>
<id>urn:sha1:6cdf70598ab71bad6b1aff95b9be9d972e581747</id>
<content type='text'>
The parameters were uint16_t and we asked the libc to make a
store of uint32_t. So 16bit were written to the wrong part of
the struct and on ARM this is causing unaligned memory access.

Use the %hx to make a uint16_t store and avoid the above issue.

GDB
 #0  0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
 (gdb) bt
 #0  0x4d4d0a20 in _IO_vfscanf () from /lib/libc.so.6
 #1  0x4d4d5d54 in __isoc99_vsscanf () from /lib/libc.so.6
 #2  0x4d4d5cd0 in __isoc99_sscanf () from /lib/libc.so.6
 #3  0x400a597c in ?? () from /usr/lib/gsmd/libgsmd-vendor_wavecom.so
 Cannot access memory at address 0x3

Clang:
vendor_wavecom.c:114:21: warning: format specifies type 'unsigned int *' but the argument has
      type 'u_int16_t *' (aka 'unsigned short *') [-Wformat]
                sscanf(tok, "%x", &amp;aux-&gt;u.cell_info.ci);
                             ~~   ^~~~~~~~~~~~~~~~~~~~
                             %hx
</content>
</entry>
<entry>
<title>Add run-time changing of gsmd log level via libgsm/libgsmd-tool</title>
<updated>2013-03-15T10:07:12+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T10:07:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=3ec111676ff9e34058b3bf2e482a236f341c10eb'/>
<id>urn:sha1:3ec111676ff9e34058b3bf2e482a236f341c10eb</id>
<content type='text'>
</content>
</entry>
<entry>
<title>vendor_wavecom: Reset the modem on initialization using AT+CFUN=1</title>
<updated>2013-03-15T09:32:51+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-15T09:32:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=4c14b6eb4183905dea8f0a2cea695cebb174815f'/>
<id>urn:sha1:4c14b6eb4183905dea8f0a2cea695cebb174815f</id>
<content type='text'>
In some cases the modem might be stuck once we start up, so it's best to
re-initialize it at gsmd startup.
</content>
</entry>
<entry>
<title>update copyright notice</title>
<updated>2013-03-14T19:52:35+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:52:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=cf9ad6fe4dda247c47d0df10ef95fcaa45d87558'/>
<id>urn:sha1:cf9ad6fe4dda247c47d0df10ef95fcaa45d87558</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gsmd: default log level is INFO, not DEBUG</title>
<updated>2013-03-14T19:51:28+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:51:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=4aeb40093b722c3bd34ee6b672ae4406b447a40c'/>
<id>urn:sha1:4aeb40093b722c3bd34ee6b672ae4406b447a40c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Convert DEBUG to ERROR/INFO/NOTICE where applicable</title>
<updated>2013-03-14T19:50:20+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:50:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=d9f04cf80fa35762a49c87672cbd241d00e438da'/>
<id>urn:sha1:d9f04cf80fa35762a49c87672cbd241d00e438da</id>
<content type='text'>
</content>
</entry>
<entry>
<title>gsmd: introduce command line option for log level</title>
<updated>2013-03-14T19:50:04+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:50:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=93b5b8fe5e7c7be7474bee08879e723cfa45f917'/>
<id>urn:sha1:93b5b8fe5e7c7be7474bee08879e723cfa45f917</id>
<content type='text'>
</content>
</entry>
<entry>
<title>wavecom/sysmocom: Directly send GPS/AIS via UDP to gpsd</title>
<updated>2013-03-14T19:20:50+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-14T19:20:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=805406e9fbb38f45a2ecea94ca58dbe94509c36f'/>
<id>urn:sha1:805406e9fbb38f45a2ecea94ca58dbe94509c36f</id>
<content type='text'>
This avoids having to have another client program which then passes
messages from gsmd into gpsd.  Rather, gpsd can directly receive the
messages via UDP.
</content>
</entry>
<entry>
<title>vendor_wavecom: Make sure MCC of first reported cell is not zero</title>
<updated>2013-03-02T11:39:37+00:00</updated>
<author>
<name>Harald Welte</name>
<email>laforge@gnumonks.org</email>
</author>
<published>2013-03-02T11:39:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.gnumonks.org/cgit/openmoko-gsmd/commit/?id=06253f362045c792baaf1430200c8964885d13a5'/>
<id>urn:sha1:06253f362045c792baaf1430200c8964885d13a5</id>
<content type='text'>
</content>
</entry>
</feed>
