Age | Commit message (Collapse) | Author | Files | Lines |
|
Profile support is supposed to be handled on the IWU layer, remove
unused dect_profile_indicator() function.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Unfinished, so far only meant for testing the kernel side.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber <trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Indirect link establishment is to be used in FP mode when the PP does not
support fast setup. The current condition will also attempt to use it in
PP mode.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Maintain TPUIs and use for paging PTs.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Maintain LCE location table and use it for determining paging mode
and setup capabilities.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Change PMID/IPUIassignment debugging output to match other debugging
messages.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Move seeding to an __init function to avoid reseeding the PRNG multiple
times with the same seed when opening multiple handles in a short amount
of time.
While at it, switch from rand() to random() since it uses a better
PRNG in old libcs and non-Linux systems.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Get rid of libdect.h dependency on list.h.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Necessary to make them use dect_assert() instead of the regular assert() macro.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Also rebind the endpoint from the requesting link when an indirect link
establishment is complete.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Make assertions more useful by printing a backtrace on failed assertions.
Requires libbfd.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Perform protocol initialization outside of __init functions to avoid
multiple registration with threaded library users.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
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>
|
|
Order MM transactions such that the last one opened is shut down first.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Insert MM transactions at the end of the list to make sure they get
destroyed last on shutdown. This makes sure that other protocols
which might invoke and wait for the completion of MM transactions
have their transactions terminated first and don't mistake a link
shutdown or a protocol specific error for a MM error.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
This reverts commit de54717db07a467e3777ec23beb184ad1b8ec5a0.
Major misunderstanding, the PMID is supposed to get changed on
unconfirmed MAC layer Access requests, not on Access rights requests.
Signed-off-by: Patrick MCHardy <kaber@trash.net>
|
|
Set the IPUI of a data link as soon a request containing the portable_identity
is received. Additionally verify that the identity matches the IPUI if already
set.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
GAP doesn't require full page support, it is only mandatory for the NG-DECT
part 1 profile.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Use DECT_ as common prefix for all IEs since they need to be exported for
the CLMS service.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Make valgrind happy (tm).
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Change dect_lce_broadcast to take a dect_msg_buf in prepatation for the next
patch. Also add an on-stack initializer macro for mb's and make use of it.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Fix use-after-free when the transaction is used for a second time.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
The socket is NULL in PP mode, don't try to close it.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Until there's an interface to indicate PP fast setup capability, disable
S-SAP listener sockets in PP mode since they cause bind conflicts wuen
running mulitple PP instances in parallel.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
As specified in ETSI EN 300 175-6, section 9.1.2.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Use a default value for PMID while no TPUI is assigned, use an assigned TPUI value
otherwise.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick MCHardy <kaber@trash.net>
|
|
Signed-off-by: Patrick McHardy <kaber@trash.net>
|
|
Required by the next patch, which will add proper retransmission to MM.
Signed-off-by: Patrick McHardy <kaber@trash.net>
|