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
7d7732d637
Don't treat READY CPIN result differently
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
3362de0010
Move SSN unsolicited notification activation
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
Marcel Holtmann
c4a5f3a483
Fix trailing whitespace
2009-09-18 13:56:03 -07:00
Denis Kenzior
599069e109
Add disconnection function
2009-09-18 13:33:41 -05:00
Denis Kenzior
a1e67482bb
Simplify cleanup logic
2009-09-18 13:33:22 -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
12e77a3c70
Convert all the modem drivers to the new API
2009-09-17 10:15:34 -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
35cb156ba9
Add sim api documentation
2009-09-16 17:09:58 -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
Aki Niemi
36198827ab
Miscellaneous clean-ups
2009-09-16 23:37:23 +03:00
Aki Niemi
866c394882
Add proper bootstrapping to phonebook driver
2009-09-16 23:37:23 +03:00
Aki Niemi
0b28b05678
gisi: Make reachability detection more robust
2009-09-16 23:37:23 +03:00
Aki Niemi
e3e5090b6a
Increase network scan/set timeout values
2009-09-16 23:37:23 +03:00
Denis Kenzior
cbe773330f
Make sure unit tests also use right pdu buffer len
2009-09-16 05:07:36 -05:00
Andrzej Zaborowski
6d2cf926f3
Check received PDUs fit in the buffer, fix buffer size.
2009-09-16 04:53:44 -05:00
Denis Kenzior
b83c7acfc9
Fix: do not leak memory, cleanup the topic list
2009-09-16 04:53:41 -05:00
Aki Niemi
a34849599b
Fix restrict keyword usage
2009-09-16 09:05:53 +03:00
Aki Niemi
795e65ad53
Add proper bootstrap using g_isi_verify()
2009-09-15 15:37:01 +03:00
Aki Niemi
b6e37fb792
Remove version query; use gisi/client.h instead
2009-09-15 15:36:11 +03:00
Aki Niemi
8bbd9a8560
gisi: Add ISI version and reachability check API
...
This patch adds an API for querying the ISI version of the resource
with which the client is associated. This information is only
available after g_isi_verify() has been called on the client. This is
because we use the version query message as a vehicle for reachability
checking.
2009-09-15 15:35:47 +03:00
Aki Niemi
bee4bf4d7d
Fix error reporting in phonebook driver
2009-09-15 11:17:39 +03:00
Aki Niemi
0aeb5f3dfd
Remove extra debug
2009-09-15 00:35:22 +03:00
Aki Niemi
af3f54ee43
Fix a possible but improbable leak
2009-09-15 00:20:54 +03:00
Marcel Holtmann
ee0555dda1
Fix compiler warnings on 64-bit systems
2009-09-14 14:10:15 -07:00
RISKÓ Gergely
e72d349483
Add introspection interface to the output of introspection calls
...
This provides better compatibility with some D-Bus clients, such as qdbus.
2009-09-14 14:08:07 -07:00
Aki Niemi
b2bdb41bc0
Fix to use gisi/iter.h to decode sub-blocks
2009-09-14 23:59:59 +03:00
Aki Niemi
e58d28f6b6
Adapt to changed sub-block iterator API
2009-09-14 23:43:57 +03:00
Aki Niemi
3cec9ac67b
Add support for long sub-block header
2009-09-14 23:43:17 +03:00
Aki Niemi
6c08fc8e50
Refactor to use gisi/iter.h
2009-09-14 16:21:35 +03:00
Aki Niemi
69ac9733f4
Modify to use the new alpha tag getter
2009-09-14 16:21:18 +03:00
Aki Niemi
a1ca8a9afa
Add and modify string getters
...
Add a getter for latin ASCII only tags, and change the alpha tag
getter. Turns out not all alpha tags in ISI are of the length-value
variety.
2009-09-14 16:21:06 +03:00
Aki Niemi
d7459f45fc
Coding style clean-ups
2009-09-14 14:53:35 +03:00