Commit Graph

2182 Commits

Author SHA1 Message Date
Frédéric Dalleau aa0f93b664 voicecall: add +CHLD=1X support for HFP emulator 2011-05-04 22:00:07 -05:00
Frédéric Dalleau 6d501aa93a voicecall: add +CHLD=4 support for HFP emulator 2011-05-04 21:59:21 -05:00
Frédéric Dalleau bb02dd4070 voicecall: add +CHLD=3 support for HFP emulator 2011-05-04 21:59:18 -05:00
Frédéric Dalleau 81ccae5a97 voicecall: add +CHLD=0 support for HFP emulator 2011-05-04 21:58:23 -05:00
Frédéric Dalleau 41d54b2718 voicecall: add +CHLD support for HFP emulator 2011-05-04 21:57:30 -05:00
Frédéric Dalleau ffe11200a9 voicecall: Fix variable initialization 2011-05-04 21:51:27 -05:00
Bertrand Aygon 48e97447ab sms: Remove use of uninitialized variable
Remove a debug information, since the info is useless, and more,
it can display invalid info due to var not initialise in some case
2011-04-29 04:15:47 -05:00
Denis Kenzior 2f2436bc20 modem: Don't allow setting online unless powered 2011-04-28 09:48:48 -05:00
Frédéric Danis b60762e026 voicecall: fix waiting calls for HFP emulator
Fix precedence between waiting and dialing so HFP emulator is notified
of dialing/alerting even in case of a waiting call pending.
2011-04-26 14:43:42 -05:00
Denis Kenzior f8eb178b29 voicecall: Update CLCC buffer size and comment 2011-04-26 14:41:52 -05:00
Denis Kenzior 97a7a61789 voicecall: Refactor the previous commit slightly 2011-04-26 14:41:26 -05:00
Frédéric Dalleau 719fae9587 voicecall: add +CLCC support for HFP emulator 2011-04-26 14:22:11 -05:00
Frédéric Danis 7ff32ab8e8 emulator: fix +CLIP in case of withheld call 2011-04-21 16:23:08 -05:00
Denis Kenzior 5dcab7b507 voicecall: Tweak the behavior of previous commit
Use a generic void pointer to remove the need for emulator_release_done
function.

