Harald Welte | c8a0b93 | 2012-08-24 21:27:26 +0200 | [diff] [blame] | 1 | Test `CSD 9600/V.110/transparent' passed |
| 2 | Test `Speech, all codecs' passed |
Vadim Yanitskiy | 95fc8ea | 2022-07-03 05:41:02 +0700 | [diff] [blame] | 3 | Test `Speech, without octet 3a' failed |
Holger Hans Peter Freyther | cd252e3 | 2013-07-03 09:56:53 +0200 | [diff] [blame] | 4 | Simple TMSI encoding test....passed |
Max | d55d7d4 | 2018-02-15 11:27:18 +0100 | [diff] [blame] | 5 | Simple IMSI encoding test....passed: [10] 17 08 99 10 07 00 00 00 64 02 |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 6 | |
| 7 | Testing Mobile Identity conversions |
| 8 | - IMSI 123456789012345 |
| 9 | -> MI-TLV-hex='17081932547698103254' |
| 10 | -> MI-str="123456789012345" rc=16 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 11 | -> MI-name="IMSI-123456789012345" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 12 | - IMSI 12345678901234 |
| 13 | -> MI-TLV-hex='170811325476981032f4' |
| 14 | -> MI-str="12345678901234" rc=15 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 15 | -> MI-name="IMSI-12345678901234" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 16 | - IMSI 423423 |
| 17 | -> MI-TLV-hex='1704413224f3' |
| 18 | -> MI-str="423423" rc=7 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 19 | -> MI-name="IMSI-423423" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 20 | - unknown 0x9 423423 |
Harald Welte | a13fb75 | 2020-06-16 08:44:42 +0200 | [diff] [blame] | 21 | -> MI-TLV-hex='1704413224f3' |
| 22 | -> MI-str="423423" rc=7 |
| 23 | -> MI-name="IMSI-423423" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 24 | - IMSI 4234235 |
| 25 | -> MI-TLV-hex='170449322453' |
| 26 | -> MI-str="4234235" rc=8 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 27 | -> MI-name="IMSI-4234235" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 28 | - IMSI 4234235 |
| 29 | -> MI-TLV-hex='170449322453' |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 30 | -> MI-str="423" rc=4 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 31 | -> MI-name="IMSI-4234235" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 32 | - IMEI 123456789012345 |
| 33 | -> MI-TLV-hex='17081a32547698103254' |
| 34 | -> MI-str="123456789012345" rc=16 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 35 | -> MI-name="IMEI-123456789012345" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 36 | - IMEI 98765432109876 |
| 37 | -> MI-TLV-hex='170892785634129078f6' |
| 38 | -> MI-str="98765432109876" rc=15 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 39 | -> MI-name="IMEI-98765432109876" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 40 | - IMEI 987654321098765 |
| 41 | -> MI-TLV-hex='17089a78563412907856' |
| 42 | -> MI-str="987654321098765" rc=16 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 43 | -> MI-name="IMEI-987654321098765" |
Harald Welte | 1317771 | 2019-01-20 13:41:26 +0100 | [diff] [blame] | 44 | - IMEI-SV 9876543210987654 |
| 45 | -> MI-TLV-hex='17099378563412907856f4' |
| 46 | -> MI-str="9876543210987654" rc=17 |
| 47 | -> MI-name="IMEI-SV-9876543210987654" |
| 48 | - IMEI-SV 9876543210987654 |
| 49 | -> MI-TLV-hex='17099378563412907856f4' |
| 50 | -> MI-str="9876543210987654" rc=17 |
| 51 | -> MI-name="IMEI-SV-9876543210987654" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 52 | - TMSI 305419896 |
| 53 | -> MI-TLV-hex='1705f412345678' |
| 54 | -> MI-str="305419896" rc=9 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 55 | -> MI-name="TMSI-0x12345678" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 56 | - TMSI 12648430 |
| 57 | -> MI-TLV-hex='1705f400c0ffee' |
| 58 | -> MI-str="12648430" rc=8 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 59 | -> MI-name="TMSI-0x00C0FFEE" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 60 | - TMSI 0 |
| 61 | -> MI-TLV-hex='1705f400000000' |
| 62 | -> MI-str="0" rc=1 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 63 | -> MI-name="TMSI-0x00000000" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 64 | - TMSI 305419896 |
| 65 | -> MI-TLV-hex='1705f412345678' |
| 66 | -> MI-str="3054" rc=9 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 67 | -> MI-name="TMSI-0x12345678" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 68 | - NONE 123 |
Harald Welte | a13fb75 | 2020-06-16 08:44:42 +0200 | [diff] [blame] | 69 | -> MI-TLV-hex='17021832' |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 70 | -> MI-str="" rc=1 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 71 | -> MI-name="unknown" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 72 | - NONE 1234 |
Harald Welte | a13fb75 | 2020-06-16 08:44:42 +0200 | [diff] [blame] | 73 | -> MI-TLV-hex='17031032f4' |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 74 | -> MI-str="" rc=1 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 75 | -> MI-name="unknown" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 76 | - unknown 0x8 1234 |
Harald Welte | a13fb75 | 2020-06-16 08:44:42 +0200 | [diff] [blame] | 77 | -> MI-TLV-hex='17031032f4' |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 78 | -> MI-str="" rc=1 |
Neels Hofmeyr | 02fd83d | 2019-01-05 00:38:54 +0100 | [diff] [blame] | 79 | -> MI-name="unknown" |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 80 | |
| 81 | Decoding zero length Mobile Identities |
| 82 | - MI type: IMSI |
| 83 | - writing to zero-length string: |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 84 | rc=0 |
| 85 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 86 | - writing to 1-byte-length string: |
| 87 | rc=1 |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 88 | returned empty string |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 89 | - decode zero-length mi: |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 90 | rc=1 |
| 91 | returned empty string |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 92 | - MI type: TMSI |
| 93 | - writing to zero-length string: |
Neels Hofmeyr | ea2a0ab | 2018-12-05 23:30:08 +0100 | [diff] [blame] | 94 | rc=0 |
| 95 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 96 | - writing to 1-byte-length string: |
| 97 | rc=1 |
| 98 | returned empty string |
| 99 | - decode zero-length mi: |
| 100 | rc=1 |
| 101 | returned empty string |
| 102 | - MI type: NONE |
| 103 | - writing to zero-length string: |
Neels Hofmeyr | ea2a0ab | 2018-12-05 23:30:08 +0100 | [diff] [blame] | 104 | rc=0 |
| 105 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 106 | - writing to 1-byte-length string: |
| 107 | rc=1 |
| 108 | returned empty string |
| 109 | - decode zero-length mi: |
| 110 | rc=1 |
| 111 | returned empty string |
| 112 | - MI type: IMSI | GSM_MI_ODD |
| 113 | - writing to zero-length string: |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 114 | rc=0 |
| 115 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 116 | - writing to 1-byte-length string: |
| 117 | rc=1 |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 118 | returned empty string |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 119 | - decode zero-length mi: |
Neels Hofmeyr | 627e011 | 2018-12-05 21:32:40 +0100 | [diff] [blame] | 120 | rc=1 |
| 121 | returned empty string |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 122 | - MI type: TMSI | GSM_MI_ODD |
| 123 | - writing to zero-length string: |
Neels Hofmeyr | ea2a0ab | 2018-12-05 23:30:08 +0100 | [diff] [blame] | 124 | rc=0 |
| 125 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 126 | - writing to 1-byte-length string: |
| 127 | rc=1 |
| 128 | returned empty string |
| 129 | - decode zero-length mi: |
| 130 | rc=1 |
| 131 | returned empty string |
| 132 | - MI type: NONE | GSM_MI_ODD |
| 133 | - writing to zero-length string: |
Neels Hofmeyr | ea2a0ab | 2018-12-05 23:30:08 +0100 | [diff] [blame] | 134 | rc=0 |
| 135 | nothing written |
Neels Hofmeyr | 4968628 | 2018-12-05 21:32:21 +0100 | [diff] [blame] | 136 | - writing to 1-byte-length string: |
| 137 | rc=1 |
| 138 | returned empty string |
| 139 | - decode zero-length mi: |
| 140 | rc=1 |
| 141 | returned empty string |
| 142 | |
Neels Hofmeyr | 83025bf | 2020-05-26 02:45:23 +0200 | [diff] [blame] | 143 | test_struct_mobile_identity() |
Neels Hofmeyr | a7f97b9 | 2022-08-23 18:35:40 +0200 | [diff] [blame] | 144 | LU with IMSI 901700000004620: rc == 0, mi = IMSI-901700000004620 ok |
| 145 | LU with TMSI 0x0980ad8a: rc == 0, mi = TMSI-0x0980AD8A ok |
| 146 | LU with invalid MI type: rc != 0 ok |
| 147 | LU with truncated IMSI MI: rc != 0 ok |
| 148 | LU with too short IMSI MI (12345): rc != 0 ok |
| 149 | LU with just long enough IMSI MI 123456: rc == 0, mi = IMSI-123456 ok |
| 150 | LU with max length IMSI MI 123456789012345: rc == 0, mi = IMSI-123456789012345 ok |
| 151 | LU with just too long IMSI MI 1234567890123456: rc != 0 ok |
| 152 | LU with truncated TMSI MI: rc != 0 ok |
| 153 | LU with odd length TMSI: rc != 0 ok |
| 154 | LU with too long TMSI MI: rc != 0 ok |
| 155 | LU with too short TMSI: rc != 0 ok |
| 156 | CM Service Request with IMSI 123456: rc == 0, mi = IMSI-123456 ok |
| 157 | CM Service Request with TMSI 0x5a42e404: rc == 0, mi = TMSI-0x5A42E404 ok |
| 158 | CM Service Request with shorter CM2, with IMSI 123456: rc == 0, mi = IMSI-123456 ok |
| 159 | CM Service Request with longer CM2, with IMSI 123456: rc == 0, mi = IMSI-123456 ok |
| 160 | CM Service Request with shorter CM2, with TMSI 0x00000000: rc == 0, mi = TMSI-0x00000000 ok |
| 161 | CM Service Request with invalid MI type: rc != 0 ok |
| 162 | CM Service Request with truncated IMSI MI: rc != 0 ok |
| 163 | CM Service Request with truncated TMSI MI: rc != 0 ok |
| 164 | CM Service Request with odd length TMSI: rc != 0 ok |
| 165 | CM Service Request with too long TMSI MI: rc != 0 ok |
| 166 | CM Service Request with too short TMSI: rc != 0 ok |
| 167 | CM Service Reestablish Request with TMSI 0x5a42e404: rc == 0, mi = TMSI-0x5A42E404 ok |
| 168 | Paging Response with IMSI 1234567: rc == 0, mi = IMSI-1234567 ok |
| 169 | Paging Response with TMSI 0xb48883de: rc == 0, mi = TMSI-0xB48883DE ok |
| 170 | Paging Response with TMSI, with unused nibble not 0xf: rc != 0 ok |
| 171 | Paging Response with too short IMEI (1234567): rc != 0 ok |
| 172 | Paging Response with IMEI 123456789012345: rc == 0, mi = IMEI-123456789012345 ok |
| 173 | Paging Response with IMEI 12345678901234 (no Luhn checksum): rc == 0, mi = IMEI-12345678901234 ok |
| 174 | Paging Response with IMEISV 1234567890123456: rc == 0, mi = IMEI-SV-1234567890123456 ok |
| 175 | Paging Response with too short IMEISV 123456789012345: rc != 0 ok |
| 176 | Paging Response with too long IMEISV 12345678901234567: rc != 0 ok |
| 177 | Paging Response with IMSI 123456789012345 and flipped ODD bit: rc != 0 ok |
| 178 | IMSI-Detach with IMSI 901700000004620: rc == 0, mi = IMSI-901700000004620 ok |
| 179 | IMSI-Detach with TMSI 0x0980ad8a: rc == 0, mi = TMSI-0x0980AD8A ok |
| 180 | IMSI-Detach with invalid MI type: rc != 0 ok |
| 181 | IMSI-Detach with truncated IMSI MI: rc != 0 ok |
| 182 | IMSI-Detach with too short IMSI MI (12345): rc != 0 ok |
| 183 | IMSI-Detach with just long enough IMSI MI 123456: rc == 0, mi = IMSI-123456 ok |
| 184 | IMSI-Detach with max length IMSI MI 123456789012345: rc == 0, mi = IMSI-123456789012345 ok |
| 185 | IMSI-Detach with just too long IMSI MI 1234567890123456: rc != 0 ok |
| 186 | IMSI-Detach with truncated TMSI MI: rc != 0 ok |
| 187 | IMSI-Detach with odd length TMSI: rc != 0 ok |
| 188 | IMSI-Detach with too long TMSI MI: rc != 0 ok |
| 189 | IMSI-Detach with too short TMSI: rc != 0 ok |
| 190 | Identity Response with IMSI 901700000004620: rc == 0, mi = IMSI-901700000004620 ok |
| 191 | Identity Response with IMEI 123456789012345: rc == 0, mi = IMEI-123456789012345 ok |
| 192 | Identity Response with IMEISV 9876543210987654: rc == 0, mi = IMEI-SV-9876543210987654 ok |
Neels Hofmeyr | 83025bf | 2020-05-26 02:45:23 +0200 | [diff] [blame] | 193 | |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 194 | BSD number encoding / decoding test |
| 195 | - Running test: regular 9-digit MSISDN |
| 196 | - Encoding ASCII (buffer limit=0) '123456789'... |
| 197 | - Expected: (rc=6) '0521436587f9' |
| 198 | - Actual: (rc=6) '0521436587f9' |
| 199 | - Decoding HEX (buffer limit=0) '0521436587f9'... |
| 200 | - Expected: (rc=0) '123456789' |
| 201 | - Actual: (rc=0) '123456789' |
| 202 | - Running test: regular 6-digit MSISDN with optional header (LHV) |
| 203 | - Encoding ASCII (buffer limit=0) '123456'... |
Vadim Yanitskiy | 1dc8264 | 2019-05-27 00:53:54 +0700 | [diff] [blame] | 204 | - Expected: (rc=8) '07ffffffff214365' |
| 205 | - Actual: (rc=8) '07ffffffff214365' |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 206 | - Decoding HEX (buffer limit=0) '07deadbeef214365'... |
| 207 | - Expected: (rc=0) '123456' |
| 208 | - Actual: (rc=0) '123456' |
| 209 | - Running test: long 15-digit (maximum) MSISDN |
| 210 | - Encoding ASCII (buffer limit=0) '123456789012345'... |
| 211 | - Expected: (rc=9) '0821436587092143f5' |
| 212 | - Actual: (rc=9) '0821436587092143f5' |
| 213 | - Decoding HEX (buffer limit=0) '0821436587092143f5'... |
| 214 | - Expected: (rc=0) '123456789012345' |
| 215 | - Actual: (rc=0) '123456789012345' |
| 216 | - Running test: long 15-digit (maximum) MSISDN, limited buffer |
| 217 | - Encoding ASCII (buffer limit=9) '123456789012345'... |
| 218 | - Expected: (rc=9) '0821436587092143f5' |
| 219 | - Actual: (rc=9) '0821436587092143f5' |
| 220 | - Decoding HEX (buffer limit=16) '0821436587092143f5'... |
| 221 | - Expected: (rc=0) '123456789012345' |
Vadim Yanitskiy | 2cd1dda | 2019-05-26 00:14:16 +0700 | [diff] [blame] | 222 | - Actual: (rc=0) '123456789012345' |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 223 | - Running test: to be truncated 20-digit MSISDN |
| 224 | - Encoding ASCII (buffer limit=9) '12345678901234567890'... |
| 225 | - Expected: (rc=-5) '' |
| 226 | - Actual: (rc=-5) '' |
| 227 | - Decoding HEX (buffer limit=16) '0a21436587092143658709'... |
Vadim Yanitskiy | 7194087 | 2019-05-26 00:49:57 +0700 | [diff] [blame] | 228 | - Expected: (rc=-28) '123456789012345' |
| 229 | - Actual: (rc=-28) '123456789012345' |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 230 | - Running test: LV incorrect length |
| 231 | - Decoding HEX (buffer limit=0) '05214365'... |
Vadim Yanitskiy | e4799f5 | 2019-05-26 00:55:20 +0700 | [diff] [blame] | 232 | - Expected: (rc=-22) '(none)' |
| 233 | - Actual: (rc=-22) '(none)' |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 234 | - Running test: empty input buffer |
| 235 | - Encoding ASCII (buffer limit=0) ''... |
| 236 | - Expected: (rc=1) '00' |
| 237 | - Actual: (rc=1) '00' |
| 238 | - Decoding HEX (buffer limit=0) ''... |
| 239 | - Expected: (rc=-5) '(none)' |
| 240 | - Actual: (rc=-5) '(none)' |
Oliver Smith | 186f878 | 2019-06-06 16:11:32 +0200 | [diff] [blame] | 241 | - Running test: decoding buffer is one byte too small (OS#4049) |
| 242 | - Decoding HEX (buffer limit=4) '022143'... |
| 243 | - Expected: (rc=-28) '123' |
| 244 | - Actual: (rc=-28) '123' |
Vadim Yanitskiy | aa0683d | 2019-05-25 23:14:00 +0700 | [diff] [blame] | 245 | |
Max | f1ad60e | 2018-01-05 14:19:33 +0100 | [diff] [blame] | 246 | Constructed RA: |
Neels Hofmeyr | c38b32d | 2018-02-20 15:13:18 +0100 | [diff] [blame] | 247 | 077-121-666-5 |
| 248 | MCC+MNC in BCD: 70 17 21 |
Neels Hofmeyr | dbb2513 | 2018-02-20 15:12:23 +0100 | [diff] [blame] | 249 | 077-121-666-5 (3-digit MNC) |
Max | 99377c2 | 2017-08-30 19:17:50 +0200 | [diff] [blame] | 250 | RA test...passed |
Max | f1ad60e | 2018-01-05 14:19:33 +0100 | [diff] [blame] | 251 | Constructed RA: |
Neels Hofmeyr | c38b32d | 2018-02-20 15:13:18 +0100 | [diff] [blame] | 252 | 084-98-11-89 |
| 253 | MCC+MNC in BCD: 80 f4 89 |
| 254 | 084-98-11-89 |
Max | 99377c2 | 2017-08-30 19:17:50 +0200 | [diff] [blame] | 255 | RA test...passed |
Neels Hofmeyr | b9fd7eb | 2018-02-20 15:14:03 +0100 | [diff] [blame] | 256 | Constructed RA: |
| 257 | 000-00-0-0 |
| 258 | MCC+MNC in BCD: 00 f0 00 |
| 259 | 000-00-0-0 |
| 260 | RA test...passed |
| 261 | Constructed RA: |
Neels Hofmeyr | 6c7b3e2 | 2018-02-20 22:20:42 +0100 | [diff] [blame] | 262 | 000-000-0-0 (3-digit MNC) |
| 263 | MCC+MNC in BCD: 00 00 00 |
| 264 | 000-000-0-0 (3-digit MNC) |
| 265 | RA test...passed |
| 266 | Constructed RA: |
Neels Hofmeyr | b9fd7eb | 2018-02-20 15:14:03 +0100 | [diff] [blame] | 267 | 999-999-65535-255 |
| 268 | MCC+MNC in BCD: 99 99 99 |
Neels Hofmeyr | dbb2513 | 2018-02-20 15:12:23 +0100 | [diff] [blame] | 269 | 999-999-65535-255 (3-digit MNC) |
Neels Hofmeyr | b9fd7eb | 2018-02-20 15:14:03 +0100 | [diff] [blame] | 270 | RA test...passed |
Neels Hofmeyr | 6c7b3e2 | 2018-02-20 22:20:42 +0100 | [diff] [blame] | 271 | Constructed RA: |
| 272 | 001-02-23-42 |
| 273 | MCC+MNC in BCD: 00 f1 20 |
| 274 | 001-02-23-42 |
| 275 | RA test...passed |
| 276 | Constructed RA: |
| 277 | 001-002-23-42 (3-digit MNC) |
| 278 | MCC+MNC in BCD: 00 21 00 |
| 279 | 001-002-23-42 (3-digit MNC) |
| 280 | RA test...passed |
| 281 | Constructed RA: |
| 282 | 012-34-56-78 |
| 283 | MCC+MNC in BCD: 10 f2 43 |
| 284 | 012-34-56-78 |
| 285 | RA test...passed |
| 286 | Constructed RA: |
| 287 | 012-034-23-42 (3-digit MNC) |
| 288 | MCC+MNC in BCD: 10 42 30 |
| 289 | 012-034-23-42 (3-digit MNC) |
| 290 | RA test...passed |
| 291 | Constructed RA: |
| 292 | 123-456-23-42 |
| 293 | MCC+MNC in BCD: 21 63 54 |
| 294 | 123-456-23-42 (3-digit MNC) |
| 295 | RA test...passed |
| 296 | Constructed RA: |
| 297 | 123-456-23-42 (3-digit MNC) |
| 298 | MCC+MNC in BCD: 21 63 54 |
| 299 | 123-456-23-42 (3-digit MNC) |
| 300 | RA test...passed |
Neels Hofmeyr | d5a577b | 2018-02-20 21:48:07 +0100 | [diff] [blame] | 301 | - gsm48_generate_lai() from 077-121-666-0 |
| 302 | Encoded 70 17 21 02 9a |
| 303 | gsm48_decode_lai() gives 077-121-666-0 |
| 304 | passed |
Neels Hofmeyr | 4566f4e | 2018-02-20 22:19:56 +0100 | [diff] [blame] | 305 | - gsm48_generate_lai2() from 077-121-666 |
| 306 | Encoded 70 17 21 02 9a |
| 307 | gsm48_decode_lai2() gives 077-121-666 (3-digit MNC) |
| 308 | passed |
Neels Hofmeyr | d5a577b | 2018-02-20 21:48:07 +0100 | [diff] [blame] | 309 | - gsm48_generate_lai() from 084-98-11-0 |
| 310 | Encoded 80 f4 89 00 0b |
| 311 | gsm48_decode_lai() gives 084-98-11-0 |
| 312 | passed |
Neels Hofmeyr | 4566f4e | 2018-02-20 22:19:56 +0100 | [diff] [blame] | 313 | - gsm48_generate_lai2() from 084-98-11 |
| 314 | Encoded 80 f4 89 00 0b |
| 315 | gsm48_decode_lai2() gives 084-98-11 |
| 316 | passed |
Neels Hofmeyr | d5a577b | 2018-02-20 21:48:07 +0100 | [diff] [blame] | 317 | - gsm48_generate_lai() from 000-00-0-0 |
| 318 | Encoded 00 f0 00 00 00 |
| 319 | gsm48_decode_lai() gives 000-00-0-0 |
| 320 | passed |
Neels Hofmeyr | 4566f4e | 2018-02-20 22:19:56 +0100 | [diff] [blame] | 321 | - gsm48_generate_lai2() from 000-00-0 |
| 322 | Encoded 00 f0 00 00 00 |
| 323 | gsm48_decode_lai2() gives 000-00-0 |
| 324 | passed |
Neels Hofmeyr | 6c7b3e2 | 2018-02-20 22:20:42 +0100 | [diff] [blame] | 325 | - gsm48_generate_lai() from 000-000-0-0 (3-digit MNC) |
| 326 | Encoded 00 f0 00 00 00 |
| 327 | gsm48_decode_lai() gives 000-00-0-0 |
| 328 | passed |
| 329 | - gsm48_generate_lai2() from 000-000-0 (3-digit MNC) |
| 330 | Encoded 00 00 00 00 00 |
| 331 | gsm48_decode_lai2() gives 000-000-0 (3-digit MNC) |
| 332 | passed |
Neels Hofmeyr | d5a577b | 2018-02-20 21:48:07 +0100 | [diff] [blame] | 333 | - gsm48_generate_lai() from 999-999-65535-0 |
| 334 | Encoded 99 99 99 ff ff |
| 335 | gsm48_decode_lai() gives 999-999-65535-0 |
| 336 | passed |
Neels Hofmeyr | 4566f4e | 2018-02-20 22:19:56 +0100 | [diff] [blame] | 337 | - gsm48_generate_lai2() from 999-999-65535 |
| 338 | Encoded 99 99 99 ff ff |
| 339 | gsm48_decode_lai2() gives 999-999-65535 (3-digit MNC) |
| 340 | passed |
Neels Hofmeyr | 6c7b3e2 | 2018-02-20 22:20:42 +0100 | [diff] [blame] | 341 | - gsm48_generate_lai() from 001-02-23-0 |
| 342 | Encoded 00 f1 20 00 17 |
| 343 | gsm48_decode_lai() gives 001-02-23-0 |
| 344 | passed |
| 345 | - gsm48_generate_lai2() from 001-02-23 |
| 346 | Encoded 00 f1 20 00 17 |
| 347 | gsm48_decode_lai2() gives 001-02-23 |
| 348 | passed |
| 349 | - gsm48_generate_lai() from 001-002-23-0 (3-digit MNC) |
| 350 | Encoded 00 f1 20 00 17 |
| 351 | gsm48_decode_lai() gives 001-02-23-0 |
| 352 | passed |
| 353 | - gsm48_generate_lai2() from 001-002-23 (3-digit MNC) |
| 354 | Encoded 00 21 00 00 17 |
| 355 | gsm48_decode_lai2() gives 001-002-23 (3-digit MNC) |
| 356 | passed |
| 357 | - gsm48_generate_lai() from 012-34-56-0 |
| 358 | Encoded 10 f2 43 00 38 |
| 359 | gsm48_decode_lai() gives 012-34-56-0 |
| 360 | passed |
| 361 | - gsm48_generate_lai2() from 012-34-56 |
| 362 | Encoded 10 f2 43 00 38 |
| 363 | gsm48_decode_lai2() gives 012-34-56 |
| 364 | passed |
| 365 | - gsm48_generate_lai() from 012-034-23-0 (3-digit MNC) |
| 366 | Encoded 10 f2 43 00 17 |
| 367 | gsm48_decode_lai() gives 012-34-23-0 |
| 368 | passed |
| 369 | - gsm48_generate_lai2() from 012-034-23 (3-digit MNC) |
| 370 | Encoded 10 42 30 00 17 |
| 371 | gsm48_decode_lai2() gives 012-034-23 (3-digit MNC) |
| 372 | passed |
| 373 | - gsm48_generate_lai() from 123-456-23-0 |
| 374 | Encoded 21 63 54 00 17 |
| 375 | gsm48_decode_lai() gives 123-456-23-0 |
| 376 | passed |
| 377 | - gsm48_generate_lai2() from 123-456-23 |
| 378 | Encoded 21 63 54 00 17 |
| 379 | gsm48_decode_lai2() gives 123-456-23 (3-digit MNC) |
| 380 | passed |
| 381 | - gsm48_generate_lai() from 123-456-23-0 (3-digit MNC) |
| 382 | Encoded 21 63 54 00 17 |
| 383 | gsm48_decode_lai() gives 123-456-23-0 |
| 384 | passed |
| 385 | - gsm48_generate_lai2() from 123-456-23 (3-digit MNC) |
| 386 | Encoded 21 63 54 00 17 |
| 387 | gsm48_decode_lai2() gives 123-456-23 (3-digit MNC) |
| 388 | passed |
Neels Hofmeyr | 8d42394 | 2023-06-08 00:35:41 +0200 | [diff] [blame] | 389 | ==test_osmo_routing_area_id()== |
| 390 | RA ID: 077-121-666-5osmo_routing_area_id_encode_buf(): 70 17 21 02 9a 05 rc=6 |
| 391 | osmo_routing_area_id_decode(): 077-121-666-5 (3-digit MNC) rc=6 |
| 392 | ok |
| 393 | RA ID: 084-98-11-89osmo_routing_area_id_encode_buf(): 80 f4 89 00 0b 59 rc=6 |
| 394 | osmo_routing_area_id_decode(): 084-98-11-89 rc=6 |
| 395 | ok |
| 396 | RA ID: 000-00-0-0osmo_routing_area_id_encode_buf(): 00 f0 00 00 00 00 rc=6 |
| 397 | osmo_routing_area_id_decode(): 000-00-0-0 rc=6 |
| 398 | ok |
| 399 | RA ID: 000-000-0-0 (3-digit MNC)osmo_routing_area_id_encode_buf(): 00 00 00 00 00 00 rc=6 |
| 400 | osmo_routing_area_id_decode(): 000-000-0-0 (3-digit MNC) rc=6 |
| 401 | ok |
| 402 | RA ID: 999-999-65535-255osmo_routing_area_id_encode_buf(): 99 99 99 ff ff ff rc=6 |
| 403 | osmo_routing_area_id_decode(): 999-999-65535-255 (3-digit MNC) rc=6 |
| 404 | ok |
| 405 | RA ID: 001-02-23-42osmo_routing_area_id_encode_buf(): 00 f1 20 00 17 2a rc=6 |
| 406 | osmo_routing_area_id_decode(): 001-02-23-42 rc=6 |
| 407 | ok |
| 408 | RA ID: 001-002-23-42 (3-digit MNC)osmo_routing_area_id_encode_buf(): 00 21 00 00 17 2a rc=6 |
| 409 | osmo_routing_area_id_decode(): 001-002-23-42 (3-digit MNC) rc=6 |
| 410 | ok |
| 411 | RA ID: 012-34-56-78osmo_routing_area_id_encode_buf(): 10 f2 43 00 38 4e rc=6 |
| 412 | osmo_routing_area_id_decode(): 012-34-56-78 rc=6 |
| 413 | ok |
| 414 | RA ID: 012-034-23-42 (3-digit MNC)osmo_routing_area_id_encode_buf(): 10 42 30 00 17 2a rc=6 |
| 415 | osmo_routing_area_id_decode(): 012-034-23-42 (3-digit MNC) rc=6 |
| 416 | ok |
| 417 | RA ID: 123-456-23-42osmo_routing_area_id_encode_buf(): 21 63 54 00 17 2a rc=6 |
| 418 | osmo_routing_area_id_decode(): 123-456-23-42 (3-digit MNC) rc=6 |
| 419 | ok |
| 420 | RA ID: 123-456-23-42 (3-digit MNC)osmo_routing_area_id_encode_buf(): 21 63 54 00 17 2a rc=6 |
| 421 | osmo_routing_area_id_decode(): 123-456-23-42 (3-digit MNC) rc=6 |
| 422 | ok |
Philipp Maier | e36be56 | 2020-11-12 11:33:54 +0100 | [diff] [blame] | 423 | =====cm3_1===== |
| 424 | mult_band_supp=06 |
| 425 | a5_bits=00 |
| 426 | assoc_radio_cap_1=04 |
| 427 | assoc_radio_cap_2=01 |
| 428 | |
| 429 | r_support.present=0 |
| 430 | r_support.r_gsm_assoc_radio_cap=00 |
| 431 | |
| 432 | hscsd_mult_slot_cap.present=0 |
| 433 | hscsd_mult_slot_cap.mslot_class=00 |
| 434 | |
| 435 | ucs2_treatment=0 |
| 436 | extended_meas_cap=0 |
| 437 | |
| 438 | ms_meas_cap.present=0 |
| 439 | ms_meas_cap.sms_value=00 |
| 440 | ms_meas_cap.sm_value=00 |
| 441 | |
| 442 | ms_pos_method_cap.present=1 |
| 443 | ms_pos_method_cap.method=01 |
| 444 | |
| 445 | ecsd_multislot_cap.present=0 |
| 446 | ecsd_multislot_cap.mslot_class=00 |
| 447 | |
| 448 | psk8_struct.present=1 |
| 449 | psk8_struct.mod_cap=1 |
| 450 | psk8_struct.rf_pwr_cap_1.present=1 |
| 451 | psk8_struct.rf_pwr_cap_1.value=02 |
| 452 | psk8_struct.rf_pwr_cap_2.present=1 |
| 453 | psk8_struct.rf_pwr_cap_2.value=02 |
| 454 | |
| 455 | gsm_400_bands_supp.present=0 |
| 456 | gsm_400_bands_supp.value=00 |
| 457 | gsm_400_bands_supp.assoc_radio_cap=00 |
| 458 | |
| 459 | gsm_850_assoc_radio_cap.present=1 |
| 460 | gsm_850_assoc_radio_cap.value=04 |
| 461 | |
| 462 | gsm_1900_assoc_radio_cap.present=0 |
| 463 | gsm_1900_assoc_radio_cap.value=00 |
| 464 | |
| 465 | umts_fdd_rat_cap=0 |
| 466 | umts_tdd_rat_cap=0 |
| 467 | cdma200_rat_cap=0 |
| 468 | |
| 469 | dtm_gprs_multislot_cap.present=0 |
| 470 | dtm_gprs_multislot_cap.mslot_class=00 |
| 471 | dtm_gprs_multislot_cap.single_slot_dtm=0 |
| 472 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=0 |
| 473 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=00 |
| 474 | |
| 475 | single_band_supp.present=0 |
| 476 | single_band_supp.value=0 |
| 477 | |
| 478 | gsm_750_assoc_radio_cap.present=0 |
| 479 | gsm_750_assoc_radio_cap.value=00 |
| 480 | |
| 481 | umts_1_28_mcps_tdd_rat_cap=0 |
| 482 | geran_feature_package=1 |
| 483 | |
| 484 | extended_dtm_gprs_multislot_cap.present=0 |
| 485 | extended_dtm_gprs_multislot_cap.mslot_class=00 |
| 486 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=0 |
| 487 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=00 |
| 488 | |
| 489 | high_multislot_cap.present=0 |
| 490 | high_multislot_cap.value=00 |
| 491 | |
| 492 | geran_feature_package_2=0 |
| 493 | gmsk_multislot_power_prof=00 |
| 494 | psk8_multislot_power_prof=00 |
| 495 | |
| 496 | t_gsm_400_bands_supp.present=0 |
| 497 | t_gsm_400_bands_supp.value=00 |
| 498 | t_gsm_400_bands_supp.assoc_radio_cap=00 |
| 499 | |
| 500 | dl_advanced_rx_perf=01 |
| 501 | dtm_enhancements_cap=1 |
| 502 | |
| 503 | dtm_gprs_high_multislot_cap.present=0 |
| 504 | dtm_gprs_high_multislot_cap.mslot_class=00 |
| 505 | dtm_gprs_high_multislot_cap.offset_required=0 |
| 506 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.present=0 |
| 507 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.mslot_class=00 |
| 508 | |
| 509 | repeated_acch_capability=1 |
| 510 | |
| 511 | gsm_710_assoc_radio_cap.present=0 |
| 512 | gsm_710_assoc_radio_cap.value=00 |
| 513 | |
| 514 | t_gsm_810_assoc_radio_cap.present=0 |
| 515 | t_gsm_810_assoc_radio_cap.value=00 |
| 516 | |
| 517 | ciphering_mode_setting_cap=0 |
| 518 | add_pos_cap=0 |
| 519 | e_utra_fdd_supp=0 |
| 520 | e_utra_tdd_supp=0 |
| 521 | e_utra_meas_rep_supp=0 |
| 522 | prio_resel_supp=1 |
| 523 | utra_csg_cells_rep=0 |
| 524 | vamos_level=01 |
| 525 | tighter_capability=01 |
| 526 | sel_ciph_dl_sacch=0 |
| 527 | cs_ps_srvcc_geran_utra=00 |
| 528 | cs_ps_srvcc_geran_eutra=00 |
| 529 | geran_net_sharing=0 |
| 530 | e_utra_wb_rsrq_meas_supp=0 |
| 531 | er_band_support=0 |
| 532 | utra_mult_band_ind_supp=0 |
| 533 | e_utra_mult_band_ind_supp=0 |
| 534 | extended_tsc_set_cap_supp=0 |
| 535 | extended_earfcn_val_range=0 |
| 536 | |
| 537 | =====cm3_2===== |
| 538 | mult_band_supp=05 |
| 539 | a5_bits=05 |
| 540 | assoc_radio_cap_1=05 |
| 541 | assoc_radio_cap_2=05 |
| 542 | |
| 543 | r_support.present=0 |
| 544 | r_support.r_gsm_assoc_radio_cap=00 |
| 545 | |
| 546 | hscsd_mult_slot_cap.present=1 |
| 547 | hscsd_mult_slot_cap.mslot_class=0a |
| 548 | |
| 549 | ucs2_treatment=1 |
| 550 | extended_meas_cap=0 |
| 551 | |
| 552 | ms_meas_cap.present=1 |
| 553 | ms_meas_cap.sms_value=05 |
| 554 | ms_meas_cap.sm_value=05 |
| 555 | |
| 556 | ms_pos_method_cap.present=0 |
| 557 | ms_pos_method_cap.method=00 |
| 558 | |
| 559 | ecsd_multislot_cap.present=1 |
| 560 | ecsd_multislot_cap.mslot_class=0a |
| 561 | |
| 562 | psk8_struct.present=1 |
| 563 | psk8_struct.mod_cap=0 |
| 564 | psk8_struct.rf_pwr_cap_1.present=1 |
| 565 | psk8_struct.rf_pwr_cap_1.value=01 |
| 566 | psk8_struct.rf_pwr_cap_2.present=0 |
| 567 | psk8_struct.rf_pwr_cap_2.value=00 |
| 568 | |
| 569 | gsm_400_bands_supp.present=1 |
| 570 | gsm_400_bands_supp.value=01 |
| 571 | gsm_400_bands_supp.assoc_radio_cap=05 |
| 572 | |
| 573 | gsm_850_assoc_radio_cap.present=0 |
| 574 | gsm_850_assoc_radio_cap.value=00 |
| 575 | |
| 576 | gsm_1900_assoc_radio_cap.present=1 |
| 577 | gsm_1900_assoc_radio_cap.value=05 |
| 578 | |
| 579 | umts_fdd_rat_cap=0 |
| 580 | umts_tdd_rat_cap=1 |
| 581 | cdma200_rat_cap=0 |
| 582 | |
| 583 | dtm_gprs_multislot_cap.present=1 |
| 584 | dtm_gprs_multislot_cap.mslot_class=01 |
| 585 | dtm_gprs_multislot_cap.single_slot_dtm=0 |
| 586 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=1 |
| 587 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=01 |
| 588 | |
| 589 | single_band_supp.present=0 |
| 590 | single_band_supp.value=0 |
| 591 | |
| 592 | gsm_750_assoc_radio_cap.present=1 |
| 593 | gsm_750_assoc_radio_cap.value=05 |
| 594 | |
| 595 | umts_1_28_mcps_tdd_rat_cap=0 |
| 596 | geran_feature_package=1 |
| 597 | |
| 598 | extended_dtm_gprs_multislot_cap.present=0 |
| 599 | extended_dtm_gprs_multislot_cap.mslot_class=00 |
| 600 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=0 |
| 601 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=00 |
| 602 | |
| 603 | high_multislot_cap.present=1 |
| 604 | high_multislot_cap.value=01 |
| 605 | |
| 606 | geran_feature_package_2=1 |
| 607 | gmsk_multislot_power_prof=01 |
| 608 | psk8_multislot_power_prof=01 |
| 609 | |
| 610 | t_gsm_400_bands_supp.present=0 |
| 611 | t_gsm_400_bands_supp.value=00 |
| 612 | t_gsm_400_bands_supp.assoc_radio_cap=00 |
| 613 | |
| 614 | dl_advanced_rx_perf=01 |
| 615 | dtm_enhancements_cap=0 |
| 616 | |
| 617 | dtm_gprs_high_multislot_cap.present=1 |
| 618 | dtm_gprs_high_multislot_cap.mslot_class=02 |
| 619 | dtm_gprs_high_multislot_cap.offset_required=1 |
| 620 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.present=0 |
| 621 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.mslot_class=00 |
| 622 | |
| 623 | repeated_acch_capability=1 |
| 624 | |
| 625 | gsm_710_assoc_radio_cap.present=0 |
| 626 | gsm_710_assoc_radio_cap.value=00 |
| 627 | |
| 628 | t_gsm_810_assoc_radio_cap.present=1 |
| 629 | t_gsm_810_assoc_radio_cap.value=05 |
| 630 | |
| 631 | ciphering_mode_setting_cap=0 |
| 632 | add_pos_cap=1 |
| 633 | e_utra_fdd_supp=0 |
| 634 | e_utra_tdd_supp=0 |
| 635 | e_utra_meas_rep_supp=0 |
| 636 | prio_resel_supp=0 |
| 637 | utra_csg_cells_rep=0 |
| 638 | vamos_level=00 |
| 639 | tighter_capability=00 |
| 640 | sel_ciph_dl_sacch=0 |
| 641 | cs_ps_srvcc_geran_utra=00 |
| 642 | cs_ps_srvcc_geran_eutra=00 |
| 643 | geran_net_sharing=0 |
| 644 | e_utra_wb_rsrq_meas_supp=0 |
| 645 | er_band_support=0 |
| 646 | utra_mult_band_ind_supp=0 |
| 647 | e_utra_mult_band_ind_supp=0 |
| 648 | extended_tsc_set_cap_supp=0 |
| 649 | extended_earfcn_val_range=0 |
| 650 | |
| 651 | =====cm3_3===== |
| 652 | mult_band_supp=02 |
| 653 | a5_bits=0a |
| 654 | assoc_radio_cap_1=0a |
| 655 | assoc_radio_cap_2=00 |
| 656 | |
| 657 | r_support.present=1 |
| 658 | r_support.r_gsm_assoc_radio_cap=02 |
| 659 | |
| 660 | hscsd_mult_slot_cap.present=1 |
| 661 | hscsd_mult_slot_cap.mslot_class=0a |
| 662 | |
| 663 | ucs2_treatment=1 |
| 664 | extended_meas_cap=0 |
| 665 | |
| 666 | ms_meas_cap.present=1 |
| 667 | ms_meas_cap.sms_value=05 |
| 668 | ms_meas_cap.sm_value=05 |
| 669 | |
| 670 | ms_pos_method_cap.present=0 |
| 671 | ms_pos_method_cap.method=00 |
| 672 | |
| 673 | ecsd_multislot_cap.present=1 |
| 674 | ecsd_multislot_cap.mslot_class=0a |
| 675 | |
| 676 | psk8_struct.present=1 |
| 677 | psk8_struct.mod_cap=0 |
| 678 | psk8_struct.rf_pwr_cap_1.present=1 |
| 679 | psk8_struct.rf_pwr_cap_1.value=01 |
| 680 | psk8_struct.rf_pwr_cap_2.present=0 |
| 681 | psk8_struct.rf_pwr_cap_2.value=00 |
| 682 | |
| 683 | gsm_400_bands_supp.present=1 |
| 684 | gsm_400_bands_supp.value=01 |
| 685 | gsm_400_bands_supp.assoc_radio_cap=05 |
| 686 | |
| 687 | gsm_850_assoc_radio_cap.present=0 |
| 688 | gsm_850_assoc_radio_cap.value=00 |
| 689 | |
| 690 | gsm_1900_assoc_radio_cap.present=1 |
| 691 | gsm_1900_assoc_radio_cap.value=05 |
| 692 | |
| 693 | umts_fdd_rat_cap=0 |
| 694 | umts_tdd_rat_cap=1 |
| 695 | cdma200_rat_cap=0 |
| 696 | |
| 697 | dtm_gprs_multislot_cap.present=1 |
| 698 | dtm_gprs_multislot_cap.mslot_class=01 |
| 699 | dtm_gprs_multislot_cap.single_slot_dtm=0 |
| 700 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=1 |
| 701 | dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=01 |
| 702 | |
| 703 | single_band_supp.present=0 |
| 704 | single_band_supp.value=0 |
| 705 | |
| 706 | gsm_750_assoc_radio_cap.present=1 |
| 707 | gsm_750_assoc_radio_cap.value=05 |
| 708 | |
| 709 | umts_1_28_mcps_tdd_rat_cap=0 |
| 710 | geran_feature_package=1 |
| 711 | |
| 712 | extended_dtm_gprs_multislot_cap.present=0 |
| 713 | extended_dtm_gprs_multislot_cap.mslot_class=00 |
| 714 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.present=0 |
| 715 | extended_dtm_gprs_multislot_cap.dtm_egprs_multislot_cap.mslot_class=00 |
| 716 | |
| 717 | high_multislot_cap.present=1 |
| 718 | high_multislot_cap.value=01 |
| 719 | |
| 720 | geran_feature_package_2=1 |
| 721 | gmsk_multislot_power_prof=01 |
| 722 | psk8_multislot_power_prof=01 |
| 723 | |
| 724 | t_gsm_400_bands_supp.present=0 |
| 725 | t_gsm_400_bands_supp.value=00 |
| 726 | t_gsm_400_bands_supp.assoc_radio_cap=00 |
| 727 | |
| 728 | dl_advanced_rx_perf=01 |
| 729 | dtm_enhancements_cap=0 |
| 730 | |
| 731 | dtm_gprs_high_multislot_cap.present=1 |
| 732 | dtm_gprs_high_multislot_cap.mslot_class=02 |
| 733 | dtm_gprs_high_multislot_cap.offset_required=1 |
| 734 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.present=0 |
| 735 | dtm_gprs_high_multislot_cap.dtm_egprs_high_multislot_cap.mslot_class=00 |
| 736 | |
| 737 | repeated_acch_capability=1 |
| 738 | |
| 739 | gsm_710_assoc_radio_cap.present=0 |
| 740 | gsm_710_assoc_radio_cap.value=00 |
| 741 | |
| 742 | t_gsm_810_assoc_radio_cap.present=1 |
| 743 | t_gsm_810_assoc_radio_cap.value=04 |
| 744 | |
| 745 | ciphering_mode_setting_cap=0 |
| 746 | add_pos_cap=0 |
| 747 | e_utra_fdd_supp=0 |
| 748 | e_utra_tdd_supp=0 |
| 749 | e_utra_meas_rep_supp=0 |
| 750 | prio_resel_supp=0 |
| 751 | utra_csg_cells_rep=0 |
| 752 | vamos_level=00 |
| 753 | tighter_capability=00 |
| 754 | sel_ciph_dl_sacch=0 |
| 755 | cs_ps_srvcc_geran_utra=00 |
| 756 | cs_ps_srvcc_geran_eutra=00 |
| 757 | geran_net_sharing=0 |
| 758 | e_utra_wb_rsrq_meas_supp=0 |
| 759 | er_band_support=0 |
| 760 | utra_mult_band_ind_supp=0 |
| 761 | e_utra_mult_band_ind_supp=0 |
| 762 | extended_tsc_set_cap_supp=0 |
| 763 | extended_earfcn_val_range=0 |
| 764 | |
Stefan Sperling | fdf8b7b | 2018-07-27 12:19:15 +0200 | [diff] [blame] | 765 | Element is: 2 => freqs[i] = 121 |
| 766 | Element is: 2 => freqs[i] = 1 |
| 767 | Element is: 0 => freqs[i] = 68 |
| 768 | w[0]=122 |
| 769 | w[1]=2 |
| 770 | w[2]=69 |
| 771 | w[3]=204 |
| 772 | w[4]=75 |
| 773 | w[5]=66 |
| 774 | w[6]=60 |
| 775 | w[7]=70 |
| 776 | w[8]=83 |
| 777 | w[9]=3 |
| 778 | w[10]=24 |
| 779 | w[11]=67 |
| 780 | w[12]=54 |
| 781 | w[13]=64 |
| 782 | w[14]=70 |
| 783 | w[15]=9 |
| 784 | Range512: 89 4b 2a 95 65 95 55 2c a9 55 aa 55 6a 95 59 55 |
| 785 | Range test 0: range 511, num ARFCNs 12 |
| 786 | range=511, arfcns_used=11, f0=1, f0_included=1 |
| 787 | chan_list = 88 00 98 34 85 36 7c 50 22 dc 5e ec 00 00 00 00 |
| 788 | Decoded freqs 12 (expected 12) |
| 789 | Decoded: 1 12 31 51 57 91 97 98 113 117 120 125 |
| 790 | Range test 1: range 511, num ARFCNs 17 |
| 791 | range=511, arfcns_used=16, f0=1, f0_included=1 |
| 792 | chan_list = 88 00 82 7f 01 3f 7e 04 0b ff ff fc 10 41 07 e0 |
| 793 | Decoded freqs 17 (expected 17) |
| 794 | Decoded: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
| 795 | Range test 2: range 511, num ARFCNs 18 |
| 796 | range=511, arfcns_used=17, f0=1, f0_included=1 |
| 797 | chan_list = 88 00 82 7f 01 7f 7e 04 0b ff ff fc 10 41 07 ff |
| 798 | Decoded freqs 18 (expected 18) |
| 799 | Decoded: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
| 800 | Range test 3: range 511, num ARFCNs 18 |
| 801 | range=511, arfcns_used=17, f0=1, f0_included=1 |
| 802 | chan_list = 88 00 94 3a 44 32 d7 2a 43 2a 13 94 e5 38 39 f6 |
| 803 | Decoded freqs 18 (expected 18) |
| 804 | Decoded: 1 17 31 45 58 79 81 97 113 127 213 277 287 311 331 391 417 511 |
| 805 | Range test 4: range 511, num ARFCNs 6 |
| 806 | range=511, arfcns_used=5, f0=1, f0_included=1 |
| 807 | chan_list = 88 00 8b 3c 88 b9 6b 00 00 00 00 00 00 00 00 00 |
| 808 | Decoded freqs 6 (expected 6) |
| 809 | Decoded: 1 17 31 45 58 79 |
| 810 | Range test 5: range 511, num ARFCNs 6 |
| 811 | range=511, arfcns_used=5, f0=10, f0_included=1 |
| 812 | chan_list = 88 05 08 fc 88 b9 6b 00 00 00 00 00 00 00 00 00 |
| 813 | Decoded freqs 6 (expected 6) |
| 814 | Decoded: 10 17 31 45 58 79 |
| 815 | Range test 6: range 1023, num ARFCNs 17 |
| 816 | range=1023, arfcns_used=16, f0=0, f0_included=1 |
| 817 | chan_list = 84 71 e4 ab b9 58 05 cb 39 17 fd b0 75 62 0f 2f |
| 818 | Decoded freqs 17 (expected 17) |
| 819 | Decoded: 0 17 31 45 58 79 81 97 113 127 213 277 287 311 331 391 1023 |
| 820 | Range test 7: range 1023, num ARFCNs 16 |
| 821 | range=1023, arfcns_used=16, f0=0, f0_included=0 |
| 822 | chan_list = 80 71 e4 ab b9 58 05 cb 39 17 fd b0 75 62 0f 2f |
| 823 | Decoded freqs 16 (expected 16) |
| 824 | Decoded: 17 31 45 58 79 81 97 113 127 213 277 287 311 331 391 1023 |
| 825 | Random range test: range 127, max num ARFCNs 29 |
| 826 | Random range test: range 255, max num ARFCNs 22 |
| 827 | Random range test: range 511, max num ARFCNs 18 |
| 828 | Random range test: range 1023, max num ARFCNs 16 |
Pau Espin Pedrol | 1dac875 | 2022-04-26 17:32:33 +0200 | [diff] [blame] | 829 | rach_tx_integer_raw2val(0x00): 3 slots used to spread transmission |
| 830 | rach_tx_integer_raw2val(0x01): 4 slots used to spread transmission |
| 831 | rach_tx_integer_raw2val(0x02): 5 slots used to spread transmission |
| 832 | rach_tx_integer_raw2val(0x03): 6 slots used to spread transmission |
| 833 | rach_tx_integer_raw2val(0x04): 7 slots used to spread transmission |
| 834 | rach_tx_integer_raw2val(0x05): 8 slots used to spread transmission |
| 835 | rach_tx_integer_raw2val(0x06): 9 slots used to spread transmission |
| 836 | rach_tx_integer_raw2val(0x07): 10 slots used to spread transmission |
| 837 | rach_tx_integer_raw2val(0x08): 11 slots used to spread transmission |
| 838 | rach_tx_integer_raw2val(0x09): 12 slots used to spread transmission |
| 839 | rach_tx_integer_raw2val(0x0a): 14 slots used to spread transmission |
| 840 | rach_tx_integer_raw2val(0x0b): 16 slots used to spread transmission |
| 841 | rach_tx_integer_raw2val(0x0c): 20 slots used to spread transmission |
| 842 | rach_tx_integer_raw2val(0x0d): 25 slots used to spread transmission |
| 843 | rach_tx_integer_raw2val(0x0e): 32 slots used to spread transmission |
| 844 | rach_tx_integer_raw2val(0x0f): 50 slots used to spread transmission |