Commit Graph

518 Commits

Author SHA1 Message Date
Denis Kenzior d76f674794 Cleanup: Do not expose DBus details to drivers 2009-09-29 14:56:21 -05:00
Zhenhua Zhang f5e24369ca Add call volume interface to adjust speaker and mic volume 2009-09-29 14:56:21 -05:00
Denis Kenzior 274cd012c4 Fix: Report registered modems properly 2009-09-28 11:18:50 -05:00
Denis Kenzior bb746b3e9d Fix efli being removed prematurely 2009-09-28 11:18:50 -05:00
Marcel Holtmann 0e9f9d8bc8 Fix segmentation fault from SIM reading on Calypso modem 2009-09-25 14:07:33 -07:00
Denis Kenzior bbe49a1b6e Fix whitespace 2009-09-24 10:23:37 -05:00
Denis Kenzior 5b2852d8b4 Add initial support for LockedPins property 2009-09-24 10:23:37 -05:00
Denis Kenzior dc644108bf Ignore EFli if the first entry is empty 2009-09-23 17:28:15 -05:00
Andrzej Zaborowski c98e99aef2 Remove unused struct field. 2009-09-23 14:27:49 -05:00
Andrzej Zaborowski cb19aa987f Rename eflp_format to efli_format, semantically opposite. 2009-09-23 14:27:26 -05:00
Denis Kenzior cfcf7e6516 Simplify: Use dbus_message_iter_get_args 2009-09-22 11:24:21 -05:00
Denis Kenzior b8dcd905fb Remove unused structure 2009-09-22 11:24:21 -05:00
Marcel Holtmann 5f4340f186 Fix unused variable issue from last commits 2009-09-23 10:47:29 -07:00
Denis Kenzior 863210f7c0 Fix: Comparison should be against negative errno 2009-09-22 09:36:55 -05:00
Denis Kenzior 17cedf0eb7 Don't try to Lock or Unlock SIM PIN2 2009-09-22 00:07:07 -05:00
Denis Kenzior 2c4c27654c Make sure we try to lock/unlock/change only PINs 2009-09-22 00:07:07 -05:00
Denis Kenzior 5fd083f6f4 Refactor: Do not use int instead of enum
27.007 does not define an enumeration for SIM PIN/PUK values.  This
should be handled by ofono enum instead
2009-09-22 00:07:07 -05:00
Denis Kenzior f599036ed0 Add LockPin and UnlockPin functions 2009-09-22 00:07:06 -05:00
Denis Kenzior 63416e2851 Rearrange sim password enum 2009-09-22 00:07:06 -05:00
Denis Kenzior d67ded70ea Fix: Make sure pin isn't empty 2009-09-22 00:07:06 -05:00
Denis Kenzior 1faf467d87 Get rid of 1 line function 2009-09-22 00:07:06 -05:00
Denis Kenzior 9f27be58bc Move some stuff around 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior b1c8b291f5 Assume sms is registered only when sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 6914b11269 Assume cbs is registered after sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 84515b9d39 Assume netreg is registered when sim ready 2009-09-22 00:07:06 -05:00
Denis Kenzior 91555b9165 Refactor language preference parsing
- Make sure to handle capital / lower case ISO639 strings
- Properly handle the case where files are empty / unused
- Don't emit the signal unless the preferences are useable
- Simplify the logic and be a bit more readable
2009-09-17 14:10:12 -05:00
Denis Kenzior ef5eb6139a Simplify function logic 2009-09-17 12:18:48 -05:00
Denis Kenzior ee33bc6ab7 Use g_ascii_isdigit 2009-09-17 12:17:42 -05:00
Denis Kenzior 8dd574d842 Fix potential memory leak 2009-09-17 12:04:56 -05:00
Denis Kenzior b3ec3f5fef Rename function to be more clear 2009-09-17 12:04:45 -05:00
Denis Kenzior e2a4c4bee8 Use existing function for converting to iso639 2009-09-17 11:53:37 -05:00
Denis Kenzior 26f15e30a8 Assume CBS is registered when SIM ready 2009-09-17 11:53:19 -05:00
Andrzej Zaborowski 623c23c12f Present list of preferred languages on SimManager interfce.
We try to detect the old (2G / 2G+, 51.011) EFlp format and deal
with the file contents accordingly.
2009-09-17 11:42:49 -05:00
Denis Kenzior 0698fc2788 Split populate modem driver method
Introduce two new methods
	- pre_sim - SIM is not inserted or locked.  This should populate
	  the modem with atoms that can be used without the SIM.
	  Generally this is the devinfo atom, the sim atom and the voice
	  call atom (emergency calls only)
	- post_sim - SIM is ready.  This method should populate the
	  modem with the remaining atoms
2009-09-17 10:14:02 -05:00
Denis Kenzior 971ef1c305 Add reading of various CBS related EFs
- EFcbmi - Cell Broadcast Identifiers
- EFcbmir - Cell Broadcast Identifier Ranges
- EFcbmid - Cell Broadcast Identifiers for Data Download
2009-09-16 17:09:58 -05:00
Denis Kenzior b83c7acfc9 Fix: do not leak memory, cleanup the topic list 2009-09-16 04:53:41 -05:00
Marcel Holtmann 75719f0c01 Fix compilation error with missing return value 2009-09-12 09:01:05 +02:00
Denis Kenzior 03ce875a7b Support base station name cell broadcasts
If we receive an immediate cell-specific cell broadcast, report it as
the base station id up to netreg atom
2009-09-11 21:38:08 -05:00
Denis Kenzior 6f86a8d0a6 Add utility for setting the netreg base station 2009-09-11 21:35:31 -05:00
Denis Kenzior d54f588355 Enable registration / location updates for CBS
- This tracks the current Location Area Code / Cell ID and PLMN.  If any
  of these change, the assembly is notified.  This is required to
  implement proper CBS message duplicate detection according to 23.041
2009-09-11 16:25:30 -05:00
Denis Kenzior f03b97c635 Add network registration status watch capability 2009-09-11 16:25:15 -05:00
Denis Kenzior 227ac8f2e0 Remove extra free of cbs assembly 2009-09-11 15:33:51 -05:00
Denis Kenzior 5e754c6518 Create watchlists during register 2009-09-11 14:06:18 -05:00
Denis Kenzior 8858669857 Port sim ready watch to __ofono_watchlist 2009-09-11 14:05:39 -05:00
Denis Kenzior 32fc30fa02 Refactor various watch functions
Use a common core kernel for all the watcher registrations /
notifications.  This is now done in watch.c
2009-09-11 12:39:53 -05:00
Denis Kenzior 27cfc00eba Add netreg getter functions
- Get Location, CellID
- Current Operator
- Registration Status
- Technology
2009-09-10 18:19:48 -05:00
Denis Kenzior 40ef883fe4 Add ability to expire PLMN wide messages 2009-09-10 17:40:16 -05:00
Denis Kenzior d498ec9f2a Fix unused variable 2009-09-10 16:29:56 -05:00
Andrzej Zaborowski 6f675b3148 Keep modem->powered_pending up to date after set_powered.
Without this once a request to power up the modem fails, modem.c won't
retry even when asked.
2009-09-10 16:29:56 -05:00