diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-03-10 12:53:09 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-15 21:02:06 -0500 |
commit | e5dff20ff5bfd3052c190374315d21ed8d7eda78 (patch) | |
tree | db4b9c50641cf75a84f670cc95ec5ab358572938 /src/stkutil.h | |
parent | bbf67bd4a0cf7124d8da9712f44670a1acaf2d08 (diff) | |
download | ofono-e5dff20ff5bfd3052c190374315d21ed8d7eda78.tar.bz2 |
Refactor: Update the subaddress structure
Diffstat (limited to 'src/stkutil.h')
-rw-r--r-- | src/stkutil.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/stkutil.h b/src/stkutil.h index b67bbefe..d225dd45 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -198,10 +198,23 @@ struct stk_address { char *number; }; -/* Defined in TS 102.223 Section 8.3 */ +/* + * Defined in TS 102.223 Section 8.3 + * + * The maximum size of the subaddress is different depending on the referenced + * specification. According to TS 24.008 Section 10.5.4.8: "The called party + * subaddress is a type 4 information element with a minimum length of 2 octets + * and a maximum length of 23 octets" + * + * According to TS 31.102 Section 4.4.2.4: "The subaddress data contains + * information as defined for this purpose in TS 24.008 [9]. All information + * defined in TS 24.008, except the information element identifier, shall be + * stored in the USIM. The length of this subaddress data can be up to 22 + * bytes." + */ struct stk_subaddress { - unsigned int subaddr_len; - unsigned char *subaddr; + unsigned char len; + unsigned char *subaddr[23]; }; /* Defined in TS 102.223 Section 8.4 */ |