Commit Graph

663 Commits

Author SHA1 Message Date
Denis Kenzior 06632f8192 Add ProposeScan method
This is the replacement for automatic operator scanning
2009-11-18 12:49:26 -06:00
Denis Kenzior ac144e40a2 Fix: Use a different function for initial register
Just in case pending variable gets set to something
2009-11-18 12:28:45 -06:00
Denis Kenzior d87e0e86f7 Refactor: Reshuffle bit flags 2009-11-18 12:21:45 -06:00
Denis Kenzior bbfb17366c Refactor: Remove period operator scan 2009-11-18 12:21:30 -06:00
Denis Kenzior cd9b7c07b6 Refactor: Get rid of PENDING flag in netreg 2009-11-18 12:20:39 -06:00
Denis Kenzior 41050ef7b1 Implement CGREG query
Some modems do not properly send CGREG notifications when the context is
attached / detached.  We manually query the registration state of GPRS
to make sure that if the modem is indeed attached, the state is
reflected properly
2009-11-18 10:34:23 -06:00
Denis Kenzior d111fc3cee Refactor: Move functions up to avoid declaration 2009-11-18 10:34:00 -06:00
Denis Kenzior ec7f95de7e Fix: Again, uncross the wires 2009-11-18 10:33:09 -06:00
Denis Kenzior acb4e127c6 Fix: Uncross the wires 2009-11-18 10:00:04 -06:00
Denis Kenzior 9b4e898702 Support Settings property of PrimaryContext 2009-11-17 18:55:32 -06:00
Martin Xu 26413141be Add ofono_gprs_context_get_modem 2009-11-17 15:56:31 -06:00
Denis Kenzior 6b223870bd Fix: Make sure we don't dial with an incoming call 2009-11-13 16:04:45 -06:00
Denis Kenzior 27cb260d07 Refactor: Simplify code and add have_incoming 2009-11-13 16:03:33 -06:00
Denis Kenzior f9580e7b3e Revert: Go back to the old dial behavior
The driver has a better idea of how to handle ATD being invoked when
a waiting/held/active call(s) is/are already present.  Generally most
modems will swap the call automatically preserving the state of the
waiting call.

We do block dialing another call while a dial is still in progress.
2009-11-13 15:29:30 -06:00
Denis Kenzior 0b4b41c6a9 Style: add new line 2009-11-13 00:05:42 -06:00
Denis Kenzior 9a703cd378 Use release_all_held to release a single held call 2009-11-12 19:16:32 -06:00
Denis Kenzior e9341c5203 Remove Voicecall.Busy method
According to 22.030, UDUB or CHLD=0 can only be invoked on waiting
calls.  Most AT command based modems do not support using CHLD=0 on an
incoming call.  So we remove the Busy method and invoke set_udub on
a call that is in the waiting state.
2009-11-12 19:16:31 -06:00
Denis Kenzior 7600c4b3ac Fix: Emit Manufacturer, not Serial 2009-11-11 22:09:36 -06:00
Zhenhua Zhang 0825070655 Fix: Invoke microphone_volume, not speaker 2009-11-11 15:51:23 -06:00
Denis Kenzior a4189db20f Add basic state saving for SMS atom
Message ID and Reference number for concatenated messages should be
persisted.
2009-11-05 17:06:21 -06:00
Denis Kenzior f14e7c30bc Add hooks to call into sms history for SMS atom 2009-11-05 16:47:12 -06:00
Denis Kenzior 9afdf1a35b Add SMS history capability 2009-11-05 16:46:43 -06:00
Denis Kenzior 61260c298f Refactor: Make SendMessage async
This commit does two things.  First it makes SendMessage an async
method, which returns only when the SMS message has been successfully
sent or failed.

This also adds a set number of tries that oFono will resubmit the PDU to
the SMSC.  If any fragment fails to be submitted, the entire send
message attempt is deemed a failure and an error is returned to the caller.
2009-11-05 16:44:22 -06:00
Denis Kenzior 1fb5d7191e Rename sms assembly path to sms_assembly from sms
Not to interfere with sms settings storage
2009-11-05 16:42:15 -06:00
Denis Kenzior 1cabf97fe8 Use localtime_r instead of localtime 2009-11-05 16:00:34 -06:00
Denis Kenzior 3c4dfdcb7f Refactor: Move SMS SendMessage to 1 recipient only 2009-11-05 10:27:25 -06:00
Denis Kenzior e75fef59f2 Fix: Load GPRS settings before finding netreg
GPRS Settings should be loaded before we try to find netreg atom and
potentially try to make the attach/detach decisions.
2009-11-05 10:25:59 -06:00
Denis Kenzior 24a7d9a673 Fix: Handle the case where only PLMN name is given
HFP does not allow the use of register / unregister or scan for operator
functionality.  It only allows the name of the operator to be given, not
even an MCC/MNC.  Handle this situation inside netreg atom.
2009-11-04 11:43:57 -06:00
Denis Kenzior ac5f67c46d Add ability to restore GPRS contexts from settings 2009-11-02 16:02:09 -06:00
Denis Kenzior 8d7f5245b4 Save GPRS context settings 2009-11-02 16:02:09 -06:00
Denis Kenzior 1ff069be5a Add Basic save/restore code for GPRS setting 2009-11-02 16:02:09 -06:00
Denis Kenzior 3c702b4d99 Limit the number of contexts that we manage 2009-11-02 16:02:09 -06:00
Denis Kenzior 708f7481b0 Update CreateContext API 2009-11-02 16:02:09 -06:00
Denis Kenzior 1f73c18257 Add utility to convert strings to context type 2009-11-02 16:02:09 -06:00
Denis Kenzior bf8e486f02 Fix: Default to type internet 2009-11-02 16:02:09 -06:00
Denis Kenzior cbe52b9a44 Fix: Quiet compiler warnings 2009-10-30 16:09:59 -05:00
Denis Kenzior 26804de94b Add checking for valid APN format 2009-10-30 15:54:32 -05:00
Denis Kenzior ee92dc0b62 Add utility to test for valid APN names 2009-10-30 15:52:29 -05:00
Denis Kenzior cc5701c76f Add saving / restoring of netreg settings 2009-10-30 15:23:27 -05:00
Denis Kenzior 6b46d7d363 Add utilities for settings management 2009-10-30 15:22:06 -05:00
Denis Kenzior 6b19de8c07 Fix: Remove unused header include 2009-10-30 13:20:31 -05:00
Denis Kenzior 66653ecfb7 Add Mode property to NetworkRegistration 2009-10-30 12:38:12 -05:00
Denis Kenzior fa33588d40 Fix: style issues 2009-10-30 12:37:23 -05:00
Denis Kenzior c5600c1be2 Fix: Refine the logic for CHLD=1 and CHLD=2 2009-10-30 12:02:43 -05:00
Denis Kenzior 252fd9eb52 Fix: Properly update technologies
When current operator is reported, update the technology list if the
tech information is available
2009-10-29 16:38:25 -05:00
Denis Kenzior a53440d648 Compress the operator list before processing 2009-10-29 16:33:29 -05:00
Denis Kenzior 22dc4e229f Add utility to compress plmns that vary by tech 2009-10-29 15:58:32 -05:00
Denis Kenzior 40adc85174 Refactor: Get rid of useless netreg parameter 2009-10-29 15:58:09 -05:00
Denis Kenzior 4e69a94a86 Refactor: Use Technologies instead of Technology 2009-10-29 15:57:02 -05:00
Denis Kenzior 47fa0fb883 Add utility to create a list of supported techs 2009-10-29 15:54:23 -05:00