Denis Kenzior
89a4dc48d4
Update the isimodem driver to the new API
2009-10-29 15:29:55 -05:00
Aki Niemi
2a8159b21b
Fix conditional statement
2009-10-16 14:02:27 +03:00
Aki Niemi
9ca602c283
Fix: restrict keyword use breaking distcheck
2009-10-16 11:26:15 +03:00
Pekka Pessi
86b6cd91c9
isimodem/voicecall.c: initial version
...
Implementing all the voicecall methods. Tested with Nokia 2008 modems.
- problems in call creation are probably not reported properly
- deflect not implemented in modem, not properly tested
TODO: Clean up style issues and align with other drivers.
2009-10-16 11:18:52 +03:00
Aki Niemi
74cc9cb4b7
Refactor sub-sub-block handling
2009-10-16 11:18:52 +03:00
Alexander Kanavin
a781e3b1d9
Add isimodem drivers for call barring, forwarding and waiting
2009-10-14 22:05:13 +03:00
Pekka Pessi
d1d870ba7a
Refactor subblock iterators.
...
Always initialize iterators.
Try to avoid pointer arithmetics on NULL; in other words, move all pointer
arithmetics inside g_isi_sb_iter_init().
There are 4 different ways for representing sub blocks in ISI message:
- 8-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 8-bit sub_block_id/sub_block_len
- 8-bit sub_blocks count, 16-bit sub_block_id/sub_block_len
- 16-bit sub_blocks count, 16-bit sub_block_id/sub_block_len
The compact form g_isi_sb_iter_init() supports 8-bit sub_block count before
start of the sub blocks themselves and 8-bit sub_block_id and sub_block_len.
The full form g_isi_sb_iter_init_full() with explicit longhdr and sub_block
count supports all other cases.
2009-10-09 12:54:04 +03:00
Jukka Saunamaki
74c15989c9
Hack for reading EFSPN on isimodem sim driver
...
In the absence of low-level access to the SIM card, we're adding this
hack to expose the SPN using ISI's high-level access instead.
2009-10-07 14:45:46 +03:00
Denis Kenzior
12e77a3c70
Convert all the modem drivers to the new API
2009-09-17 10:15:34 -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
e3e5090b6a
Increase network scan/set timeout values
2009-09-16 23:37:23 +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
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
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
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
d7459f45fc
Coding style clean-ups
2009-09-14 14:53:35 +03:00
Aki Niemi
ddbd19a4be
Use gisi/iter.h for decoding sub-blocks
2009-09-14 14:34:27 +03:00
Aki Niemi
ffaba2b637
Clean up IMSI decoding
2009-09-14 14:33:31 +03:00
Aki Niemi
cfd40b2313
Remove trailing WS
2009-09-14 13:00:45 +03:00
Aki Niemi
4904479214
Remove unnecessary debug
2009-09-14 12:54:16 +03:00
Aki Niemi
d83b325a40
Add basic bootsrap for the SMS driver
2009-09-14 12:52:21 +03:00
Aki Niemi
bc7df10c92
Add preliminary CBS driver
2009-09-14 12:51:48 +03:00
Aki Niemi
1c2f4b6097
Add proper bootstrapping for netreg driver
...
Use the ISI version query to bootstrap the netreg driver.
2009-09-14 12:45:54 +03:00
Aki Niemi
843f0c07e2
Remove unnecessary debugs
2009-09-14 12:44:59 +03:00
Aki Niemi
e79d5ad208
Fix registration status decoding
2009-09-12 22:39:50 +03:00
Aki Niemi
d2a42c71dd
Fixes for proper coding style
2009-09-12 21:44:11 +03:00
Aki Niemi
3bfa5c47c0
Fix signal strength value calculation
2009-09-12 19:30:58 +03:00
Aki Niemi
df8a202e94
Add IMSI retrieval to sim driver
...
Modified patch originally provided by Jukka Saunamäki.
2009-09-12 18:58:18 +03:00
Aki Niemi
6ee21a3fc1
Fix to use new success/failure callback macros
2009-09-12 18:57:16 +03:00
Aki Niemi
6d258f529e
Add implementation of netreg driver
2009-09-12 18:42:42 +03:00
Aki Niemi
7507b73767
Clean up macros for success/failure callbacks
2009-09-12 18:36:22 +03:00
Denis Kenzior
10d4c54c30
Change plugins to the new ofono_modem_create api
2009-09-02 17:39:23 -05:00
Denis Kenzior
58d0aa72b2
Rename isi drivers to isimodem
...
Be more consistent with directory naming
2009-09-01 22:35:14 -05:00
Denis Kenzior
7ff85d9737
populate should return void
2009-09-01 22:29:02 -05:00
Denis Kenzior
9caa606bcc
Make remove functions not return anything
2009-09-01 22:27:08 -05:00
Denis Kenzior
422df0edfb
change int vendor to unsigned int vendor
2009-09-01 21:39:02 -05:00
Denis Kenzior
4064f4ba73
Add vendor flag capability to voicecalls
2009-09-01 18:14:59 -05:00
Denis Kenzior
e5577046f0
Add vendor flag capability to ussd
2009-09-01 18:14:58 -05:00
Denis Kenzior
afb0e2b854
Add vendor flag capability to ssn
2009-09-01 18:14:58 -05:00
Denis Kenzior
8d380f8fa0
Add vendor flag capability for sms
2009-09-01 18:14:58 -05:00
Denis Kenzior
aecf42646e
Add vendor flag capability to sim
2009-09-01 18:14:58 -05:00
Denis Kenzior
1fb9ecca46
Add vendor flag capability to phonebook
2009-09-01 18:14:58 -05:00
Denis Kenzior
271b042488
Add vendor flag capability to netreg
2009-09-01 18:14:58 -05:00
Denis Kenzior
c7d35dd039
Add vendor flag capability to devinfo
2009-09-01 18:14:58 -05:00
Denis Kenzior
933f803967
Add vendor flag to call-settings
2009-09-01 18:14:58 -05:00
Denis Kenzior
390bd82109
Add vendor parameter to call-meter
2009-09-01 18:14:57 -05:00
Denis Kenzior
7ee954b28a
Add vendor flag to call-forwarding
2009-09-01 18:14:57 -05:00
Denis Kenzior
15b1a733b0
Introduce vendor parameter to call-barring
2009-09-01 18:14:57 -05:00
Aki Niemi
74782318bd
Rename all files under drivers/isimodem/
2009-08-25 14:04:42 +03:00
Marcel Holtmann
70aab2a826
Convert to fully non-recursive build system
2009-08-24 23:49:40 -07:00
Aki Niemi
70440bcd0b
Add straw-man for rest of ISI modem driver
2009-08-24 15:47:17 +03:00
Aki Niemi
bc71ac101f
Fix typos
2009-08-24 13:14:52 +03:00
Aki Niemi
5562438c5c
Fix memory leak in ISI phonebook driver
2009-08-23 23:16:46 +03:00
Aki Niemi
53e575bd5c
Fix memory leak in isimodem.c
2009-08-22 18:00:58 +03:00
Aki Niemi
54a6cc6253
Move dump_msg() to isi.h as static inline
2009-08-22 15:37:34 +03:00
Denis Kenzior
b3e6dd8e51
Update the isi driver to the new modem driver api
2009-08-21 19:25:51 -05:00
Aki Niemi
77aa9c9621
Enable multi-modem support
...
This patch enables concurrent use of multiple ISI modems, e.g., all
connected via USB using cdc_phonet.
2009-08-21 16:31:17 +03:00
Aki Niemi
70e69ac452
Enable multiple instances of phonebook driver
2009-08-21 16:30:13 +03:00
Aki Niemi
f06c09d17a
Enable multiple instances of devinfo driver
2009-08-21 16:29:34 +03:00
Aki Niemi
621d584b4d
Move struct isi_data to private
2009-08-21 16:28:32 +03:00
Aki Niemi
a42ec65274
Refactor isidevinfo
...
Remove storing of pending request objects to linked list;
g_isi_client_destroy() will clear those properly. Fix naming of enums,
and use DECLARE_SUCCESS() macro.
2009-08-21 10:16:42 +03:00
Aki Niemi
a434d94169
Pass modem instance to phonebook driver
2009-08-21 10:06:40 +03:00
Denis Kenzior
e0ff90e6da
Rename ofono_modem_*_userdata
...
Rename ofono_modem_get_userdata to ofono_modem_get_data
Rename ofono_modem_set_userdata to ofono_modem_set_data
For consistency with other drivers
2009-08-20 18:19:21 -05:00
Denis Kenzior
ba851568f5
Fix unused variable pbd
2009-08-20 15:39:12 -05:00
Denis Kenzior
92e373f1c2
Fix return with no value warning
2009-08-20 15:39:12 -05:00
Denis Kenzior
fa330cafbd
Fix a bunch of warnings about mixed signedness
2009-08-20 15:39:12 -05:00
Denis Kenzior
7560049829
Fix implicit declaration of ofono_phonebook_create
2009-08-20 15:39:12 -05:00
Denis Kenzior
8be715dbb1
Update ISI driver for new devinfo API
2009-08-20 13:04:07 -05:00
Rémi Denis-Courmont
5e2a1745fb
Phonet: add modem parameter to ISI client API
2009-08-19 17:07:15 +03:00
Rémi Denis-Courmont
20f73898ec
gisi: provide modem identifier through Netlink API
2009-08-19 17:07:15 +03:00
Denis Kenzior
320f4e1780
Port over ISI modem driver to the new API
2009-08-14 12:10:05 -05:00
Alexander Kanavin
2076a044ec
Add ISI modem SIM phonebook support
...
This patch only provides access to the SIM phonebook. Note that the
interface to the SIM phonebook is quite slow, which may cause timeouts
on phonebooks with a large number of entries using the default D-Bus
timeout value.
2009-08-14 16:55:55 +03:00
Denis Kenzior
cb75833fc8
Rename ofono_modem_userdata
2009-07-29 16:44:16 -05:00
Denis Kenzior
3d1dd9d452
Fix unused variable warning
2009-07-13 22:33:48 -05:00
Marcel Holtmann
6b7fb7c9f9
Fix printf compiler warning with size_t data type
2009-07-14 05:03:39 +02:00
Aki Niemi
e56d92ce30
Fix isimodem segfault on modem removal
...
This fixes segfaults resulting either from destroying a NULL ISI
client, or when multiple ISI modems become available, and get removed
in the wrong order. To support multiple ISI modems concurrently, a
modem object needs to be exposed via the gisi API, and tracked by the
ISI driver. This is a TODO item to add.
2009-07-09 16:15:56 +03:00
Aki Niemi
b3a166abea
Fix error value to no error in success
2009-07-07 14:29:42 +03:00
Aki Niemi
5a09379263
Initialize to NULL
2009-07-07 14:18:11 +03:00
Aki Niemi
8411088d0c
Add modem attribute retrieval
...
Refactor isimodem.c to add support for querying modem attributes over
the ISI protocol.
2009-07-07 13:24:40 +03:00
Rémi Denis-Courmont
1206287664
Do not include <config.h> from headers
...
It should be included _first_ in all modules, and it is not proof
against multiple inclusions.
2009-07-03 07:54:25 -07:00
Aki Niemi
7d31520831
Add baseline for ISI modem driver
2009-06-25 10:03:27 +03:00