Use naming a bit more consistent with the rest of the codebase
2011-04-19 16:32:59 -05:00
Frédéric Danis 4ad9833c25 voicecall: add +CHUP support for HFP emulator
Update multirelease_callback to be used from DBus calls or HFP Emulator.
"release done" is configurable by multirelease caller.
2011-04-19 16:27:11 -05:00
Denis Kenzior f081400c98 voicecall: Don't go over 80 characters per line 2011-04-19 16:25:08 -05:00
Frédéric Danis 8600a39cce voicecall: add ATA support for HFP emulator 2011-04-19 13:53:24 -05:00
Denis Kenzior cae4553710 emulator: Use a switch/case instead of if
Seems a bit cleaner
2011-04-19 13:53:24 -05:00
Denis Kenzior 894c9cf406 emulator: Reflow comments 2011-04-19 13:53:24 -05:00
Frédéric Danis ffd4db4a97 emulator: add +CCWA support for HFP AG 2011-04-19 13:53:24 -05:00
Frédéric Danis 7c5498746e emulator: add +CLIP support for HFP AG 2011-04-19 13:53:24 -05:00
Frédéric Danis a8acaf59d3 voicecall: add API to find call by status 2011-04-19 13:53:24 -05:00
Frédéric Danis 335ca8fac3 emulator: add RING for HFP AG 2011-04-19 13:53:23 -05:00
Denis Kenzior 2ded3271d5 simutil: Add support of CPHS EFcsp to our EF db 2011-04-14 17:34:16 -05:00
Denis Kenzior d6838a2095 network: One more trivial fix
total_length and record_length are the same in this context, but using
total_length makes the code more readable
2011-04-14 17:33:40 -05:00
Denis Kenzior 1e00ed554c network: Refactor EFcsp to support STK Refresh 2011-04-14 17:02:22 -05:00
Denis Kenzior 441456503e network: Use strings instead of ints in settings 2011-04-14 17:02:22 -05:00
Denis Kenzior 240a01260f modem: Fix entering offline mode prematurely
A contextual change to __ofono_modem_find_atom has caused us to enter
into offline mode prematurely.  find_atom was changed to return only the
atoms that were registered, however the modem really has to know whether
the sim atom is created (not registered) in order to know whether to
wait for the SIM to be initialized or not.
2011-04-14 17:02:22 -05:00
Denis Kenzior d26a3fd67b sms: Fix typo 2011-04-14 17:02:22 -05:00
Denis Kenzior e4fda1e36d network: Read EFcsp after initializing reg state
This is to avoid some benign race conditions when EFcsp might be read
before the registration state has been established.
2011-04-14 17:02:22 -05:00
Denis Kenzior 49928bece3 network: Try not to clash with 27.007-defined modes 2011-04-14 17:02:22 -05:00
Denis Kenzior 59f32bd353 netreg: Refactor register_callback 2011-04-14 17:02:22 -05:00
Aki Niemi 41c42f1606 netreg: Add CPHS CSP implementation 2011-04-14 17:02:22 -05:00
Philippe Nunes 8cb9e8ed7b stkutil: Add additional info enum for BIP 2011-04-11 23:17:19 -05:00
Philippe Nunes bcd8608f95 stkagent: Add ConfirmOpenChannel method 2011-04-11 23:16:56 -05:00
Denis Kenzior e9f12d7620 voicecall: fix to sim ecc free logic
Correct copy paste mistakes and a slight logic oversight
2011-04-11 17:48:11 -05:00
Denis Kenzior 857d2dfca8 voicecall: Fix ECC list generation for empty EFecc 2011-04-11 15:24:09 -05:00
Frédéric Danis d214427663 voicecall: add call, callsetup and callheld indicators 2011-04-11 10:34:30 -05:00
Frédéric Danis d43cf515da emulator: add call, callsetup and callheld cinds 2011-04-11 10:34:15 -05:00
Nicolas Bertrand 0596480260 stkagent: Avoid error when URL is null
...with STK command "LAUNCH BROWSER" and default URL
2011-04-07 22:26:42 -05:00
Denis Kenzior 31aca33b44 voicecall: Handle concurrent Refresh & NW ECC update
There is a potential case where the EFecc is being refreshed due to a
SIM refresh and a Network ECC list is updated.  In this case we might
report a set of numbers that is not yet complete.  Take care of this
case.
2011-04-07 22:18:06 -05:00
Denis Kenzior ad717a0f40 voicecall: Don't reverse sim_en_list
The order of the ECCs is not important as they're all unique.
2011-04-07 22:18:05 -05:00
Denis Kenzior 85dfc94016 voicecall: Fix ECC list generation
If the network list of ECC numbers is updated when we have no SIM, or
when the SIM numbers have not yet been read, or there is an error during
EFecc read, then the default_no_sim numbers are never added to the ECC
list.
2011-04-07 22:18:05 -05:00
Denis Kenzior 7608db55cb voicecall: Localize variable initialization 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan 4a83571677 voicecall: network emergency number list support 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan f6444d3963 voicecall: Refactor emergency number list handling 2011-04-07 22:18:05 -05:00
Jeevaka Badrappan 758826919b voicecall: Remove sim_state_watch on atom unregister 2011-04-07 22:18:05 -05:00
Denis Kenzior 8900cf81a6 stk: No more need to use get_registered
__ofono_modem_find_atom returns only atoms that are registered now.
2011-04-05 00:18:34 -05:00
Denis Kenzior 73b9e06c40 stk: Check for USSD atom before others
For efficiency (and consistency) we should check for the USSD atom
before checking CallForwarding, CallBarring, and CallSettings atoms.
2011-04-05 00:16:23 -05:00
Andrzej Zaborowski d77f0ff799 stk: Check if terminal is busy before SIM Refresh 2011-04-05 00:12:10 -05:00
Denis Kenzior 9464dc32b4 call-forwarding: Move to avoid forward-decl 2011-04-05 00:07:43 -05:00
Denis Kenzior ee5282aac9 call-forwarding: Remove unneeded forward-decl 2011-04-05 00:06:29 -05:00
Denis Kenzior f31298666b call-forwarding: Fix typo 2011-04-05 00:05:10 -05:00
Andrzej Zaborowski c57d6049bf call-forwarding: Reregister on EF-CFIS refresh 2011-04-05 00:05:04 -05:00
Denis Kenzior ff04d53e32 modem: Tweak online logic if set_online is missing
In case set_online is missing, we should set online mode directly.  If
we're already online then set our state to Online, otherwise check if we
should get Online.
2011-04-04 23:48:41 -05:00
Denis Kenzior 4ee289a4ab modem: No need to set get_online on sim reset
When STK sends us a SIM Refresh resulting in a SIM reset, we should not
set the online state as the modem should still keep us online anyway.
2011-04-04 23:45:32 -05:00
Denis Kenzior 1b0c1a6416 modem: Fix minor style violations 2011-04-04 23:45:23 -05:00
Jeevaka Badrappan e933ca4260 modem: modem state decoupled from rf state 2011-04-04 23:36:49 -05:00
Denis Kenzior a002db962a voicecall: Detect emergency calls initiated by STK 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan 348149ec5a voicecall: add emergency mode handling 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan f117cc5abf voicecall: generalize emergency call check 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan 0bb95c1bd8 modem: restrict operations allowed in emergency 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan c65eb67f48 dbus: Add __ofono_error_emergency_active 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan aa6e379ee3 modem: add increment/decrement emergency mode api 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan c6cd422f25 modem: add Emergency property 2011-04-04 23:36:49 -05:00
Jeevaka Badrappan e8d3066781 modem: add ofono_modem_get_emergency_mode api 2011-04-04 23:36:49 -05:00
Frédéric Danis e7e6ce9983 sim: add +CNUM support for HFP emulator 2011-03-31 14:29:39 -05:00
Denis Kenzior f58c3614aa stkutil: add one more sanity check 2011-03-31 14:00:49 -05:00
Denis Kenzior c79c3c0e54 stkutil: Minor style fixes 2011-03-31 14:00:26 -05:00
Philippe Nunes d147afd6fc stkutil: decoding & encoding for class e commands
Complete the TLV parsing/builder to support BIP commands
2011-03-31 13:43:29 -05:00
Philippe Nunes b2e3a47217 stkutil: Add typo/cleaning modifications 2011-03-30 19:36:09 -05:00
Denis Kenzior 767d297263 modem: Only find registered atoms
Change the semantics of __ofono_modem_find_atom to only return
registered atoms.
2011-03-30 13:30:50 -05:00
Denis Kenzior 3e799ce8b4 devinfo: Register the devinfo atom 2011-03-30 13:30:01 -05:00
Denis Kenzior 29df90d2b1 voicecall: set call_list to NULL 2011-03-30 13:29:47 -05:00
Denis Kenzior 44953be406 network: Notify only registered emulator atoms 2011-03-30 13:06:57 -05:00
Denis Kenzior 774cb72930 modem: Add __ofono_modem_foreach_registered_atom 2011-03-30 13:04:42 -05:00
Denis Kenzior 192c0b62f4 modem: Remove more un-needed code 2011-03-30 13:04:31 -05:00
Denis Kenzior 6c9a6b064f network: Remove un-needed code
With the new add_atom_watch semantics the foreach statement is not
needed.
2011-03-30 12:38:14 -05:00
Mika Liljeberg 0eedf42921 core: remove redundant code 2011-03-30 12:33:54 -05:00
Mika Liljeberg 3c19134524 core: notify watches of already registered atoms 2011-03-30 12:26:19 -05:00
Philippe Nunes 5ba49490c8 stk: Handle user termination for Send DTMF 2011-03-30 12:07:49 -05:00
Denis Kenzior 91d8423458 stkagent: typedef renaming from previous commit 2011-03-30 12:07:49 -05:00
Philippe Nunes 70ae73d78b stkagent: Add stk_agent_display_action method 2011-03-30 12:07:49 -05:00
Frédéric Danis 3c3d00dac8 netreg: add +COPS support for HFP emulator 2011-03-29 21:52:37 -05:00
Denis Kenzior a23cc178be gnss: Rework logic flow for exceptional conditions 2011-03-28 18:06:58 -05:00
Denis Kenzior 7ae093b97e gnss: Minor style fix 2011-03-28 18:06:58 -05:00
Denis Kenzior 62d4037c38 gnss: Tweak error 2011-03-28 18:06:58 -05:00
Denis Kenzior 8b2d2b3641 gnss: No need to set this to FALSE
The structure is already zerod during g_try_new0
2011-03-28 18:06:58 -05:00
Denis Kenzior 7ce3648711 gnss: Minor style tweak 2011-03-28 18:06:58 -05:00
Denis Kenzior 7358049a58 gnss: block send_element if we have no agent 2011-03-28 18:06:58 -05:00
Jarko Poutiainen 206baad15b ofono.conf: add positioning agent interface 2011-03-28 18:06:58 -05:00
Denis Kenzior 626750d8a7 gnssagent: Unify sending functions 2011-03-28 18:06:58 -05:00
Denis Kenzior bafe9f2de2 gnssagent: Minor style tweaks 2011-03-28 18:06:58 -05:00
Denis Kenzior c57843bd29 gnss: Remove unneeded parameter to gnss_agent_new 2011-03-28 18:06:58 -05:00
Jarko Poutiainen c0b0188825 src: add gnss atom and agent implementation 2011-03-28 18:06:58 -05:00
Jarko Poutiainen d451195c82 src: add atom type for gnss 2011-03-28 18:06:58 -05:00
Denis Kenzior 6308af8e4d Revert dun: Add ATX command in emulator (X0 only)
This reverts commit 420ec0146a.

