Denis Kenzior
3434540d8b
stkagent: Make DisplayText invocation match API
...
For now we match the proposed API until we decide that changes are
needed.
2010-07-30 17:19:56 -05:00
Denis Kenzior
69ea6cd7a0
stkagent: Remove stk_agent_generic_cb
2010-07-30 17:19:56 -05:00
Denis Kenzior
0292fe12c0
stkagent: Get rid of nasty g_timeout tricks
2010-07-30 17:19:55 -05:00
Denis Kenzior
9684c4a362
stkagent: Get rid of unneeded checks
2010-07-30 17:19:55 -05:00
Denis Kenzior
aa650f7488
stkagent: Shorten logic
2010-07-30 17:19:55 -05:00
Denis Kenzior
1a7179b79d
stkagent: Simplify stkagent logic
2010-07-30 17:19:55 -05:00
Denis Kenzior
7ad5b35a35
stkagent: Refactor stkagent api
2010-07-30 17:19:55 -05:00
Denis Kenzior
dc5a2609b3
stkagent: Rename stk_agent_remove
...
to stk_agent_free
2010-07-30 17:19:55 -05:00
Denis Kenzior
9e00eebe73
stkagent: Reorder stkagent.h
2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
b051f28dbe
stk: Handle the Display Text proactive command.
2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
3714eb8acd
stk: Handle the Select Item proactive command.
2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
47b95122cc
stk: Handle the main menu.
2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
5faa3951c2
stk: Utilities to deal with menus.
2010-07-30 17:19:55 -05:00
Andrzej Zaborowski
9654c69d7d
stk: Add STK agent registration api.
2010-07-30 17:19:54 -05:00
Andrzej Zaborowski
573c806fcd
Add STK agent utilities and logic.
2010-07-30 17:19:54 -05:00
Denis Kenzior
cf86deeb82
netreg: Add MCC/MNC to NetworkRegistration
...
These are the same values as on the NetworkOperator interface for the
current operator. Just added for convenience.
2010-07-27 16:52:16 -05:00
Kristen Carlson Accardi
f9cb5b37dd
stkutil: convert img to xpm
2010-07-26 14:34:54 -05:00
Inaky Perez-Gonzalez
e31d429dbe
sms: rename create_tx_queue_entry()
...
This is for symmetry with tx_queue_entry_free()
2010-07-23 18:00:59 -05:00
Inaky Perez-Gonzalez
4421b5b912
sms: document use_delivery_reports
...
In function sms_text_prepare
2010-07-23 18:00:10 -05:00
Inaky Perez-Gonzalez
9517bf2991
sms: sms_assembly_encode_address export and rename
...
The new name better reflects the function's purpose.
We need to export it, as for generating unique message naming (for
persistence and D-Bus object naming), we'll be using the
address.
2010-07-23 17:28:18 -05:00
Inaky Perez-Gonzalez
ca46f51c2d
introduce DECLARE_SMS_ADDR_STR()
...
Introduce DECLARE_SMS_ADDR_STR(), which declares a string variable of
the right size for passing to sms_assembly_decode_address(). This way
we detach each client having to have the knowledge of what the right
size is, leaving that decission to the infrastructure
provider. Updated couple of sites in smsutil.c to use it vs a raw
declaration.
2010-07-23 17:26:12 -05:00
Zhenhua Zhang
bdef5046d0
Fix: Free modem name in ofono_modem_remove
...
Avoid the memory leak of modem name.
2010-07-21 11:58:35 -05:00
Denis Kenzior
a3b694672d
gprs: Minor style fixes
2010-07-19 13:51:00 -05:00
Denis Kenzior
d4cae8dd56
gprs: Add Protocol property with IPv6/IPv4
2010-07-19 13:50:37 -05:00
Marcel Holtmann
7f9793d70b
Add feature identifier for SIM Toolkit
2010-07-17 14:53:07 -07:00
Andrzej Zaborowski
7c6758af20
stk: Remove an unneeded check.
2010-07-15 15:41:54 -05:00
Denis Kenzior
e77ea33fd6
stkutil: Set black fore/back ground color
2010-07-13 15:36:00 -05:00
Kristen Carlson Accardi
d10deb44f8
stkutil: display text attributes as html
2010-07-13 14:59:21 -05:00
Yang Gu
058d3d0cd4
Interpret "" Alpha Id as empty data object
...
There needs to be a way to distinguish between no alphaid and "empty
data object" because on some occasions they have different meanings. In
the Call Control envelope, no Alpha Identifier means the terminal can
inform the user about the call being modified by SIM while empty data
object means no hint should be given.
2010-07-09 12:30:12 -05:00
Denis Kenzior
465a4f5ef5
stk: Simplify poll interval logic
2010-07-08 14:27:35 -05:00
Denis Kenzior
7d98e604c7
stk: Be more paranoid of enums from stk
2010-07-08 14:27:35 -05:00
Andrzej Zaborowski
45d535b802
stk: Handle the Poll Interval proactive command
2010-07-08 14:27:35 -05:00
Denis Kenzior
00cb839c83
style: Use more understandable syntax
2010-07-08 14:27:34 -05:00
Denis Kenzior
ab9d7cd2cb
style: No initialization needed here
2010-07-08 14:27:34 -05:00
Denis Kenzior
ea1f6e11f6
stk: Get rid of gratuitous goto abuse
2010-07-08 14:27:34 -05:00
Denis Kenzior
5094b677ca
style: Prefer initialized variables on top
2010-07-08 14:27:34 -05:00
Denis Kenzior
84e73a8b7c
sms: Refactor ofono_sms_submit introduced by stk
...
Simplify the logic and get rid of duplicated code
2010-07-08 14:27:34 -05:00
Denis Kenzior
6d91d84b28
sms: Tweak the logic to be more readable
2010-07-08 14:27:34 -05:00
Denis Kenzior
db9b67e791
stk: Don't submit all pending envelopes at once
2010-07-08 14:27:34 -05:00
Denis Kenzior
5efd87fe63
stk: Fix copy / paste error
2010-07-08 14:27:34 -05:00
Denis Kenzior
a6edf2c803
stk: Get rid of bin to hex converter
...
That much code for a debug message is pretty silly. Perhaps an
ofono_debug_hexdump function is in order.
2010-07-08 14:27:34 -05:00
Denis Kenzior
d2dc0480db
stk: cancelled variable is not used
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
bd33ab6a6f
stk: Handle the Timer Management proactive command
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
c0db55513d
stk: Handle the Set Up Idle Text proactive command
...
This adds a SimToolkit dbus interface with just one property
(IdleModeText).
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
56d927b814
stk: Handle the Send SMS proactive command.
2010-07-08 14:27:34 -05:00
Andrzej Zaborowski
516a9b06c5
Add __ofono_sms_submit for other atoms to submit SMs.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
6de5b7f5bb
stkutil: Timer Value is conditional, not optional.
...
Make the parser check that the value is present when necessary,
so that stk.c doesn't have to check this.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
c451994139
sktutil: Use the Mandatory flag in parse_dataobj.
...
We need to look at the Mandatory flag and not at the Minimum flag
when parsing CTLVs. The Minimum flag is important when encoding CTLVs
because CR bit is set according to it.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
de587870d2
stk: Handle ENVELOPEs in a queue, retry on sim busy.
...
Some envelope types need to be retried when sim reports busy status.
Then envelopes such as Event Download need to be returned in the
order of the event occurences, so need to be handled in a queue.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
9d46dbc7a5
stk: Handle MoreTime command as a no-op
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
cbdb7278ac
stk: Utilities for proactive command/envelope handling.
2010-07-08 14:27:33 -05:00
Denis Kenzior
e6d6f802a5
smsutil: Fix valgrind complaint
...
SMS cannot be split over GSM extension chars, however on the last
segment this code was causing us to overflow the buffer and resulted in
valgrind complaining.
2010-07-08 14:27:33 -05:00
Andrzej Zaborowski
365183d5a0
stkutil: Move scaddr field to gsm_sms
2010-07-02 14:13:45 -05:00
Denis Kenzior
20da18ca8b
sms: Tweak the Bearer API
2010-06-25 17:49:36 -05:00
Denis Kenzior
8ff599c691
sms: Add support for SMS Bearer settings
2010-06-25 14:25:46 -05:00
Denis Kenzior
f3e0e466c7
gprs: Fix to attachment race condition
...
Sometimes we get unsolicited attachment status before our query
finishes. If the client is fast enough they can attempt to attach
and get the AttachInProgress error
2010-06-25 14:19:08 -05:00
Denis Kenzior
17de318c76
sms: minor style fix
2010-06-24 14:24:00 -05:00
Denis Kenzior
10e3ca440b
sms: Don't bother setting SCA if we can't query
2010-06-24 14:13:04 -05:00
Andrzej Zaborowski
557f4cdb16
stkutil: Alpha Id is optional for Select Item.
2010-06-23 14:45:46 -05:00
Andrzej Zaborowski
ab7f88233d
stkutil: Refactor command parser error handling
...
When parsing the full command fails but Command Details has been parsed,
return a struct stk_command containing this information and the type of
parsing problem found. We need the command details to be able to
even respond to the command.
This patch also makes the parser skip over unknown data objects found
in the BER-TLV, if they don't have Comprehension Required set.
2010-06-23 14:23:06 -05:00
Marcel Holtmann
1fedd096a0
Check sanity the MNC length value from the SIM card
...
In case the SIM entry is wrong or we force reading of it, nasty things
like this can happen:
ofonod[12456]: Control:> AT+CRSM=176,28589,0,0,4\r
ofonod[12456]: Control:< +CRSM: 144,0,"00FFFF"\r\n\r\nOK\r\n
*** buffer overflow detected ***: ./src/ofonod terminated
======= Backtrace: =========
/lib64/libc.so.6(__fortify_fail+0x37)[0x3e42efb417]
/lib64/libc.so.6[0x3e42ef9310]
/lib64/libc.so.6(__strncpy_chk+0x17b)[0x3e42ef85cb]
2010-06-22 17:21:03 +02:00
Denis Kenzior
9b6876ef25
storage: whitespace issue
2010-06-21 15:40:14 -05:00
Denis Kenzior
6bae7a2aa1
smsutil: Fix up some comment style
2010-06-21 15:33:13 -05:00
Andrzej Zaborowski
b8f68a5ed3
stkutil: Remove obsolete comment.
2010-06-21 15:21:40 -05:00
Denis Kenzior
4d82b67ea1
sms: Only emit property if value actually differs
2010-06-21 15:21:40 -05:00
Denis Kenzior
5aa8841440
smsutil: Take ton_npi into account in sr assembly
2010-06-21 15:21:40 -05:00
Denis Kenzior
36bcae5ff1
smsutil: More code cleanup
...
- Change the flow of the code a bit, in the case that all fragments have
been sent and an udelivered sr arrives, we can simply remove the node
and signal undelivered up
- We ignore temporary and temporary final status reports
2010-06-21 15:21:40 -05:00
Denis Kenzior
cbc27e06b3
smsutil: Make code flow easier to understand
2010-06-21 15:21:40 -05:00
Denis Kenzior
a8bd87cda9
smsutil: multiline comments to preferred style
2010-06-21 15:21:40 -05:00
Denis Kenzior
65b8cab616
smsutil: Minor code style & indentation fixes
2010-06-21 15:21:39 -05:00
Denis Kenzior
74a8ce2e8b
sms: Fixup minor style issues with status reports
2010-06-21 15:21:39 -05:00
Pasi Miettinen
84d095860f
sms: Status report notify
2010-06-21 15:21:39 -05:00
Denis Kenzior
d7dacd2fad
smsutil: memcpy is preferable to struct assignment
2010-06-21 15:21:39 -05:00
Denis Kenzior
c967766070
smsutil: Streamline flow of sr add_fragment
2010-06-21 15:21:39 -05:00
Denis Kenzior
cf62a6e8d5
Fix: Make distcheck pass
...
No need to include history.h anyway
2010-06-21 15:21:39 -05:00
Pasi Miettinen
a7372209f3
smsutil: Status report assembly
2010-06-21 10:52:27 -05:00
Andrzej Zaborowski
1b4dd4cd83
stkutil: Add More Time terminal response builder
2010-06-18 14:04:54 -05:00
Denis Kenzior
3b5d3fe1ef
stkutil: USSD max len is 160
2010-06-18 13:59:15 -05:00
Yang Gu
6018d1fe82
stk: Add parser for timing advance objects
2010-06-18 13:57:55 -05:00
Yang Gu
179c14fe39
smsutil: Add a decoder for ussd pdus
2010-06-18 13:18:12 -05:00
Yang Gu
31d29608e0
stk: Add parser for send ussd commands
2010-06-18 13:15:31 -05:00
Denis Kenzior
97e62dffde
stkutil: Make sure bc_repeat is used properly
...
The wrong structure was being used in the function & the has_bc_repeat
variable was not being set properly.
2010-06-16 17:43:12 -05:00
Denis Kenzior
dc505be373
stkutil: Merge two versions of bcch_channel_list
2010-06-16 17:43:12 -05:00
Yang Gu
ea41f3851d
stk: Add parser for UTRAN meas qualifier objects
2010-06-16 17:43:12 -05:00
Yang Gu
521156c049
stk: Add parser for PDP activation param objects
2010-06-16 17:43:12 -05:00
Yang Gu
37afdf1ca5
stk: Add parser for bcch channel list objects
2010-06-16 17:43:11 -05:00
Yang Gu
db941ff556
stk: Add parser for cell broadcast page objects
2010-06-16 17:43:11 -05:00
Yang Gu
090c93fbdf
Add several proactive command parsers
2010-06-16 17:43:11 -05:00
Yang Gu
a2d7494e93
stk: Add parser for send ss commands
2010-06-16 17:43:11 -05:00
Marcel Holtmann
fd3a89091c
Fix previous commit that broke reference to PDU string buffer
2010-06-16 16:49:14 +02:00
Marcel Holtmann
e2790ba646
Fix memory allocation handling for STK Proactive command debug
2010-06-16 15:55:53 +02:00
Denis Kenzior
3ba288c396
stkutil: Minor style cleanups in stkutil
2010-06-15 14:32:58 -05:00
Andrzej Zaborowski
d5ad48c661
stkutil: Add Terminal Applications envelope builder
...
This is not a terribly useful function as the user still needs to
split the list in separate envelopes. The .type field could be an
enum.
2010-06-15 14:27:35 -05:00
Andrzej Zaborowski
0baaf2ce5b
stkutil: Add MMS Notification DL envelope builder
2010-06-15 12:37:53 -05:00
Andrzej Zaborowski
6720f90e13
stkutil: Add MMS Transfer Status envelope builder
2010-06-15 12:36:31 -05:00
Andrzej Zaborowski
df8f6115ca
stkutil: Add the USSD Download envelope builder
2010-06-15 12:35:18 -05:00
Andrzej Zaborowski
dd9e095524
stkutil: Add the Timer Expiration envelope builder
2010-06-15 12:09:00 -05:00
Andrzej Zaborowski
2166be0bc9
stkutil: Add the Event Download envelope builder
2010-06-15 12:06:59 -05:00
Andrzej Zaborowski
fb39e0efed
stkutil: Refactor struct stk_frames_info
2010-06-15 12:06:52 -05:00
Andrzej Zaborowski
6e4277eef8
stkutil: Refactor struct stk_other_address
2010-06-15 12:06:47 -05:00
Andrzej Zaborowski
f74087d03e
stkutil: Add the Call Control envelope builder
2010-06-15 12:06:30 -05:00
Marcel Holtmann
24124d193a
Just call the feature "net" instead of "netreg"
2010-06-12 21:41:48 +02:00
Marcel Holtmann
236f3acc0f
Add support for Features property on modem interface
2010-06-09 20:46:10 -07:00
Marcel Holtmann
9a72d2566d
Move data connection manager interface constants into common include
2010-06-09 20:38:50 -07:00
Marcel Holtmann
aa99c4c0dd
Rename CbsManger into CellBroadcast
...
Other D-Bus interfaces use clear descriptions like SupplementaryServices
or NetworkRegistration. So use CellBroadcast for cell broadcast support.
2010-06-09 20:07:11 -07:00
Andrzej Zaborowski
b95ef22f61
stkutil: Refactor stk_location_info
...
In some cases an empty stk_location_info means that no object should be
emitted (e.g. it is optional) and in other cases an empty object should
be emitted. This is context specific to the terminal response /
envelope and thus we break this up into two separate functions.
2010-06-09 19:29:15 -05:00
Andrzej Zaborowski
5684577171
stkutil: Add MO SMS Control envelope builder
2010-06-09 18:03:00 -05:00
Denis Kenzior
70b09d1742
simutil: Remove unneeded forward-declaration
2010-06-09 13:08:23 -05:00
Andrzej Zaborowski
4dcb3fed2a
simutil: Fix MMC MNC encoding for 2-digit MNCs.
2010-06-09 13:07:09 -05:00
Andrzej Zaborowski
9f925b3620
util: Add a "sim string" encoding utility.
2010-06-09 12:43:27 -05:00
Andrzej Zaborowski
b2dfa2321f
stkutil: Add the Menu Selection envelope builder
2010-06-09 12:30:19 -05:00
Andrzej Zaborowski
569c252e48
Fix: download CBS to SIM even when "Powered" is 0
2010-06-09 12:27:24 -05:00
Andrzej Zaborowski
7e5ef25c5a
stk: Use envelope encoding utility from stkutil.c
2010-06-09 12:26:32 -05:00
Andrzej Zaborowski
f989541161
stkutil: Add CBS-PP Data Download envelope builder
2010-06-09 12:25:25 -05:00
Andrzej Zaborowski
8be222d46e
stkutil: Add SMS-PP Data Download envelope builder
2010-06-09 12:23:13 -05:00
Andrzej Zaborowski
ef408ae1a6
stkutil: Use static buf in stk_pdu_from_response
2010-06-09 12:19:52 -05:00
Denis Kenzior
06ecf0e7f5
cbs: Send ETWS topics last
2010-06-07 15:08:58 -05:00
Denis Kenzior
ba5ec3b38e
sms: style fix, remove extra newline
2010-06-07 13:05:50 -05:00
Pasi Miettinen
47082757b9
sms: Add UseDeliveryReports property
2010-06-07 13:05:13 -05:00
Pasi Miettinen
475c0de92c
smsutil: Add option to use delivery reports
2010-06-07 13:00:46 -05:00
Denis Kenzior
c8f15602cf
network: Some style issues
2010-06-07 12:57:50 -05:00
Denis Kenzior
3d96880f41
netreg: Ignore operator info when not registered
...
Sometimes when we roam off the cell or are simply not registered, the
modem still reports a bogus operator. We explicitly ignore this
condition in the core.
2010-06-07 12:57:46 -05:00
Denis Kenzior
69e5a65d34
smsutil: status reports also lead with SC_ADDR
2010-06-04 14:21:57 -05:00
Yang Gu
52ddd8c283
stk: Constraint the appearance of empty item
...
If empty item turns out, it must be the only item in the list.
So the following situations are deemed as invalid:
1. Two empty items
2. Valid item + empty item
3. empty + valid item
2010-06-01 14:02:32 -05:00
Denis Kenzior
4638d3ad83
smsutil: Don't overflow signed ints
...
We were overflowing the datatype which was causing the 31st segments to
be prepended at position 0. This resulted in (very) long messages being
improperly concatenated
2010-06-01 10:07:18 -05:00
Andrzej Zaborowski
4f2a371a9f
stkutil: Add Launch Browser response builder
2010-05-28 11:41:34 -05:00
Andrzej Zaborowski
ac222a5512
stkutil: Add Language Notification response builder
2010-05-28 11:38:19 -05:00
Andrzej Zaborowski
4c4e2e9f03
stkutil: Add Send DTMF response builder support
2010-05-28 11:37:39 -05:00
Denis Kenzior
b1e3579417
stkutil: Fix comment style
2010-05-28 11:36:48 -05:00
Andrzej Zaborowski
27a9d785c4
stkutil: Add the Run AT Command response builder
2010-05-28 11:35:17 -05:00
Andrzej Zaborowski
e608568d79
stkutil: Add Set Up Idle Mode Text response builder
2010-05-28 11:33:25 -05:00
Denis Kenzior
3dc3f69b86
stkutil: Fix style in build_dataobj_timer_value
2010-05-28 11:32:04 -05:00
Denis Kenzior
88e4f807f8
stkutil: Fix style
2010-05-28 11:30:35 -05:00
Andrzej Zaborowski
268ac562eb
stkutil: Add the Timer Management response builder
2010-05-28 11:29:48 -05:00
Denis Kenzior
8d863b6250
stkutil: Use more understandable syntax
2010-05-28 11:29:35 -05:00
Denis Kenzior
5ed7962765
stkutil: Fix style
2010-05-28 11:29:35 -05:00
Denis Kenzior
5588433ad4
stkutil: Fix style in build_dataobj_location_info
2010-05-28 11:29:35 -05:00
Denis Kenzior
a597318b78
stkutil: Fix some style issues with setup_call
2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
139294c588
stkutil: Add Set Up Event List response builder
2010-05-28 11:29:35 -05:00
Andrzej Zaborowski
8868becca1
stkutil: Add the Provide Local Info response builder
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
970250be0c
stkutil: Add Polling Off response builder support
2010-05-28 11:29:34 -05:00
Andrzej Zaborowski
8e0484d1d5
stkutil: Add Set Up Call response builder
2010-05-28 10:40:03 -05:00
Inaky Perez-Gonzalez
2b891029ac
sms: Add some documentation
...
Add doc headers to ofono_sms_{create, register}
2010-05-28 09:45:56 -05:00
Inaky Perez-Gonzalez
8a4f8d2022
storage: add printf-like verification
...
Add __attribute__((format)) to {write, read}_file()
2010-05-28 09:44:15 -05:00
Inaky Perez-Gonzalez
b0a63388de
sms_send_message: add a short roadmap
2010-05-28 09:33:44 -05:00
Inaky Perez-Gonzalez
9c107821ab
smsutils: add some documentation
...
sms_assembly_add_fragment_backup: clarify how insertion spot is found
2010-05-28 09:23:35 -05:00
Denis Kenzior
f2f5810942
sim: move ServiceDiallingNumbers to ServiceNumbers
...
In line with the API documentation
2010-05-27 14:58:29 -05:00
Pekka Pessi
8001338da7
Use ofono_bool_t instead of bool in modem API.
2010-05-27 13:01:06 -05:00
Pekka Pessi
7d1c404a6a
modem: Fix inconsistent state
...
Keep modem state consistent if sim is removed while set_online
driver call is pending. This results in set_online callback being
called and modem entering an invalid state.
2010-05-27 12:44:40 -05:00
Denis Kenzior
603ff15e6b
stkutil: Refactor parsing of data object lists
...
The old way wasn't working out for lists that are optional. This was
only a problem with the launch browser proactive command.
2010-05-27 12:42:59 -05:00
Yang Gu
31b65ef8ab
Move destructor prior to return
2010-05-27 12:21:05 -05:00
Yang Gu
3b71390b51
stk: Add parser for launch browser commands
2010-05-27 10:24:39 -05:00
Denis Kenzior
e7570ef1d5
stkutil: Refactor SMS pdu parser
2010-05-27 09:26:45 -05:00
Denis Kenzior
9bb7bcd450
smsutil: add sms_decode_unpacked_stk_pdu function
...
Properly check the special 'packing required' sms pdus sent by SIM
toolkit.
2010-05-27 09:25:48 -05:00
Yang Gu
4d69a5cd86
stk: Fix the parser of send sms
2010-05-27 07:56:09 -05:00
Yang Gu
a9cd641855
smsutil: Check that udl is less than 140
2010-05-27 07:21:28 -05:00
Yang Gu
ea01533cd6
stk: Use sim bcd version
2010-05-27 07:04:55 -05:00
Denis Kenzior
5a24916aae
Fix: Go to online state if set_online is NULL
2010-05-26 21:03:15 -05:00
Denis Kenzior
7705cebd3f
Refactor: no need for dummy_online_callback
2010-05-26 21:03:15 -05:00
Denis Kenzior
f2a2573cd0
Fix: Don't allow setting online before sim ready
2010-05-26 21:03:15 -05:00
Denis Kenzior
adefe451a2
Refactor: Break up set_online_callback
...
- Break up into two functions, one for online and one for offline
- No longer the need for online_pending variable
2010-05-26 21:03:15 -05:00
Denis Kenzior
7b77888217
Add __ofono_error_not_available
2010-05-26 21:03:15 -05:00
Denis Kenzior
5da54eea44
Refactor: flush_atoms
...
The current implementation did not take care of the case where the head
of the list was removed
2010-05-26 21:03:14 -05:00
Denis Kenzior
5890c38a37
Refactor: Don't use ofono_ prefix
...
Only meant for oFono public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
53dc160362
Refactor: The macros are no longer needed
2010-05-26 21:03:14 -05:00
Denis Kenzior
d3b9f42ed4
Refactor: Don't use ofono_ prefix
...
Only to be used for ofono public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
1b34af054d
Refactor: Don't use ofono_ prefix
...
only meant for public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
c53d084234
Refactor: Don't use ofono_ prefix
...
ofono_ prefix is meant for public API
2010-05-26 21:03:14 -05:00
Denis Kenzior
e7529bfa70
Fix: minor style issues
2010-05-26 21:03:12 -05:00
Pekka Pessi
4f1506ba25
Add: Online property to modem
...
The online/offline state is changed with the new set_online() modem driver
method.
In order to track atoms, there are modem states as follows:
- OFONO_MODEM_STATE_POWER_OFF
- OFONO_MODEM_STATE_PRE_SIM
- OFONO_MODEM_STATE_OFFLINE
- OFONO_MODEM_STATE_ONLINE
Atoms are added with driver methods pre_sim(), post_sim() and post_online().
Atoms are removed by modem core when the state changes.
2010-05-26 14:24:11 -05:00
Aki Niemi
96090ce079
Fix more-messages-to-send indicator
...
Set the mms indicator based on remaining segment count and not on the
message transmit queue status alone.
2010-05-26 11:16:45 -05:00
Denis Kenzior
e8a7b5cc46
simutil: Make sim_adn_build use sim bcd
2010-05-26 10:00:02 -05:00
Denis Kenzior
b0cf35c324
simutil: Add sim_encode_bcd_number
2010-05-26 09:59:14 -05:00
Denis Kenzior
75ce0a7b28
simutil: Make sim_adn_parse use sim bcd version
2010-05-26 09:51:51 -05:00
Denis Kenzior
48a4f59bdd
simutil: add sim_extract_bcd_number
2010-05-26 09:50:51 -05:00
Denis Kenzior
795f0f3406
smsutil: Update the doc for extract_bcd_number
2010-05-26 09:17:25 -05:00
Yang Gu
5129bb2998
stk: Add parser for language notification commands
2010-05-25 17:36:52 -05:00
Yang Gu
0e983e965e
stk: Add parser for send dtmf commands
2010-05-25 17:34:29 -05:00
Yang Gu
f21e69c7a8
stk: Add parser for run at command commands
2010-05-25 17:19:38 -05:00
Yang Gu
525bf96a1b
stk: Add parser for setup idle mode text commands
2010-05-25 17:13:43 -05:00
Andrzej Zaborowski
af2004ece1
simutil: Add MMC MNC pair encoding utility
2010-05-25 16:52:54 -05:00
Denis Kenzior
9cd477fb7a
stkutil: Fix warning
2010-05-25 16:52:54 -05:00
Denis Kenzior
ce449d0929
stkutil: More style issues
...
- Make stk_tlv_builder usage consistent (builder was missing)
- Various style issues
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
ff67ee8a2e
smsutil: Expose SMS timestamp encoding utility
...
The function can be re-used in stkutil.c, similarly to sms_decode_scts.
2010-05-25 16:52:54 -05:00
Denis Kenzior
3fc7a54a69
stkutil: small style issue
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
429d03c965
stkutil: Add Select Item response builder
2010-05-25 16:52:54 -05:00
Andrzej Zaborowski
d566fe2796
stkutil: Add Set Up Menu response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
0a3324f8b6
test-stkutil: Add Refresh response tests
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
516fdec557
stkutil: Add Refresh response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
5854e2262b
stkutil: Add Poll Interval response builder
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
a732863c87
stkutil: Add Play Tone response builder support
2010-05-25 16:52:53 -05:00
Andrzej Zaborowski
93bd75441c
stkutil: Add Send SMS response builder
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
22561c26f1
stkutil: Add Get Input response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
7eda56a6b4
stkutil: Various code style issues
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
eacb4395fc
stkutil: Add Get Inkey response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
60cab4354c
stkutil: Make the code more readable
2010-05-25 16:52:52 -05:00
Andrzej Zaborowski
5953762a7b
stkutil: Add Display Text response builder
2010-05-25 16:52:52 -05:00
Denis Kenzior
706c5aa994
stkutil: Simplify append_text
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
6831adfa74
Add STK-specific CTLV encoding utilities
2010-05-25 16:52:51 -05:00
Denis Kenzior
83240f1389
simutil: simplify ctlv logic
2010-05-25 16:52:51 -05:00
Denis Kenzior
ec8a6cbc43
simutil: Simplify ber_tlv_builder_optimize logic
2010-05-25 16:52:51 -05:00
Denis Kenzior
ea46bae631
simutil: Simplify ber_tlv builder set_length logic
2010-05-25 16:52:51 -05:00
Denis Kenzior
fd8d7b8992
simutil: Simplify builder_write_header
2010-05-25 16:52:51 -05:00
Denis Kenzior
91c4644458
simutil: Be more type-correct
2010-05-25 16:52:51 -05:00
Denis Kenzior
afedfcb486
simutil: Get rid of ugly-named functions
...
Replace them by macros
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski
1c3060026e
simutil: Add utilities for encoding BTLV and CTLV
2010-05-25 16:52:50 -05:00
Marcel Holtmann
6322542719
Break function declaration down to two lines
2010-05-25 11:08:58 +02:00
Gustavo F. Padovan
d62548bfd0
Bring back -d option without need for argument
2010-05-25 11:08:22 +02:00
Denis Kenzior
73bfae4f46
sim: Read EFiccid after EFphase
2010-05-19 23:48:34 -05:00
Denis Kenzior
bbd6a1d48a
sim: No need for this define
2010-05-19 23:47:41 -05:00
Daniel Wagner
b338033307
Read EF_ICCID property of SIM
...
Tested with phonesim.
2010-05-19 23:41:03 -05:00
Denis Kenzior
83fc72c95a
core: Trivial whitespace error
2010-05-19 05:26:35 -05:00
Aki Niemi
b8ec7553ef
Add network time support
...
Adding a new notify function in the netreg atom for notifying a
received Network Identification and Timezone (NITZ) indication. This
data is consumed via a nettime plugin, of which there is also an
example.
2010-05-19 10:46:18 +03:00
Denis Kenzior
ecf0c990cf
stkutil: reorder command struct order
2010-05-13 15:36:35 -05:00
Yang Gu
a1e3cb43ec
stkutil: Add timer management command parser
2010-05-13 15:33:26 -05:00
Yang Gu
1a5d9bc8d5
stkutil: Add get reader status command parser
2010-05-13 15:32:49 -05:00
Yang Gu
d6e1718a82
stkutil: Add power on card command parser
2010-05-13 15:32:18 -05:00
Yang Gu
ee12e0fd50
stkutil: Add power off card command parser
2010-05-13 15:31:59 -05:00
Denis Kenzior
84ea89926f
stkutil: Minor style issues and a typo
2010-05-13 15:31:21 -05:00
Yang Gu
5330612d28
stkutil: Add perform card apdu command parser
2010-05-13 15:25:59 -05:00
Yang Gu
beb01428b7
stkutil: Add event list command parser
2010-05-13 13:57:11 -05:00
Denis Kenzior
c02ae417f4
style: Whitespace errors
2010-05-13 13:55:35 -05:00
Yang Gu
2f1bb15dcf
stkutil: Add provide local info command parser
2010-05-13 13:53:08 -05:00
Yang Gu
0dc5c5df6f
stkutil: Add polling off proactive command parser
2010-05-13 13:52:20 -05:00
Denis Kenzior
57925606c0
stkutil: file_list instead of fl is better
2010-05-13 13:51:38 -05:00
Yang Gu
7e96402cc0
stkutil: Add refresh proactive command parser
2010-05-13 13:49:28 -05:00
Yang Gu
783bb70599
stkutil: Add setup call proactive command parser
2010-05-13 13:47:22 -05:00
Yang Gu
847539b39d
stk: Adjust the sequence of dataobj
2010-05-13 13:46:21 -05:00
Denis Kenzior
1ddc7ebf19
stkutil: Refactor parse_list into parse_item_list
...
Makes the code much easier to follow
2010-05-13 13:43:16 -05:00
Yang Gu
352a03d537
stkutil: Add select item proactive command parser
2010-05-13 12:29:59 -05:00
Yang Gu
d45219e049
stkutil: Add setup menu proactive command parse
2010-05-13 11:07:07 -05:00
Yang Gu
2cc037e136
style: remove extra whitespace
2010-05-13 11:05:33 -05:00
Yang Gu
9f3b2de6f0
stkutil: item objects can be NULL
...
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:05:06 -05:00
Yang Gu
edcd03e570
stkutil: alpha id objects can be NULL
...
ETSI 102.223 doesn't mention that alpha id objects can be NULL, however
such objects exist in the 102.384 test specification.
2010-05-13 11:04:04 -05:00
Yang Gu
353d955dea
simutil: Add comprehension tlv copy
...
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Yang Gu
5b030c4a19
stk: Add poll interval proactive command parser
2010-05-13 10:53:40 -05:00
Yang Gu
8a33071cd0
stkutil: Parse cdma tpdu in send sms parser
2010-05-11 14:36:37 -05:00
Yang Gu
4374123324
stkutil: Refactor parser for tone objects
2010-05-11 12:24:02 -05:00
Yang Gu
37c2bc8cf2
stkutil: Add play tone proactive command parser
2010-05-11 12:21:51 -05:00
Yang Gu
6e4f5c5122
stk: Unify variable names to use abbreviation
2010-05-11 12:19:09 -05:00
Yang Gu
2eff407957
stkutil: Free default text for get input parser
2010-05-11 12:15:36 -05:00
Andrzej Zaborowski
018ee10f92
Fix: Don't remove wrong atoms
...
When the state goes from INSERTED to NOT PRESENT and we have not
advanced past the SIM PIN entry, we remove the pre_sim atoms.
Similarly, if we advanced past the SIM PIN stage and subsequently
removed the SIM, the pre_sim atom list should not be tampered with.
2010-05-10 15:26:09 -05:00
Yang Gu
c5023690b7
stkutil: Make get inkey parser use its own struct
2010-04-27 09:35:01 -05:00
Yang Gu
1bd755bcdc
stkutil: Use char* instead of char**
...
char ** should only be used for character arrays that are allocated by
the parser. Static buffers should be passed as char*
2010-04-27 09:33:32 -05:00
Yang Gu
8516a38cf1
stkutil: Add 'more time' proactive command parser
2010-04-27 09:32:06 -05:00
Yang Gu
3ae32b6e51
stkutil: Use struct to represent frame id
...
Use a field has_id to indicate if we have frame id or not. Originally
we use 0xFF to indicate we don't have frame id. But in that way, we
have to initialize each test case of proactive command when it doesn't
have this comprehension tlv to be 0xFF. To use has_id will save this
effort, and keep consistency with other implementations.
2010-04-27 09:30:59 -05:00
Yang Gu
def5c38094
stkutil: Move advance of ctlv to parse_dataobj
...
Not all the proactive commands have comprehension tlv other than
command details and device identities. So the appropriate code should
be moved to parse_dataobj() from stk_command_new_from_pdu().
2010-04-27 09:30:39 -05:00
Yang Gu
30644d8195
stkutil: Fix the assignment to minimum set
2010-04-26 11:30:52 -05:00
Yang Gu
89d19b37d9
stkutil: Add parser for broadcast network info
2010-04-23 11:52:18 -05:00
Yang Gu
aa3c5807ad
stkutil: Add parser for activate descriptor
2010-04-23 11:52:18 -05:00