gsm: correctly parse Samsung S8500 Wave CREG response
(testcases by dcbw)
This commit is contained in:

committed by
Dan Williams

parent
7a2031613a
commit
f4d4569cdd
@@ -721,6 +721,16 @@ test_cgreg2_x220_unsolicited (void *f, gpointer d)
|
||||
test_creg_match ("Alcatel One-Touch X220D CGREG=2", FALSE, reply, data, &result);
|
||||
}
|
||||
|
||||
static void
|
||||
test_creg2_s8500_wave_unsolicited (void *f, gpointer d)
|
||||
{
|
||||
TestData *data = (TestData *) d;
|
||||
const char *reply = "\r\n+CREG: 2,1,000B,2816, B, C2816\r\n";
|
||||
const CregResult result = { 1, 0x000B, 0x2816, 0, 7, FALSE};
|
||||
|
||||
test_creg_match ("Samsung Wave S8500 CREG=2", FALSE, reply, data, &result);
|
||||
}
|
||||
|
||||
static void
|
||||
test_cscs_icon225_support_response (void *f, gpointer d)
|
||||
{
|
||||
@@ -1231,6 +1241,7 @@ int main (int argc, char **argv)
|
||||
g_test_suite_add (suite, TESTCASE (test_creg2_tm506_solicited, data));
|
||||
g_test_suite_add (suite, TESTCASE (test_creg2_xu870_unsolicited_unregistered, data));
|
||||
g_test_suite_add (suite, TESTCASE (test_creg2_md400_unsolicited, data));
|
||||
g_test_suite_add (suite, TESTCASE (test_creg2_s8500_wave_unsolicited, data));
|
||||
|
||||
g_test_suite_add (suite, TESTCASE (test_cgreg1_solicited, data));
|
||||
g_test_suite_add (suite, TESTCASE (test_cgreg1_unsolicited, data));
|
||||
|
Reference in New Issue
Block a user