ATX is already implemented in gatchat/gatserver.c
2011-03-28 11:21:12 -05:00
Olivier Guiter 420ec0146a dun: Add ATX command in emulator (X0 only) 2011-03-25 12:35:07 -05:00
Frédéric Danis f7f6fd75ae voicecall: fix voicecalls_release_queue
voicecalls_release_queue uses struct ofono_call instead of
struct voicecall (which is used in "calls" list parameter and
function voicecalls_release_next)
2011-03-24 13:29:49 -05:00
Mika Liljeberg b52c06210c gprs: fix memory leak 2011-03-24 13:22:46 -05:00
Frédéric Danis 9edf68c553 common: fix buffer length in phone_number_to_string
update buffer length related to OFONO_MAX_PHONE_NUMBER_LENGTH change
78c1e96bf9
2011-03-23 15:02:48 -05:00
Olivier Guiter 351c701aac emulator: add support for +GCAP 2011-03-23 15:00:12 -05:00
Jeevaka Badrappan 8e6becc57e stk: Fix getenv failure case 2011-03-23 09:54:46 -05:00
Lucas De Marchi 47ee314200 voicecall: Fix pause character validation
manager_tone() converts all tone chars to uppercase. Since everywhere we
check for both 'p' and 'P' for a pause, tone_queue() should also check
both before claiming the string is invalid.
2011-03-21 14:03:28 -05:00
Denis Kenzior 15abdeee68 sms: Rework tx_state logic
Using the enum which has a value of zero (PENDING) by default created
some problems.  Use a slightly modified version of the logic and consume
less storage to boot.
2011-03-18 18:31:14 -05:00
Denis Kenzior 9a37a672bf sms: Move CancelMessage(o) method
Move this method to the Message Cancel() method instead and introduce
new __ofono_sms_txq_cancel API
2011-03-18 18:31:14 -05:00
Lucas De Marchi 458ef95e5d sms: remove check for impossible NULL condition
tx_next() must never be called with entry == NULL and currently it
was already being dereferenced before making this check. Thus just
remove it.
2011-03-18 18:31:14 -05:00
Lucas De Marchi 21da71d544 sms: allow message submission to be cancelled
Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Denis Kenzior 7dcae49cc5 sms: Don't leak memory, even in bizarre conditions 2011-03-18 18:31:14 -05:00
Lucas De Marchi 7a7c0717f5 sms: factor out 'remove entry' from tx_finished()
Refactor tx_finished() and create a function to remove an entry from the
tx queue. This function will be used also when a message is cancelled.
Thus, handle the case in which state is MESSAGE_STATE_CANCELLED as well.

Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Lucas De Marchi 888e07863b message: add cancelled state
Based on patch from Yang Gu <gyagp0@gmail.com>
2011-03-18 18:31:14 -05:00
Bertrand Aygon 0403b341ca smsutil: fix a memory leak
This was reported by cppcheck.
2011-03-18 11:29:06 -05:00
Christian Lam fd6cc036f6 src: add initial CDMA Connection Manager support 2011-03-17 14:11:50 -05:00
Jeevaka Badrappan b5950e2391 sms: limit the sms sending retry
If sending of SMS fails, then oFono core will try to resend it after
n * 5 seconds(n = retry count). Due to this, conformance test case
27.22.8 sequence 1.4 fails(refer 31.124 spec). Plan is to limit the
failue codes for which the retry will be done. This patch allows the
retry if the failure is only due to network timeout. For all the
other failure cases, retry is not done.
2011-03-17 12:23:35 -05:00
Jeevaka Badrappan 7de1717d42 stk: fix issue with Get Inkey variable timeout 2011-03-16 21:36:11 -05:00
Denis Kenzior c8b5143a03 call-forwarding: Don't update from sim if cached
If we have already cached the settings, then there's no need to update
them from the SIM, even if a SIM refresh was performed.
2011-03-15 21:22:35 -05:00
Andrzej Zaborowski 643144aafb call-forwarding: update EFs changed by SIM refresh 2011-03-15 21:18:17 -05:00
Andrzej Zaborowski 2211583953 message-waiting: Watch for sim file refreshes 2011-03-15 20:55:51 -05:00
Denis Kenzior 788a91402e sim: Handle an error condition better 2011-03-15 20:51:28 -05:00
Andrzej Zaborowski 9c2af56c18 sim: Watch for changes to EFimg files and EFiidf 2011-03-15 20:20:59 -05:00
Andrzej Zaborowski f2a82b8e8d sim: Watch for changes to EFmsisdn and EFsdn 2011-03-15 20:20:25 -05:00
Andrzej Zaborowski 0550553c87 sim: Split out sim context into early and main
And watch for relevant file changes on the early context.
2011-03-15 20:11:33 -05:00
Denis Kenzior 88402f02b2 gprs: Core changes for IPv6 support 2011-03-15 17:14:23 -05:00
Denis Kenzior 3d71a15c74 gprs: Move settings structure
Move the settings structure from pri_context to ofono_gprs_context in
preparation for new IPv6 support APIs.
2011-03-15 17:11:58 -05:00
Denis Kenzior 91a9425f21 gprs: Add support for dual stack contexts 2011-03-15 17:11:58 -05:00
Denis Kenzior ae096831e5 gprs: Also reset active in release_context 2011-03-15 17:11:58 -05:00
Mika Liljeberg 35e1f55c9a gprs: factor out common code 2011-03-15 17:11:58 -05:00
Guillaume Zajac 6ca4d780db emulator: fix some indentation issues 2011-03-15 09:39:26 -05:00
Guillaume Lucas 4ff9cf9a27 simfs: fix GLib-CRITICAL warning
During modem release, when there is no SIM card, a GLib-CRITICAL
issue occurs during the free of the sim fs context.
2011-03-11 14:57:31 -06:00
Andrzej Zaborowski 1a4299b8eb stk: fix issue with null data object
This will let the caller correctly detect NULL alpha id.
2011-03-11 14:39:58 -06:00
Denis Kenzior 4dd654ddf4 voicecall: Refactor held and mpty notify logic 2011-03-11 13:50:29 -06:00
Denis Kenzior 915d4dc4bd voicecall: Minor whitespace fix for previous commit 2011-03-11 13:18:36 -06:00
Andras Domokos 0626ff6af8 voicecall: implement SSN handling functions 2011-03-11 13:15:38 -06:00
Andras Domokos 4a36b93d6a ssn: remove SSN atom completely 2011-03-11 13:08:51 -06:00
Andrzej Zaborowski 4b6d1b1878 stk: Handle Refresh if also performed by modem 2011-03-02 23:29:54 -06:00
Marcel Holtmann 9ab7c19f69 build: Fix wrong include of public header 2011-03-01 23:07:50 -08:00
Lucas De Marchi 413eb0b8f7 location-reporting: don't add client-exit watch too early
Wait until driver gives us a file descriptor to start watching for
client exit. This fixes a race when client exits before the driver
calls location_reporting_enable_cb().
2011-03-01 15:48:08 -06:00
Andrzej Zaborowski 2443cdef49 stk: Make sure to reset respond_on_exit
This fixes a crash spotted by Lasse Kunnasluoto documented at
http://lists.ofono.org/pipermail/ofono/2011-February/009211.html
2011-02-28 16:14:50 -06:00
Antoine Reversat 7f02e2feeb voicecall: Add CNAP debugging ofono voicecall 2011-02-25 14:21:14 -06:00
Denis Kenzior 05c378bae9 sim: Document fall through case in switchcase 2011-02-25 11:53:10 -06:00
Jussi Kangas 07c7308581 sim: check lock state with call meter 2011-02-25 11:51:48 -06:00
Jussi Kangas c5b321e768 sim: Expose the __ofono_sim_recheck_pin API 2011-02-25 11:51:18 -06:00
Jussi Kangas 9007bf6392 sim: Do not teardown SIM state when PIN2 is asked
We should not tear down the SIM state if PIN2 is being asked for, or if
PIN2 is blocked and PUK2 is being asked.

