Commit Graph
50 Commits
Author SHA1 Message Date
Aleksander Morgado 4fa669b894 test-qcdm-com: fix warnings with -Wdouble-promotion
test-qcdm-com.c: In function ‘test_com_pilot_sets’:
  test-qcdm-com.c:1085:59: warning: implicit conversion from ‘float’ to ‘double’ when passing argument to function [-Wdouble-promotion]
   1085 |         g_message ("      EC/IO     %d  (%.1f dB)", ecio, db);
        |                                                           ^~
  /usr/include/glib-2.0/glib/gmessages.h:333:32: note: in definition of macro ‘g_message’
    333 |                                __VA_ARGS__)
        |                                ^~~~~~~~~~~
2020-01-30 11:59:14 +01:00
Aleksander Morgado 45c0015c08 test-qcdm-com: fix warnings with -Wsign-compare
test-qcdm-com.c: In function ‘print_buf’:
  test-qcdm-com.c:273:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘gsize’ {aka ‘long unsigned int’} [-Wsign-compare]
    273 |     for (i = 0; i < len; i++) {
        |                   ^
  test-qcdm-com.c: In function ‘wait_reply’:
  test-qcdm-com.c:367:20: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
    367 |     } while (total < sizeof (readbuf));
        |                    ^
2020-01-30 11:59:14 +01:00
Dan Williams cec01fdaf6 libqcdm: fix WCDMA L1 Manager states
The enum was wrong.  There isn't actually an L1M_INIT state; the
enum should start with L1M_IDLE.  There should also be a
L1M_PCH_SLEEP state between DEACTIVATE and DEEP_SLEEP.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=100000
2017-02-28 13:44:46 -06:00
Aleksander Morgado 905c8a48e9 libqcdm,libwmc: use C99 sized types from stdint.h 2016-11-23 19:27:09 +01:00
Bjørn Mork fa0fa1c647 qcdm: add IPv6 nvram setting to test suite
Signed-off-by: Bjørn Mork <bjorn@mork.no>
2013-12-05 13:16:12 -06:00
Dan Williams 74e94e624d qcdm: add Novatel ERI subsystem support
Returns various ERI information like Indicator ID/Index, Icon
ID/Index, Icon Mode, and banner.
2013-02-06 11:57:00 -06:00
Dan Williams 7489951f88 qcdm: various LTE-related NV mode pref and sysmode updates 2013-01-14 13:50:27 -06:00
Dan Williams 3e39144100 qcdm: handle more test failures for NW subsystem
Bandrich C120 returns BAD_LENGTH rather than BAD_COMMAND, perhaps
because it re-uses the same subsystem number for something else.
2012-11-27 09:56:25 -06:00
Dan Williams b74741e642 qcdm: get/set functions for hybrid preference 2012-11-14 11:11:03 -06:00
Dan Williams 1e286f80ea qcdm: interpret MCC value from StatusSnapshot command 2012-08-08 16:23:02 -05:00
Dan Williams 5337b2277a qcdm: fix 1x/HDR mode pref and add GSM/UMTS mode prefs 2012-06-04 13:53:34 -05:00
Dan Williams 0737a24f43 qcdm: clarify IMxI conversions a bit; fix up WCDMA L1 states 2012-01-21 11:23:17 -06:00
Dan Williams 04e87e70ff qcdm: some devices do implement SW_VERSION
Like the MF627 for some reason.  Also, the format appears to be
more like the DM_CMD_VERSION_INFO response where at least the
comp_date and comp_time fields are the same size as
VERSION_INFO, just with some padding between.
2012-01-18 17:10:23 -06:00
Dan Williams e08e46fb1a qcdm: let WCDMA/GSM devices pass CDMA-only tests
Obviously they don't implement the CDMA-only commands.
2012-01-18 13:25:00 -06:00
Dan Williams 178f30bdd3 qcdm: fill in some GSM and WCDMA stuff 2012-01-17 18:49:18 -06:00
Dan Williams a6548ebe40 qcdm: start filling out log messages and items
Log messages are enabled by LOG_CONFIG and are then reported
as unsolicited responses with code DM_CMD_LOG.  Each log type
appears to have its own message format which are now being
added to log-items.h.
2012-01-12 13:00:52 -06:00
Dan Williams bf31764bab qcdm: enhance LOG_CONFIG testcase 2012-01-11 16:10:37 -06:00
Dan Williams f3208bf3a6 qcdm: add support for Log Config command
This appears to be a newer version of EXT_LOGMASK that also
works with GSM/UMTS and other subsystems.
2012-01-11 14:25:23 -06:00
Dan Williams d085e6c467 qcdm: fix up testcases for more expected error codes
I'm bored and playing around with a Novatel E725...
2012-01-10 18:15:11 -06:00
Dan Williams 11fbcc9010 qcdm: fill out some operating modes 2012-01-05 12:31:13 -06:00
Dan Williams 62d26479ff qcdm: better handle NV item read/write status codes 2012-01-05 12:29:03 -06:00
Dan Williams 6e961ddd83 qcdm: fix up live testcase for recent changes
And interpret all the recent mode preferences.
2012-01-05 11:05:32 -06:00
Dan Williams 7b14063f46 qcdm: remove usage of glib
People have asked for this at various times.
2012-01-03 00:21:05 -06:00
Dan Williams f69d888bae qcdm: add call manager subsystem mode define for LTE
Seen on the Pantech UML290 and another Qualcomm-based LTE device.
2011-01-21 00:31:11 -06:00
Dan Williams 7a2031613a qcdm: add HDR revision preference
Not sure if that's exactly what the NV item is, but the UML290 uses
it for Rev0, RevA, and eHRPD preference.
2011-01-06 22:01:45 -06:00
Dan Williams f3024b46b4 qcdm: add event reporting on/off command
Doesn't parse any events yet since we don't know what any events
are.  We also need to fix up ModemManager to handle unsolicited
responses in the QcdmSerialPort class.
2010-09-01 10:51:22 -05:00
Dan Williams ee53c3c3c4 qcdm: add bits for getting/setting the log mask
No code to actually start logging yet, just sets the mask.
2010-08-25 19:57:58 -05:00
Dan Williams 48b8826cbd qcdm: add Status Snapshot enum 2010-08-16 12:20:49 -05:00
Dan Williams a96e53368d tests: handle random failures of some tests more gracefully
Not all devices support everything; a Huawei EC168C fails to
read the mode preference, and a Pantech PX-500 fails to read
the roam preference NV item.
2010-08-06 01:16:11 -05:00
Dan Williams dbbac27f1e qcdm: add generic status snapshot command support 2010-08-05 22:51:29 -05:00
Dan Williams fb965695ec qcdm: add Novatel Modem Snapshot command support 2010-05-07 04:58:22 -07:00
Dan Williams a7e7854171 qcdm: don't fail testcase on unknown mode pref values
EC168C has a value of 0x16 for mode pref, which is unknown.  But
that shouldn't fail the testcases.
2010-03-30 00:57:15 -07:00
Dan Williams 41c2e0a946 qcdm: add CM subsystem digital only mode preference
Found on the Huawei EC121.
2010-03-30 00:48:55 -07:00
Dan Williams fc33616ae2 qcdm: fix testcases for various devices
Huawei EC121 doesn't implement the MDN NV item, and we're also missing
some values for the CM subsystem mode pref enum.
2010-03-30 00:38:14 -07:00
Dan Williams 0ae176c63c qcdm: add Pilot Set retrieval for signal strength calculations
Determined from various	sources	including RTManager and
"Technical Introduction to CDMA" (Course RF100 Chapter 7).
2010-03-30 00:32:27 -07:00
Dan Williams a98fa8a4b3 qcdm: fix up CDMA Status command fields and values
Found in two sources:
a) Руководство пользования тестером CDMA-450
b) RTManager
2010-03-29 00:08:46 -07:00
Dan Williams 6ab36bacf3 qcdm: add ZTE signal strength request 2010-03-22 13:03:53 -07:00
Dan Williams c03556f820 qcdm: fix up testcase output 2010-03-20 03:53:31 -07:00
Dan Williams c4a1a78c43 qcdm: complete mode preference implementation 2010-03-20 00:09:38 -07:00
Dan Williams 26c1402aae qcdm: add initial roaming and mode preference bits 2010-03-19 19:18:02 -07:00
Dan Williams bc3ac7bae5 qcdm: testcase output cleanup 2010-02-22 21:43:42 -08:00
Dan Williams d694cebdfe qcdm: add more HDR subsystem protocol enums
Found in TIA-856-A section 9.  Assuming that the modem firmware just
passes the protocol states right through.
2010-02-22 19:00:31 -08:00
Dan Williams 06415201cb qcdm: add HDR State Info command 2010-02-22 18:34:12 -08:00
Dan Williams 928f8a9ff2 qcdm: add Call Manager subsystem STATE_INFO command 2010-02-22 17:35:28 -08:00
Dan Williams c937d1399b qcdm: add SW_VERSION command 2010-02-22 16:15:19 -08:00
Dan Williams c0e227a16b qcdm: add status command and rework testcases a bit
Status command not completely working yet.
2010-02-22 13:27:25 -08:00
Dan Williams 3d617b7bf6 qcdm: add command to get MDN (ie, phone number) 2010-02-22 12:17:27 -08:00
Dan Williams 7d151e6ae0 qcdm: add DIAG_CMD_ESN 2010-02-22 11:33:44 -08:00
Dan Williams 0f9d4d2a1a qcdm: fix QCDM packet decapsulation
Rename and document the encapsulate/decapsulate functions, CRC-check
the incoming packet, and make callers aware of the difference in how
big the decapsulated packet is versus how many bytes they should
discard from the buffer (since the decapsulated packet is at least
3 bytes shorter than the incoming packet due to the CRC + framing).
2010-02-22 10:52:59 -08:00
Dan Williams 6239d2e351 qcdm: implement command handling and minimal infrastructure 2010-02-16 09:58:47 -08:00