Commit Graph

1166 Commits

Author SHA1 Message Date
Denis Kenzior fd6d9f9fc7 Fix: Don't pass ofono_network_operator structures 2009-10-29 15:28:26 -05:00
Denis Kenzior 177c9672d1 Fix: Also auto register when status is unknown 2009-10-29 14:21:04 -05:00
Denis Kenzior a25f11862d Fix: Quiet compiler warning 2009-10-29 14:18:58 -05:00
Denis Kenzior 7ac963a26f Refactor: Make MBM driver actually use EMRDY 2009-10-29 14:18:58 -05:00
Denis Kenzior 8fed5a97fe Fix: Return EINPROGRESS as intended 2009-10-29 14:18:58 -05:00
Claudio Takahasi dab8e45d2e Fix message handling for autostart.
Current implementation of libdbus Request name is blocking, consequently
the first incomming message that triggered the service autostart is not
being processed properly.
2009-10-29 22:49:50 +09:00
Denis Kenzior 8f499841cf Fix: Refine logic for hangup 2009-10-29 00:10:03 -05:00
Denis Kenzior 30cc6d6f4b Fix: This hack is no longer necessary 2009-10-28 23:40:04 -05:00
Denis Kenzior d3778dde97 In the simple single active call case, use hangup 2009-10-28 23:39:15 -05:00
Denis Kenzior b3dccdfd54 Fix: Don't pass the indexes
These can be obtained inside the function anyway
2009-10-28 19:23:25 -05:00
Denis Kenzior 2c5ea9d4ee Fix: No need to set this to NULL 2009-10-28 17:40:35 -05:00
Denis Kenzior c41a8ced81 Cleanup: Fixup style 2009-10-28 17:40:06 -05:00
Zhenhua Zhang 4a36fc7c82 Add voicecall driver for Bluetooth HFP
HFP voicecall driver uses AT+CIEV indicator to notify call status
update according to Bluetooth HFP spec v1.5. This patch only adds single
call support.
2009-10-28 17:33:33 -05:00
Zhenhua Zhang 57aaf9813f Refactor: Move alloc/release id to atutil.c 2009-10-28 17:31:44 -05:00
Zhenhua Zhang 17903940c5 Refactor: Move & Rename functions to atutil.c
Move and rename call_compare and call_compare_by_status to atutil.c.
These will be utilized by other drivers, including hfpmodem.
2009-10-28 17:30:02 -05:00
Denis Kenzior 6d31b05b95 Cleanup previous patch 2009-10-28 16:56:45 -05:00
Ryan Raasch a55b43123f Add serial settings parser to modemconf plugin 2009-10-28 16:39:19 -05:00
Denis Kenzior f83bb9d7b7 Cleanup previous patch and update docs 2009-10-28 16:38:55 -05:00
Ryan Raasch c630300c99 Refactor: Capitalize g_at_tty option names 2009-10-28 16:36:33 -05:00
Denis Kenzior ba9f38b09e Fix: Take care of the logic for Dialing
The logic for dialing a call while other calls are in the system is a
bit more complicated than what was implemented.

There are several cases to consider:

- Active Call and Held Call
	In this situation we cannot dial, the user must drop one of the
	calls.
- Active Call and Waiting Call -> We have to put the active call on
  hold, unfortunately there is no standard command to do so without
  affecting the waiting call.  If the modem has a vendor specific
  implementation, then try to use that.

- Active Call only -> Put the active call on hold.  We use the
  swap_without_accept implementation (if exists) to be safe, otherwise
  we fall back to hold active calls.

