diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-09-30 15:48:46 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-09-30 15:50:00 +0200 |
commit | 2c1a46a2ddd306f0f6758d5d5af67534adf74c28 (patch) | |
tree | 1e0c552b20d4846396f47c36dc5ae7d7b5c78f8a /tests/paging/paging_test.c | |
parent | 85485c3db4a88dd06051ed43758e2afa12952c07 (diff) |
paging_test: Fix AGCH/PCH split test for second half of 102 multiframe
* we have to use modulo 51, not 50
* the check for FACCH/SCH has to be applied to to the fn % 51 result
Change-Id: I540a7eeef3ea3ed7347f0f1b5a5a6fe7ce0ec8bb
Diffstat (limited to 'tests/paging/paging_test.c')
-rw-r--r-- | tests/paging/paging_test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/paging/paging_test.c b/tests/paging/paging_test.c index 1fc7d928..18708e24 100644 --- a/tests/paging/paging_test.c +++ b/tests/paging/paging_test.c @@ -136,7 +136,7 @@ static void test_is_ccch_for_agch(void) printf("Fn: AGCH: (bs_ag_blks_res=[0:7]\n"); for (fn = 0; fn < 102; fn++) { - + uint8_t fn51 = fn % 51; /* Note: the formula that computes the CCCH block number for a * given frame number is optimized to work on block boarders, * for frame numbers that do not fall at the beginning of the @@ -144,12 +144,12 @@ static void test_is_ccch_for_agch(void) * we only check with frame numbers that mark the beginning * of a new block. See also L1SAP_FN2CCCHBLOCK() in l1sap.h */ - if (fn % 10 != 2 && fn % 10 != 6) + if (fn51 % 10 != 2 && fn51 % 10 != 6) continue; printf("%03u: ", fn); - if (fn % 50 == 2) { + if (fn51 == 2) { printf(" . . . . . . . . (BCCH)\n"); continue; } |