Patrick McHardy
5c7fbfa614
utils: resync NETLINK_DECT with kernel headers
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-12-08 12:16:02 +01:00
Patrick McHardy
ecc2c7d990
libdect: add preliminary wideband support
...
Unfinished, so far only meant for testing the kernel side.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-10-05 19:06:54 +02:00
Patrick McHardy
56e4149e01
utils: resync AF_DECT definition with kernel headers
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-10-05 15:33:38 +02:00
Patrick McHardy
85d1fb46c5
utils: resync value of NETLINK_DECT with 3.0.0-rc3
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-06-18 05:51:43 +02:00
Patrick McHardy
2d98b81231
lce: add proper timer names from EN 300 175 05 to comments and debug messages
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-26 18:00:23 +01:00
Patrick McHardy
f5b3fafa47
cc: convert -res primitives to return void
...
There is no reasonable way for the caller to respond to an error returned
by a -res primitive, the initiator is responsible for resending the
request. Change all CC -res primitives to return void.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-24 21:47:07 +01:00
Patrick McHardy
3b1c1f5e44
mm: convert -res primitives to return void
...
There is no reasonable way for the caller to respond to an error returned
by a -res primitive, the initiator is responsible for resending the
request. Change all MM -res primitives to complete the procedure on error
and return void.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-02-24 21:47:07 +01:00
Patrick McHardy
601c3808c1
libdect: adjust AF_DECT value for 2.6.38-rc2
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-24 05:11:14 +01:00
Patrick McHardy
ce7df5b796
lce: maintain TPUI assignment in location table
...
Maintain TPUIs and use for paging PTs.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-10 11:01:14 +01:00
Patrick McHardy
ff3028a515
lce: maintain LCE location table
...
Maintain LCE location table and use it for determining paging mode
and setup capabilities.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2011-01-09 12:17:34 +01:00
Patrick McHardy
e9b5827470
ie: add <<SERVICE-CHANGE>> IE
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-23 15:27:43 +01:00
Patrick McHardy
3dd2f8afdd
raw: add dect_raw_close() function
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-22 16:08:00 +01:00
Patrick McHardy
17cc9be51e
ie: fix SS facility prototol discriminator
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 23:07:19 +01:00
Patrick McHardy
3c41dc14e0
netlink: add MAC_ME_INFO-res and SCAN-req primitives
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 18:54:49 +01:00
Patrick McHardy
293fb1e809
timer: export timer functions declarations
...
The functions are already exported, also export the declarations
since they are useful and easier to use than f.i. using libevent
directly.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 15:13:28 +01:00
Patrick McHardy
db10281fb6
ie: add <<FACILITY>> IE
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-16 15:08:30 +01:00
Patrick McHardy
ab0a2a6afa
identities: add dect_ari_cmp()
...
Already contained in the header files, but never implemented.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14 19:09:36 +01:00
Patrick McHardy
582a7d50c7
libdect: support allocating per-handle private space
...
Similar to other objects, support a private data area for libdect handles
for applications dealing with multiple handles simultenously.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-11-14 19:09:33 +01:00
Patrick McHardy
a53a5440f9
raw: fix compile error
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-18 11:08:02 +02:00
Patrick McHardy
d562840fbb
dect_mbuf: add multi frame number, frame number and slot members
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-16 15:50:52 +02:00
Patrick McHardy
fb4c54d53c
ie: add support for <<EVENTS-NOTIFICATION>> IE
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-14 23:06:41 +02:00
Patrick McHardy
a433fa4d8f
auth: add definitions for AC and UPI length
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-14 23:06:28 +02:00
Patrick McHardy
fc63150b4d
Revert accidentally committed patch
...
This reverts commit d6d3253a5c
.
2010-10-14 22:43:24 +02:00
Patrick McHardy
d6d3253a5c
events
2010-10-14 08:11:59 +02:00
Patrick McHardy
ed870d702b
ss: fix CLSS message routing
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-13 23:18:03 +02:00
Patrick McHardy
11779ea5e8
utils: use single-linked list for struct dect_msg_buf queues
...
Get rid of libdect.h dependency on list.h.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-12 00:00:41 +02:00
Patrick McHardy
4dd834843f
utils: add forgotten changes from last commit
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-12 00:00:26 +02:00
Patrick McHardy
4e2b153941
utils: uninline message buffer manipulation helpers
...
Necessary to make them use dect_assert() instead of the regular assert() macro.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-11 22:53:06 +02:00
Patrick McHardy
ae767920a8
ie: add definitions for <<DURATION>> time calculations
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-11 17:22:45 +02:00
Patrick McHardy
00cc8509b8
mm: add function to get an existing or allocate a new MM endpoint
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-10 19:57:04 +02:00
Patrick McHardy
ce4da27071
mm: destroy endpoint when link is shut down
...
Also rebind the endpoint from the requesting link when an indirect link
establishment is complete.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-10 19:57:04 +02:00
Patrick McHardy
c05ddcc6ae
ss: fix CISS
...
Fix message types and definitions, only pass messages to clms if protocol
discriminator matches.
With these fixes, CISS appears to be working properly:
LCE: RX: 64 64 05 07 90 a8 00 ba 8a 78 2a 7b 11 81 00 02 |dd.......x*{....|
LCE: RX: 3b 09 03 01 01 07 00 04 02 13 01 5b 01 38 |;..........[.8|
LCE: link 23 (ESTABLISHED): stop SDU timer
LCE: link 23 (ESTABLISHED): new transaction: protocol: Call Independant Supplementary Services F: 0 TV: 6
SS: unknown transaction: msg type: 64
CISS-REGISTER
parse {CISS-REGISTER} message
IE: <<PORTABLE-IDENTITY>> id: 5 len: 9 dst: 0x8a04240
type: IPEI (10)
PUT: N (IPEI)
EMC: 0ba8
PSN: a782a
IE: <<ESCAPE-TO-PROPRIETARY>> id: 7b len: 19 dst: 0x8a41860
EMC: 2
Content: 3b 09 03 01 01 07 00 04 02 13 01 5b 01 38
LCE: link 23 (ESTABLISHED): set IPUI N EMC: 0ba8 PSN: a782a
LCE: link 23 (ESTABLISHED): confirm transaction: Call Independant Supplementary Services TV: 6 Role: 1
SS (link 23): MNSS_SETUP-ind
LCE: RX: 64 5a |dZ|
SS (link 23): CISS-RELEASE-COM
parse {CISS-RELEASE-COM} message
SS (link 23): MNSS_RELEASE-ind
LCE: link 23 (ESTABLISHED): close transaction: Call Independant Supplementary Services TV: 6 Role: 1
LCE: link 23 (ESTABLISHED): partial release
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-09 07:12:23 +02:00
Patrick McHardy
430a8f5630
identities: add helper for formatting and parsing IPEI strings
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-10-08 19:42:31 +02:00
Patrick McHardy
89de310021
doc: documentation update
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-21 04:55:32 +02:00
Patrick McHardy
859804855a
ie: fix progress indicator IE bugs
...
- fix location codings
- ignore octet group end bit in progress description
- add dump function
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-21 02:11:08 +02:00
Patrick McHardy
c589452277
ie: rename DECT_RING_PATTERN_* to DECT_ALERTING_PATTERN_*
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 18:02:15 +02:00
Patrick McHardy
72acc67c50
cc: add connect timer
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy
2dc7accdbb
cc: add completion timer
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy
cb378b3333
cc: add release timer
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy
03ee13dcb4
cc: add overlap sending timer
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-17 17:42:26 +02:00
Patrick McHardy
4ff96238d5
cc: add missing parameters to CC primitives
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-16 12:54:57 +02:00
Patrick McHardy
eacb708cf5
doc: minor update
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 23:09:03 +02:00
Patrick McHardy
f8bf6942ab
debug: add libdect-specific assert-macro with optional backtrace support
...
Make assertions more useful by printing a backtrace on failed assertions.
Requires libbfd.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 22:07:09 +02:00
Patrick McHardy
073d8f6617
timer: add some debugging code
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-14 00:55:37 +02:00
Patrick McHardy
9b20956773
cc: periodically dump LU1 queue statistics
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-09 13:27:21 +02:00
Patrick McHardy
20d309fc70
lce: move protocol registration to dect_lce_init
...
Perform protocol initialization outside of __init functions to avoid
multiple registration with threaded library users.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 12:18:20 +02:00
Patrick McHardy
dc4ad23707
libdect: make handle initialization/shutdown symetrical
...
Proper error handling on failed dect_init() calls is currently not
possible since dect_close_handle() expects a fully initialized handle.
Kill dect_alloc_handle() and add a dect_open_handle() function that
performs all setup.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 08:53:54 +02:00
Patrick McHardy
1038f1b083
lce: order MM transactions properly
...
Order MM transactions such that the last one opened is shut down first.
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-09-03 04:45:22 +02:00
Patrick McHardy
f3c0797405
ss: add missing {FACILITY} attributes
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 04:13:28 +02:00
Patrick McHardy
ab287ce143
ie: add <<TIME-DATE>> IE
...
Signed-off-by: Patrick McHardy <kaber@trash.net>
2010-08-26 02:13:24 +02:00