- No Active calls -> Simply dial
2009-10-28 14:36:14 -05:00
Denis Kenzior 3ad86847ec Refactor: Avoid unnecessary forward declarations 2009-10-28 14:28:51 -05:00
Denis Kenzior 32f013f386 Refactor: Move more code around
Avoid unnecessary forward declarations
2009-10-28 14:27:39 -05:00
Denis Kenzior efd4f4b361 Refactor: Move code to avoid forward declaration 2009-10-28 14:23:51 -05:00
Denis Kenzior 466d70797f Refactor: Get rid of PENDING_FLAG in voicecalls
the pending variable was enough already.  Also refactor to use
__ofono_dbus_pending_reply to make the code much more readable.
2009-10-28 14:12:21 -05:00
Denis Kenzior db44cc0e1c Add utility to parse CLIR option 2009-10-28 13:06:34 -05:00
Denis Kenzior 24d8a5722b Refactor: replace netreg get_operator with mcc/mnc
The full operator information is useless as only mcc/mnc are really
required.  The internal structures will be changing soon
2009-10-27 19:47:52 -05:00
Denis Kenzior ed813455c2 Fix: Don't emit spurious Base Station Name signal 2009-10-27 14:41:43 -05:00
Denis Kenzior ed1d8a6fab Fix: Skip empty emergency numbers 2009-10-27 12:47:42 -05:00
Denis Kenzior 25ef3f8b18 Fix: Obscure crash when GPRS is not supported 2009-10-27 12:39:20 -05:00
Denis Kenzior 30609627bf Fix: Properly unregister context on exit 2009-10-27 12:39:09 -05:00
Denis Kenzior fa8eb23d3f Fix: Use driver_attached instead of attached 2009-10-26 18:30:41 -05:00
Denis Kenzior e63ea23557 Make netreg_update based on CREG, not CGREG 2009-10-26 17:26:19 -05:00
Denis Kenzior 4f85ee5c97 Simplify logic in netreg_update 2009-10-26 17:25:52 -05:00
Denis Kenzior 078e2bdc2a Fix unused variable warning 2009-10-26 17:00:35 -05:00
Denis Kenzior 4552b0c26a Don't cause an infinite loop 2009-10-26 17:00:18 -05:00
Denis Kenzior ae1192ba99 Get rid of the AFTER_ROAMING stuff 2009-10-26 16:58:24 -05:00
Denis Kenzior c7a113dbd2 Ignore gprs status when not attached/attaching 2009-10-26 16:57:21 -05:00
Denis Kenzior d5fe6dce96 Update attached status when gprs status changes 2009-10-26 16:56:52 -05:00
Denis Kenzior bc72cca91b Fix: notify_attached was only used when detached
The standard only specifies that the context might have been detached by
the network / mobile equipment.  Not attached.
2009-10-26 16:55:03 -05:00
Denis Kenzior e0603f0c68 Add a master function for updating attached state 2009-10-26 16:54:18 -05:00
Denis Kenzior fe974ea4f2 Fixup initialization logic 2009-10-26 16:20:36 -05:00
Denis Kenzior ca4f75ca0b Fix: Initialize registration statuses 2009-10-26 16:19:54 -05:00
Denis Kenzior 6f9b5be3d5 Fix: Reset netreg to 0 when unregistered 2009-10-26 16:18:17 -05:00
Andrzej Zaborowski 939be2adc2 Refactor: Make GPRS use information from netreg 2009-10-26 13:34:41 -05:00
Andrzej Zaborowski 53414483d3 Fix: Don't attach if searching
Don't ask driver to attach GPRS if modem is already searching for an
operator.
2009-10-26 13:32:26 -05:00
Andrzej Zaborowski 4779ed055a Fix interpretation of new GPRS registration status signal. 2009-10-26 13:29:41 -05:00
Denis Kenzior 50ae504bc6 Fix: Fix segfault from improperly initialized data 2009-10-24 12:39:31 -05:00
Denis Kenzior 1af138d6ec Fix: Register for E2NAP notifications 2009-10-24 12:39:31 -05:00
Denis Kenzior 1a80f85994 Fix: ENAP=0 is the only way to use this 2009-10-24 12:39:31 -05:00
Marcel Holtmann 0bf1401589 Remove support for call forwarding and barring from MBM plugin 2009-10-25 01:14:26 +09:00