Commit Graph

78 Commits

Author SHA1 Message Date
Pekka Pessi a97a97147d Eliminated bool, true and false from gisi 2010-05-27 13:07:15 -05:00
Aki Niemi 1d7fe6aa5a gisi: Fix style issues 2010-05-17 14:28:39 +03:00
Aki Niemi 43aaf7c291 gisi: Fix netlink style issues 2010-05-17 13:50:50 +03:00
Pekka Pessi cb6c7972c0 gisi: Add phonet netlink functions
Adding g_pn_netlink_set_address() and g_pn_netlink_add_route().
Automatically configure phonet links without external software.
2010-05-17 13:50:27 +03:00
Pekka Pessi 5b288c17b9 gisi: Remove g_pn_netlink_by_name() 2010-05-17 13:43:34 +03:00
Aki Niemi 9ac5c596ed gisi: Add support for NTF requests
Notify requests are requests sent by ISA servers towards clients. They
are identical to indications in that no response is necessary, but
different in that subscription is done not using the mechanism used
for indications, but out-of-band. Typically routing for notify
requests is enabled using a request-response pair.
2010-05-14 16:51:30 +03:00
Aki Niemi 36bd998597 gisi: Return negative errnos 2010-05-14 16:51:25 +03:00
Aki Niemi 2d8762932a gisi: Fix typo in documentation 2010-05-14 16:51:21 +03:00
Aki Niemi 26fda05821 gisi: Add debugging support for requests 2010-05-14 16:50:00 +03:00
Aki Niemi 8aa82f0a4f gisi: remove misplaced define 2010-04-27 23:21:48 +03:00
Aki Niemi f89f11d2a2 gisi: refactor client implementation 2010-04-27 23:21:48 +03:00
Pekka Pessi 7bf2dc9707 Fix: transaction id usage in gisi/server.c 2010-04-24 14:09:58 -05:00
Aki Niemi 22103491a4 gisi: move g_isi_modem_by_name to separate file
This fixes build warnings that resulted from conflicts between
linux/if.h and net/if.h.
2010-04-21 10:48:29 +03:00
Aki Niemi 1a52b68573 Fix build warning on 64bit system 2010-04-20 17:47:17 +03:00
Pekka Pessi fa3501b8d2 Refactor isimodem and gisi/netlink
Now usbpnmodem plugin is used to register ISI modems.
2010-04-20 17:47:17 +03:00
Pekka Pessi 3ddc7ab7c3 gisi: add gisi server API 2010-04-20 17:47:16 +03:00
Pekka Pessi 66e87b42b3 gisi: fix cast-align warnings 2010-04-20 17:47:16 +03:00
Pekka Pessi 7c8fd12d9a gisi: check for NULL client and remove warnings 2010-04-20 17:47:16 +03:00
Pekka Pessi 12acb80e98 gisi: move GIsiDebugFunc into modem.h 2010-04-20 17:47:16 +03:00
Aki Niemi 19d9b37c58 gisi: fix pointer checking 2010-04-20 14:10:38 +03:00
Aki Niemi 5d7bf546ef gisi/pep: check for NULL callback 2010-04-20 14:10:33 +03:00
Denis Kenzior 8987fb696c Fix: Use g_try_malloc in gisi/pipe.c 2010-03-16 17:37:44 -05:00
Denis Kenzior 9b8d8218a5 Fix: Use g_try_malloc not g_malloc in isi/pep.c 2010-03-16 17:34:49 -05:00
Denis Kenzior d081e3910a Style: Use newlines to make the code more readable 2010-03-16 17:34:18 -05:00
Denis Kenzior db7e48d046 Style: Always use tab for indentation 2010-03-16 17:33:50 -05:00
Denis Kenzior 9b803223c6 Style: Various issues 2010-01-12 17:54:37 -06:00
Rémi Denis-Courmont 2b2a410deb gisi: support sending ISI request as a scatter-gather array 2009-12-18 15:59:17 +02:00
Rémi Denis-Courmont bc6c4adcac gisi: pass object handle to g_isi_verify() callback
This will be needed for GPDS.
2009-12-18 15:59:17 +02:00
Rémi Denis-Courmont 0081548fcf gisi: Fix g_isi_verify() type safety 2009-12-18 15:59:17 +02: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 876943e2b4 gisi: Add getter for sub-block data
Also fix indentation and change int->unsigned in the API.
2009-10-14 22:46:26 +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
Pekka Pessi bc8031e2d7 gisi: use const and restrict in iter 2009-10-07 23:21:15 +03:00
Aki Niemi 0b28b05678 gisi: Make reachability detection more robust 2009-09-16 23:37:23 +03:00
Aki Niemi a34849599b Fix restrict keyword usage 2009-09-16 09:05:53 +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 3cec9ac67b Add support for long sub-block header 2009-09-14 23:43:17 +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 dec66954b6 gisi: Add ISI sub-block iterator 2009-09-14 14:34:00 +03:00
Rémi Denis-Courmont 94a0c4e708 gisi: cannot do ioctl() with Netlink sockets, use local instead 2009-09-10 17:44:01 +03:00
Rémi Denis-Courmont 418dba1ec3 gisi: Fix embarrassing typo 2009-09-10 17:43:30 +03:00
Rémi Denis-Courmont 54f61961b5 gisi: bring Phonet interface up before telling upper layers about it
This should get kernel-assisted Phonet autoconfiguration to work (and it
shouldn't hurt in other cases). Otherwise, the upper layers will try to
send packets, which will fail. Then they will probably just time out.
2009-09-10 15:31:21 +03:00
Rémi Denis-Courmont 3feaacb6ce gisi: disable logging by default
The debug_func was not initialized.
2009-09-09 22:26:44 +02:00
Ismo Puustinen 3f5851f4e9 gisi: Getter function for pipe handle 2009-09-01 13:42:15 +03:00
Rémi Denis-Courmont aef72327c2 gisi: return GPRS interface index/name 2009-08-28 15:20:27 +03:00
Aki Niemi 373665cdd0 gisi: Fix indication debugging 2009-08-25 18:26:24 +03:00
Marcel Holtmann 70aab2a826 Convert to fully non-recursive build system 2009-08-24 23:49:40 -07:00
Aki Niemi 5086088458 gisi: Fix warning in g_isi_subscribe()
Save the GIsiModem instance in GIsiClient, so that calling
g_isi_subscribe() doesn't throw a warning.
2009-08-23 23:19:03 +03:00
Aki Niemi 197cefbba5 gisi: Add debugging hooks 2009-08-22 18:01:24 +03:00
Denis Kenzior 779851acec Fix control reaches end of non-void function 2009-08-20 15:39:11 -05:00