From 37afdf1ca524da71e2b0ee889409842e444dbf74 Mon Sep 17 00:00:00 2001 From: Yang Gu Date: Sun, 13 Jun 2010 17:43:19 +0800 Subject: stk: Add parser for bcch channel list objects --- src/stkutil.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/stkutil.h') diff --git a/src/stkutil.h b/src/stkutil.h index a6fe6335..278738be 100644 --- a/src/stkutil.h +++ b/src/stkutil.h @@ -709,6 +709,16 @@ struct stk_transaction_id { unsigned int len; }; +/* + * According to 31.111 Section 8.29 the length of CTLV is 1 byte. This means + * that the maximum size is 127 according to the rules of CTLVs. Each channel + * is represented as 10 bits, so the maximum number of channel is 127*8/10=101. + */ +struct stk_bcch_channel_list { + unsigned short channel[101]; + unsigned int num; +}; + /* * Defined in TS 102.223 Section 8.31 * Icon ID denotes a file on the SIM filesystem. Since EF cannot have record -- cgit v1.2.3