We also want to continue with SIM initialization if the modem requires
PIN2 / PUK2 for some reason.
2011-02-25 11:47:23 -06:00
Jessica Nilsson b4c91cd301 simutil: Add missing SIM enum 2011-02-25 17:21:08 +02:00
Frédéric Danis 1554854be0 emulator: add support of void parameters in CMER 2011-02-24 14:01:29 -06:00
Paavo Leinonen 82b75c0bb6 common: '+' is not valid phone number anymore
Reject phone number if it contains only plus sign.
2011-02-24 09:46:48 -06:00
Denis Kenzior 0aa405b48d emulator: Remove unneeded parens 2011-02-24 09:46:28 -06:00
Rafael Ignacio Zurita f6a2b25771 location-reporting: add atom implementation 2011-02-23 17:18:06 -06:00
Denis Kenzior 991f32aa5c emulator: return if SLC is not yet established 2011-02-23 14:07:04 -06:00
Frédéric Danis bee05efc2a emulator: add BRSF support 2011-02-23 14:05:19 -06:00
Frédéric Danis c8f3472e25 emulator: add CMER support 2011-02-23 13:51:01 -06:00
Denis Kenzior 964ae3606a emulator: Reflow the code slightly 2011-02-23 11:17:28 -06:00
Frédéric Danis f079d00b4d emulator: add CIND support 2011-02-23 11:11:53 -06:00
Frédéric Danis 2524bbffdd emulator: add support of indicators 2011-02-23 11:11:18 -06:00
Frédéric Dalleau d1062d0e4e emulator: Disable echo for hfp emulators 2011-02-23 09:31:07 -06:00
Denis Kenzior d187f9fc8c emulator: fix whitespace corruption 2011-02-19 16:05:54 -06:00
Gustavo F. Padovan 19e09511b2 emulator: add dialing support
It handles client ATD*99# request and then initiate the PPP negotiation.
IP forward through the new ppp interface is not done yet.

Initially based on patches from Zhenhua Zhang <zhenhua.zhang@intel.com>
2011-02-18 13:20:29 -06:00
Denis Kenzior e8553f5337 sim: Check for SIM lockout condition
When a user tries to lock/unlock/change a PIN and enters it wrongly
several times, it is possible to lock themselves out.  In this case we
should drop to a pre-sim state, wait for the user to enter the PUK and
re-init the sim.
2011-02-18 11:28:43 -06:00
Denis Kenzior 5543d935c5 sim: Move stuff around and remove forward decl 2011-02-18 11:28:43 -06:00
Denis Kenzior 5d626b6967 sim: move stuff around 2011-02-18 11:28:43 -06:00
Andrzej Zaborowski f7d4643cc5 stk: Partially handle Refresh command
Only the four "NAA initialisation" modes are handled at the moment.
2011-02-17 15:16:34 -06:00
Denis Kenzior 7f43fc0f69 cbs: Set topics on EFcbmid change only if powered 2011-02-17 15:09:17 -06:00
Andrzej Zaborowski 9e640a246a cbs: Watch for changes to relevant SIM files 2011-02-17 15:09:17 -06:00
Andrzej Zaborowski 1d38e7e075 network: Watch for changes to relevant SIM files 2011-02-17 15:09:16 -06:00
Andrzej Zaborowski 85644e913b voicecall: Watch for changes to relevant SIM files 2011-02-17 15:09:16 -06:00
Denis Kenzior ad181b690b sim: Tweak the behavior of sim_refresh slightly
Instead of notifying everyone of sim_inserted condition, we should
simply notify the modem directly.  It is the only one interested in this
particular change.

This partly reverts an earlier commit:
9498ad6b5633e350eb529f8efbe08270d95c8003
2011-02-17 15:09:16 -06:00
Andrzej Zaborowski 131d86a2f9 sim: Implement basic Refresh 2011-02-17 15:09:16 -06:00
Andrzej Zaborowski 5815d9547c modem.c: Handle SIM Resets
The assumption so far was that SIM state would only go from
NOT_PRESENT -> INSERTED -> READY -> NOT_PRESENT because there's
no method to unauthenticate from SIM without removing.  We need to
be able to switch to INSERTED when SIM is being reset,
reinitialised, etc. because going to NOT_PRESENT and then
immediately INSERTED would be logically wrong.
2011-02-17 15:09:16 -06:00
Frédéric Danis afe16ba22a emulator: always create emulators in offline state
this allows to fix problem when atom created in online state
are destroyed when modem goes to offline state
2011-02-17 11:25:27 -06:00
Frédéric Dalleau 13cff03373 emulator: unref GIOChannel after creation 2011-02-17 10:07:52 -06:00
Denis Kenzior 4406da382c devinfo: Handle BT DUN +GMI/+GMM/+GMR commands 2011-02-16 00:23:44 -06:00
Frédéric Danis 421c55bdac emulator: Handle multiple emulator types 2011-02-16 00:23:44 -06:00
Denis Kenzior 0fed733e9b emulator: Initial public API implementation 2011-02-16 00:23:44 -06:00
Denis Kenzior 32b4298bfe sms: return immediately if cached flag is set 2011-02-10 11:08:47 -06:00
Denis Kenzior 3e69defe86 modem: Tweak online & powered watch APIs 2011-02-10 00:34:47 -06:00
Denis Kenzior 09bb5f7554 emulator: Add basic emulator skeleton 2011-02-10 00:34:47 -06:00
Denis Kenzior 458fe585a0 modem: Fix up previous commit 2011-02-10 00:27:01 -06:00
Guillaume Zajac 2b50146a21 modem Add powered watch API 2011-02-10 00:27:01 -06:00
Denis Kenzior 50c3d98ff3 simfs: Fix leaking of the voicecall context
When we're shutting down all atoms are removed and the voicecall context
does not have a chance to be freed.  Make sure simfs frees it.
2011-02-10 00:27:01 -06:00
Denis Kenzior fb7e6652d2 call-barring: Remove unneeded variable
This was forgotten by the previous patch
2011-02-09 21:03:45 -06:00
Andras Domokos 746ee088f7 call-barring: removed +CSSI type SS notifications 2011-02-09 21:03:45 -06:00
Denis Kenzior 566c60a402 gprs: Fixup error path
When we try to register the GPRS D-Bus interface and fail for some
reason, calling gprs_unregister is not really kosher since much of the
initialization has not yet been done.  Call an intermediate function
instead.
2011-02-08 21:55:42 -06:00
Jukka Saunamaki 7243af46fa gprs,gprs-provision: add SPN to provisioning API 2011-02-08 21:48:54 -06:00
Denis Kenzior e0d777a655 core: free GError objects returned by glib 2011-02-08 16:48:52 -06:00
Denis Kenzior a8f15c5cf3 sim: Fixup compiler complaints
src/sim.c:2396: error: comparison between signed and unsigned integer
expressions
src/sim.c:2396: error: comparison between signed and unsigned integer
expressions
2011-02-08 10:19:52 -06:00
Jussi Kangas a8671fe1f7 sim: Allow usage of SIM codes longer than 8 digits
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer
than the default 8 digits.
2011-02-08 10:19:52 -06:00
Denis Kenzior 50f1b7e943 voicecall: Fix check for ECT pre-conditions
We must have 1 Dialing / Alerting / Active call and a single
non-multiparty held call.
2011-02-07 15:53:31 -06:00
Denis Kenzior b97399ce12 simfs: Add function to notify all file watches 2011-02-07 13:35:41 -06:00
Denis Kenzior 53d8bbfe29 sim: Add implementation of sim file watching API 2011-02-07 12:26:50 -06:00
Denis Kenzior 417b445eaf simfs: Add file changed watches to simfs contexts 2011-02-07 12:25:46 -06:00
Denis Kenzior 0eed0db9fe sms: Minor style fix 2011-02-06 23:47:17 -06:00
Denis Kenzior 960310f8b1 sms: Be more paranoid when loading SMS settings 2011-02-06 23:47:17 -06:00
Denis Kenzior 9086328508 sms: Use a better pattern for bearer_from_string 2011-02-06 23:47:17 -06:00
Denis Kenzior 40926f1951 gprs: Be a bit more paranoid when loading settings 2011-02-06 23:47:16 -06:00
Aki Niemi bef5e1773c sms: Add alphabet support to SMS atom 2011-02-06 23:47:16 -06:00
Marcel Holtmann 4be27988ff plugin: Allow colon as plugin name separator 2011-02-06 19:25:58 -08:00
Jeevaka Badrappan 3a03fbf841 smsutil: M16 coding style fix 2011-02-05 07:05:47 -08:00
Jeevaka Badrappan 4d6eaf121c modem: M16 coding style fix 2011-02-05 07:05:32 -08:00
Denis Kenzior b7f8fc6f83 smsutil: Fix compilation 2011-02-03 14:37:00 -06:00
Aki Niemi cd1e58bd20 smsutil: Add alphabet support to encoding 2011-02-03 14:24:00 -06:00
Denis Kenzior d7d24f55ee util: Fix convert_utf8_to_gsm_best_lang logic 2011-02-03 14:18:16 -06:00
Aki Niemi cfb8b40a04 util: Add best dialect picker API 2011-02-03 14:16:16 -06:00
Denis Kenzior 5f3701cda5 util: Use gboolean for returning success / failure 2011-02-03 13:50:42 -06:00
Aki Niemi a1dbd89052 util: Refactor conversion table handling 2011-02-03 13:44:45 -06:00
Denis Kenzior 3f798c4741 core: Minor style tweaks 2011-02-03 13:15:29 -06:00
Andrzej Zaborowski a7a0cb1ed0 simfs: implement ofono_sim_context api 2011-02-03 13:13:37 -06:00
Andrzej Zaborowski 0cde90ff8e simfs: Use cache for sim_fs_read_info requests too.
There seems to be no reason that the fileinfo is cached for file
read or block read requests but not info_only requests, so move
code around to fix this.  O_RDWR is changed to O_WRONLY for the
cache file because the file is not being read in case of cache miss.
2011-02-03 11:01:40 -06:00
Aki Niemi 7d389054ac stk: Fix style issues 2011-02-02 11:03:21 +02:00
Aki Niemi 0b65fb30b0 stkutil: Remove trailing WS 2011-02-02 11:03:21 +02:00
Aki Niemi 59b00052d3 util: Fix style issue with long lines 2011-02-02 11:03:21 +02:00
Aki Niemi 15428cc2df sms: Fix indentation 2011-02-02 11:03:21 +02:00
Aki Niemi f0d855dd99 simutil: Remove trailing WS 2011-02-02 11:03:21 +02:00
Aki Niemi a8112dc1ea sim: Fix style issues 2011-02-02 11:03:21 +02:00
Aki Niemi 6ed9fe85a5 simfs: Add NULL check 2011-02-02 11:03:21 +02:00
Aki Niemi 5d0f67e786 message-waiting: Fix indentation 2011-02-02 11:03:21 +02:00
Aki Niemi 1af43cf7f0 cbs: Fix style issues 2011-02-02 11:03:21 +02:00
Aki Niemi a7f1a1583c call-volume: Fix style issue 2011-02-02 11:03:21 +02:00
Aki Niemi 9f619fd467 call-settings: Fix style issues 2011-02-02 11:03:21 +02:00
Aki Niemi 352795aba6 call-barring: Fix style issue 2011-02-02 11:03:21 +02:00
Aki Niemi ac6656b004 netreg: Fix coding style, M12 2011-02-02 11:03:21 +02:00
Aki Niemi 9be348714d call-forwarding: Remove useless curly brackets 2011-02-02 11:03:21 +02:00
Aki Niemi 8e90c3368c simutil: Add checks for NULL 2011-02-02 11:03:21 +02:00
Aki Niemi cfa179fe6b audio-settings: Fix style, use tabs to indent 2011-02-02 11:03:21 +02:00
Aki Niemi 03d00626f6 call-meter: Fix style issues 2011-02-02 11:03:10 +02:00
Lucas De Marchi 80a257098a common: implement initializer for ofono_call 2011-02-01 18:30:53 +01:00
Andrzej Zaborowski f2c73f0a52 simfs: Return from sim_fs_op_check_cached on error 2011-01-29 18:39:37 +01:00
Andrzej Zaborowski 882c0c2761 simfs: Reset op_source in simfs_read_block
If the block is not in cache or if this is the last block of a last
op in the queue, then fs->op_source might be left with the wrong
value.
2011-01-29 18:39:37 +01:00
Lucas De Marchi f5b1c95490 smsutil: do not allow larger file names
If file name had anything in the name after addr-msgid, it would be
parsed as well. This is not what we want, since there could be temporary
files lying around.
2011-01-28 20:32:09 -06:00
Denis Kenzior 971bdfbe48 smsutil: Don't bother renaming to the same name
In sms_tx_queue_load, if the resulting file is the same (which is quite
often the case) then don't bother trying to rename it.
2011-01-28 20:27:58 -06:00
Denis Kenzior 31a4c0025d smsutil: Fix corner case during tx queue loading
If there are extraneous files in the directory when it is being loaded,
then the index used to rename the old file into the new file can get out
of sync with what the core expects.
2011-01-28 20:20:56 -06:00
Denis Kenzior b1acc3c2db smsutil: simplify tx backup loading
glib functions as a rule do not use g_try* variations.  They use
g_malloc instead, so there's no need to check for out of memory
conditions.
2011-01-28 19:51:32 -06:00
Lucas De Marchi bc0386cb23 sms: restore pending tx messages from backup
Based on patch from: Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:55:31 -06:00
Lucas De Marchi f55447a39e sms: delete sent sms messages from backup
Based on patch from Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:14:41 -06:00
Lucas De Marchi 8305ddf321 sms: store pending tx pdus on disk
Based on patch from Kristen Carlson Accardi <kristen@linux.intel.com>
2011-01-28 16:14:12 -06:00
Pekka Pessi 579a1ebef3 message-waiting: check for NULL argument 2011-01-26 16:47:15 -06:00
Jeevaka Badrappan 12c3cf6969 voicecall: remove ofono_cug_option 2011-01-26 16:38:15 -06:00
Jeevaka Badrappan 0be9e23a90 stk: Fix issue in stk_alpha_id_set
Fixes the crash seen with the null alpha identifier.
Also removed the icon check since the decision of whether to inform the
user of the action is dependent entirely on whether the alpha identifier
is provided by the UICC.
2011-01-26 15:24:50 -06:00
Denis Kenzior dc3019031d gprs: Refactor gprs provisioning 2011-01-26 14:55:59 -06:00
Denis Kenzior a02387d0b5 gprs: Put back the id if context creation fails 2011-01-26 14:55:59 -06:00
Denis Kenzior 04ce2bd8cc gprs: write out MessageCenter and MessageProxy
These values were not written out to settings
2011-01-26 14:55:59 -06:00
Denis Kenzior 71e5278ce6 gprs-provision: Refactor provisioning 2011-01-26 14:55:58 -06:00
Jukka Saunamaki 7a5f06dd6a gprs: add gprs context provisioning 2011-01-26 14:55:58 -06:00
Jukka Saunamaki e225f56ed0 gprs-provision: add driver API sources 2011-01-26 14:55:58 -06:00
Jukka Saunamaki feee571bba ofono.h: add gprs-provision 2011-01-26 14:55:58 -06:00
Aki Niemi ba3276a8ff simutil: Add EFcsp file and service group IDs 2011-01-26 10:38:56 +01:00
Marcel Holtmann ed99980cd3 modem: Simplify the modem lockdown modification 2011-01-26 09:51:41 +01:00
Marcel Holtmann 8637e31d1d modem: Be a bit more paranoid with lock_owner reset 2011-01-26 09:48:48 +01:00
Rémi Denis-Courmont 8c88ccaad9 modem: do not allow more than one client to lock down 2011-01-26 09:46:42 +01:00
Lucas De Marchi 3ef33522e7 call-settings: use enum values
Use the enum values defined for CLIP, CNAP, CLIR, COLP and COLR.
2011-01-25 23:33:20 -06:00
Rafael Ignacio Zurita 4eda451c03 common: add function to validate long numbers
Also, adapt voicecall to use the new function for outgoing calls.
2011-01-25 14:12:24 -06:00