Compare commits

..

1917 Commits

Author SHA1 Message Date
Sukru Senli
d6154b8701 icwmp: fix calloc 2022-05-16 11:37:50 +02:00
Sukru Senli
10e8444e48 libtrace: fix-SIOCGSTAMP-undeclared-error patch 2022-05-16 11:00:16 +02:00
Rahul
4b06b07acf ponmngr: first drop
- Most fundamental uci mapping to proposed XPON.ONU.i.ANI.i.Enable
  object in 2.16
- The init scripts to procd trigger relevant components
2022-05-13 13:36:16 +00:00
Amin Ben Ramdhane
6636e7ff47 bbf: 6.6.36 2022-05-13 11:47:29 +01:00
vdutta
ec8a7cffa2 stunc: 1.1.8 2022-05-13 14:18:33 +05:30
Amin Ben Ramdhane
41cdc9672c bbf: 6.6.35 2022-05-12 16:40:16 +01:00
Amin Ben Ramdhane
6fdf37e179 bbf: 6.6.34 2022-05-12 00:11:14 +01:00
Anjan Chanda
60c198e2e2 map-topology: fix package build dependency 2022-05-11 21:29:04 +02:00
vdutta
154b8465a6 iop: Align with udpecho 2022-05-11 20:34:11 +05:30
Amin Ben Ramdhane
d352796d46 udpecho: 2.0.0 2022-05-11 15:26:13 +01:00
Amin Ben Ramdhane
562aefcab2 bbf: 6.6.33 2022-05-11 15:25:31 +01:00
Jakob Olsson
a4c6aec761 map-agent: 7.2.1 2022-05-11 10:24:14 +02:00
vdutta
0e1894e5ff bbf: 6.6.32
- Change libbbf_api to empty package
- Generate dummy/empty libbbf_api.so to prevent linking with binaries, as
  libbbf_api only provides APIs to build plugins for libbbf datamodel
- For packages which also generate bbf datamodel plugins, it is suggested to
  use PKG_BUILD_DEPENDS:=bbf, in place of package dependency on libbbf_api
2022-05-11 12:52:23 +05:30
vdutta
ca89315960 periodicstats: 1.1.2 2022-05-11 12:51:00 +05:30
vdutta
5764f7dd1d periodicstats: 1.1.1 2022-05-10 20:03:12 +05:30
Yalu Zhang
3d2b69bd33 evoice: Change the tx/rx gain to 0 in the default config
Transmit and receive gain shall be set as 0 according to Broadcom's support.
2022-05-10 16:17:07 +02:00
Anjan Chanda
56bfdfaf57 map-topology: 4.0.1 - remove build-time dependencies on ieee1905 2022-05-10 16:11:27 +02:00
Jakob Olsson
28835fc0ea map-agent: 7.2.0 2022-05-10 16:10:08 +02:00
Jakob Olsson
0f7d057261 map-agent: multiap: set disabled upon teardown 2022-05-10 16:09:44 +02:00
vdutta
9aaef85895 icwmp: 8.4.8 2022-05-10 17:56:35 +05:30
vdutta
50e1be5214 obuspa: 5.0.0.11 2022-05-10 17:04:35 +05:30
Jakob Olsson
13f1dcfdc3 map-controller: 6.0.21 2022-05-10 10:32:08 +02:00
vdutta
545f41ab6a bulkdata: 2.0.3 2022-05-09 19:29:25 +05:30
vdutta
a5306cb837 bbf: 6.6.31 2022-05-09 16:03:14 +05:30
Jakob Olsson
415768dd71 map-controller: config: add default values for agent and node section 2022-05-09 12:01:50 +02:00
vdutta
744bd43658 icwmp: 8.4.7 2022-05-09 14:39:07 +05:30
vdutta
f6cdb4c55d bbf: 6.6.30 2022-05-09 14:37:38 +05:30
Anjan Chanda
01d009734c ieee1905: 4.8.0 2022-05-09 10:53:09 +02:00
vdutta
120e333a67 libtrace: Fix iterative compilation 2022-05-09 13:10:04 +05:30
Erik Karlsson
caf1367dd2 Preserve links while installing libraries
Use $(CP) rather than $(INSTALL_BIN) to install libraries so that
symbolic lings are not being dereferenced.
2022-05-09 07:37:22 +00:00
Sukru Senli
82d3171604 ieee1905: update example ieee1905 config 2022-05-09 09:09:12 +02:00
Sukru Senli
68b8051fb2 map-agent: update example mapagent config 2022-05-09 09:09:12 +02:00
Sukru Senli
9fc87d618b map-controller: update example mapcontroller config 2022-05-09 09:09:12 +02:00
Sukru Senli
013a2f2b19 evoice: update dependency based on target
also limit target platforms to the ones evoice supports
2022-05-07 13:30:33 +02:00
Sukru Senli
b4d831147e Revert "sulu: 1.1.0"
This reverts commit 2816342a69.
2022-05-07 13:05:47 +02:00
Sukru Senli
2816342a69 sulu: 1.1.0
new way of creating themes
2022-05-07 12:28:35 +02:00
Yalu Zhang
68bb2d48d5 evoice: Support multiple platform building 2022-05-06 16:18:50 +02:00
Yalu Zhang
4333127c74 evoice: Update UCI config files 2022-05-06 14:42:27 +02:00
Jakob Olsson
d03fa0c5e3 map-agent: 7.1.45 2022-05-06 14:06:47 +02:00
vdutta
584e3db8f0 bbf: 6.6.29 2022-05-06 15:12:34 +05:30
vdutta
4e365be18e usp-js: Added qjs version 2022-05-06 10:24:02 +05:30
Jakob Olsson
e722665f2f map-agent: 7.1.44 2022-05-05 17:15:40 +02:00
Jakob Olsson
7566301349 map-controller: 6.0.20 2022-05-05 16:35:47 +02:00
Jakob Olsson
213f840309 map-agent: 7.1.43 2022-05-05 16:04:16 +02:00
vdutta
35c58d63d7 icwmp: 8.4.6 2022-05-05 17:59:48 +05:30
Wenpeng Song
8382bcc0ac dectmngr: Call openlog() at the beginning to avoid some incomplete log messages 2022-05-05 12:12:18 +00:00
Jakob Olsson
ac32ff013e map-agent: 7.1.42 2022-05-05 12:40:51 +02:00
Jakob Olsson
3d077f2a18 map-agent: 7.1.41 2022-05-05 09:53:31 +02:00
vdutta
1d6c3b5466 obuspa: Fix assigned role index 2022-05-05 10:46:00 +05:30
Arun Muthusamy
47130407a5 urlfilter: Fix IPv6 traffic related issue 2022-05-04 16:59:11 +02:00
Jakob Olsson
9f7db62c89 map-topology: 3.2.13 2022-05-04 15:08:49 +02:00
Jakob Olsson
8d1d4b5590 wfa-capi: 1.1.2 2022-05-04 13:36:41 +02:00
Wenpeng Song
889524d9a7 dectmngr: fix handset name update issue 2022-05-04 08:54:58 +00:00
vdutta
f293fa36a7 bbf: Align LocalTimeZoneName with TZ db 2022-05-04 13:53:08 +05:30
vdutta
ab144f4af9 twamp: Align with libbbf_api 2022-05-04 13:46:36 +05:30
vdutta
621010e16b swmodd: Align with libbbf_api 2022-05-04 13:09:55 +05:30
vdutta
3f2b130848 stunc: Align with bbf_api 2022-05-04 13:07:42 +05:30
vdutta
504c78965d udpechoserver: 1.0.5 2022-05-04 12:45:36 +05:30
Yalu Zhang
c625d8dc29 evoice-0.2.1: Support FXS CLIP on Broadcom platform 2022-05-03 15:51:14 +02:00
vdutta
9234254f76 icwmp: 8.4.5 2022-05-03 17:25:01 +05:30
Sukru Senli
436751ce8f evoice: make license PROPRIETARY 2022-05-02 16:25:22 +02:00
Sukru Senli
30bf53c79c endptmngr: make license PROPRIETARY 2022-05-02 16:25:16 +02:00
vdutta
775b71b6f1 xmppc: 2.0.2 2022-05-02 19:14:13 +05:30
vdutta
cf08d70000 icwmp: 8.4.4 2022-05-02 19:00:10 +05:30
vdutta
48727867eb xmppc: 2.0.1 2022-05-02 10:48:11 +05:30
Amin Ben Ramdhane
e82294aa2f xmppc: 2.0.0 2022-05-02 04:45:35 +00:00
Amin Ben Ramdhane
768304c5a1 bbf: 6.6.27 2022-05-02 04:45:35 +00:00
Sukru Senli
00c6557d0a sulu: 1.0.4 2022-04-29 17:05:44 +02:00
Sukru Senli
1c22d7a19d evoice: bump version: 0.2.0 2022-04-29 16:24:55 +02:00
Yalu Zhang
1eb12b7923 Update package evoice
Fix a compilation error in libvoiceservice
2022-04-29 16:05:57 +02:00
Yalu Zhang
1661322307 evoice: Update Makefile to add bcmkernel in dependency list 2022-04-29 15:28:28 +02:00
Sukru Senli
a408642afa sulu: 1.0.3 2022-04-29 12:18:16 +02:00
vdutta
62b1d840dc bulkdata: 2.0.2 2022-04-29 10:33:35 +05:30
vdutta
55afadf895 stunc: 1.1.6 2022-04-28 20:05:46 +05:30
vdutta
4c4e12a8ff bulkdata: 2.0.1 2022-04-28 20:04:39 +05:30
Jakob Olsson
73c5d2c481 map-agent: 7.1.40 2022-04-28 10:42:44 +02:00
Jakob Olsson
7c041f933d wfadatad: 7.0.3 2022-04-27 16:36:48 +02:00
vdutta
fddb7e3ba7 icwmp: 8.4.3 2022-04-27 19:27:21 +05:30
Jakob Olsson
bf82f6966d map-agent: 7.1.39 2022-04-27 15:29:52 +02:00
Amin Ben Ramdhane
81a348efee bbf: 6.6.26 2022-04-27 13:24:02 +01:00
vdutta
f24602d8d4 iop: config: update bulkdata package 2022-04-27 17:26:50 +05:30
Amin Ben Ramdhane
0f5677e544 bulkdata: align with new design
- remove libbbfdm dependency
- make bulkdata run on top of ubus usp.raw object
2022-04-27 12:14:13 +01:00
Jakob Olsson
02d52bd9e1 map-agent: 7.1.38 2022-04-27 09:58:32 +02:00
Sukru Senli
acb2f35982 iop: config: remove undefined package 2022-04-26 22:27:44 +02:00
vdutta
c1ef23456b icwmp: GetRPCMethod from cpe and ssl keep update 2022-04-26 19:32:36 +05:30
Jakob Olsson
00fd54ba1b map-agent: 7.1.37 2022-04-26 14:45:08 +02:00
Amin Ben Ramdhane
3406185b1c bbf: 6.6.25 2022-04-25 18:34:21 +01:00
Jakob Olsson
6f233e19bf map-agent: 7.1.36 2022-04-25 16:04:50 +02:00
Jakob Olsson
9227f52a16 wfa-capi: 1.1.1 2022-04-25 16:03:27 +02:00
Anjan Chanda
70889fd1ae ieee1905: 4.8.0 2022-04-25 15:37:11 +02:00
Jakob Olsson
c09267da8f wfadatad: 7.0.2 2022-04-25 14:23:27 +02:00
Jakob Olsson
d4a9cde562 map-agent: 7.1.35 2022-04-22 15:31:07 +02:00
vdutta
1824013aeb udpechoserver: 1.0.4 2022-04-21 17:36:42 +05:30
Yalu Zhang
13c858421c Update package evoice
Enable the development log messages and fix compilation errors
2022-04-21 12:07:13 +02:00
Omar Kallel
a917d47854 icwmp: 8.4.1 2022-04-21 10:01:21 +01:00
Jakob Olsson
4c11a12d11 map-agent: make EASYMESH_R2_CERT compile flag selectable 2022-04-20 13:20:13 +02:00
Anjan Chanda
73a7d9cc42 config: deselect wfadatad package 2022-04-20 10:53:52 +02:00
Yalu Zhang
68a51047e9 Update package evoice
libvoiceservice updating
2022-04-20 10:50:25 +02:00
Anjan Chanda
42db3eaf5d wfadatad: 7.0.1 2022-04-20 10:39:38 +02:00
Roman Azarenko
8c867fc829 obuspa: init: fix manipulating USP_BOARD_IFNAME env var in .profile
This addresses two problems:

1. `sed 'g/export USP_BOARD_NAME/d'` would erase all the lines in the affected
file, regardless of whether there was a match or not. Replace this with
`sed '/foo/d'`, which correctly deletes just the affected lines.

2. Changing an `interface`/`ifname` in UCI configuration would end up
appending to /root/.profile due to how the control flow was written.
2022-04-20 09:11:40 +02:00
Omar Kallel
c9bc7a3dea icwmp: 8.4.0 2022-04-19 15:28:14 +01:00
Yalu Zhang
7c05f41418 eVoice: Update Makefile to build libvoiceservice.so by default 2022-04-19 11:51:13 +02:00
Anjan Chanda
47fe3342d3 ieee1905: 4.7.7 2022-04-14 16:32:15 +02:00
Sukru Senli
135b15c101 sulu: 1.0.2 2022-04-14 13:40:50 +02:00
Jakob Olsson
26a75d11f0 map-controller: 6.0.19 2022-04-14 12:37:19 +02:00
vdutta
85a20c9485 bbf: 6.6.24 2022-04-14 14:01:48 +05:30
Amin Ben Ramdhane
e239e77fdd bbf: 6.6.23 2022-04-13 15:16:11 +01:00
vdutta
4824b441b6 stunc: Fix compilation issue for wolfssl variant 2022-04-13 13:23:06 +00:00
vdutta
3bb9298485 iop: Select mbedtls variants for TRx69 packages 2022-04-13 13:23:06 +00:00
vdutta
557ed06daa bulkdata: Added ssl variants to align with bbf variants 2022-04-13 13:23:06 +00:00
vdutta
1f0e4a191c uspd: Added ssl variants 2022-04-13 13:23:06 +00:00
vdutta
03e29020e2 bbf: Added ssl variants for libbbfdm 2022-04-13 13:23:06 +00:00
vdutta
f314c20b8a obuspa: Removed build dependency from uspd 2022-04-13 13:23:06 +00:00
vdutta
5f2e737e7c icwmp: Added ssl variants 2022-04-13 13:23:06 +00:00
vdutta
0e32d885b0 stunc: Added ssl variants 2022-04-13 13:23:06 +00:00
Wenpeng Song
363ae3044e dectmngr: provide UBUS API test 2022-04-13 13:02:23 +00:00
Jakob Olsson
2f5d167976 map-agent: 7.1.34 2022-04-13 14:22:13 +02:00
Sukru Senli
558936d23d sulu: 1.0.1 2022-04-13 12:58:10 +02:00
Anjan Chanda
b946784deb ieee1905: 4.7.6 2022-04-12 20:19:16 +02:00
Amin Ben Ramdhane
7adf27bcaf bbf: 6.6.21 2022-04-12 17:12:19 +01:00
Amit KUmar
85d804d575 qosmngr: uniform code handling for qos policer
removed POLICER_SKIP check from broadcom.sh to make policer configuration
code uniform for all devices.
2022-04-12 13:02:11 +00:00
Jakob Olsson
4a756c84c7 ieee1905: 4.7.5 2022-04-12 12:47:17 +02:00
Jakob Olsson
db91f3809a wfadatad: 6.12.2 2022-04-12 10:36:27 +02:00
Jakob Olsson
55ba075a82 ieee1905: 4.7.4 2022-04-12 09:34:29 +02:00
Jakob Olsson
98403702fe ieee1905: 4.7.3 2022-04-11 15:28:41 +02:00
Jakob Olsson
f50af42366 map-controller: 6.0.18 2022-04-11 15:27:57 +02:00
vdutta
9ea69b1c07 bbf: 6.6.20 2022-04-11 15:32:04 +05:30
Jakob Olsson
338856f15d map-topology: 3.2.12 2022-04-08 17:04:21 +02:00
vdutta
a5459d4ee6 uspd: 2.2.6 2022-04-08 18:24:37 +05:30
Jakob Olsson
d143e9af96 map-controller: 6.0.17 2022-04-08 14:28:31 +02:00
Anjan Chanda
bf7e5fca47 wfadatad: 6.12.1 2022-04-08 12:32:41 +02:00
Anjan Chanda
eb1224022e ieee1905: 4.7.2 2022-04-08 12:24:11 +02:00
Anjan Chanda
55835b3af0 easy-soc-libs: 6.4.44 2022-04-08 12:23:33 +02:00
vdutta
e0eec6c755 uspd: 2.2.5 2022-04-08 15:36:46 +05:30
Anjan Chanda
c8e1e6538a ieee1905: 4.7.1 2022-04-08 12:04:20 +02:00
Sukru Senli
3e60ebb118 sulu: v1.0.0 2022-04-08 10:29:17 +02:00
Jakob Olsson
42bd799915 map-controller: 6.0.16 2022-04-07 18:05:43 +02:00
Yalu Zhang
64369a08f4 evoice: update /etc/config/voice to support variable length of called numbers
The previous config only allows the fixed number of digits as a called number. With
MinimumNumberOfDigits as 5, MaximumNumberOfDigits as 15 and TerminationDigit as ' ',
users can only dial 5 digits as a called number. That is wrong.

After this change, the number of digits for a called number is in the range between
MinimumNumberOfDigits (1) and MaximumNumberOfDigits (15). But the number must terminate
with '#' which is not a part of called number and will be strapped off.

TODO: support variable length of called numbers without termination digit.
2022-04-07 16:39:54 +02:00
Jakob Olsson
3dd570990e map-topology: 3.2.11 2022-04-07 15:50:19 +02:00
vdutta
7e8f51d15b uspd: 2.2.4 2022-04-07 17:17:18 +05:30
vdutta
2faada9f0b icwmp: 8.3.10 2022-04-07 17:13:07 +05:30
Jakob Olsson
1d88107cc6 map-topology: 3.2.10 2022-04-07 11:12:00 +02:00
Anjan Chanda
65ecbbde31 ieee1905: 4.7.0 2022-04-07 10:56:10 +02:00
vdutta
0c8b29d7d5 icwmp: Fix race condition in config backup 2022-04-07 11:16:20 +05:30
Jakob Olsson
45f0f50740 map-agent: 7.1.33 2022-04-06 17:15:13 +02:00
Jakob Olsson
6ecc48540f map-agent: 7.1.32 2022-04-06 16:11:35 +02:00
Janusz Dziedzic
a027edeca2 easy-soc-libs: 6.4.43
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-04-06 12:22:16 +00:00
Anjan Chanda
dd25486412 ieee1905: 4.6.27 2022-04-06 10:23:30 +02:00
Yalu Zhang
d345eefd86 evoice: update /etc/config/voice for easy testing
Domain name "sip-proxy.iopsys.eu" is used for URI and proxy instead of IP address.

In order to make it work, the proxy server's configuration needs to be updated for accepting
sip-proxy.iopsys.eu as domain instead of IP address by default for kamailio example.

$ diff /etc/kamailio/kamailio.cfg.orig /etc/kamailio/kamailio.cfg
176c176
< # alias="sip.mydomain.com"
---
> alias="sip-proxy.iopsys.eu"

On the DUT, run the following to add a domain name entry in dnsmasq for sip-proxy.iopsys.eu.

uci add dhcp domain
uci set dhcp.@domain[-1].name='sip-proxy.iopsys.eu'
uci set dhcp.@domain[-1].ip="10.100.1.254" # Replace 10.100.1.254 with the actual IP in your environment
uci commit dhcp
/etc/init.d/dnsmasq restart

Then restart evoice at the last step.
2022-04-05 16:52:51 +02:00
Jakob Olsson
4b272be181 map-agent: 7.1.31 2022-04-05 15:21:50 +02:00
Jakob Olsson
09d49cb77d ieee1905: 4.6.26 2022-04-05 15:09:49 +02:00
vdutta
0e8b8eb69d cwmp: Fix upload 2022-04-05 17:39:42 +05:30
Jakob Olsson
a2610d371d map-agent: 7.1.30 2022-04-05 11:32:17 +02:00
vdutta
e1886e61bc bbf: 6.6.19 2022-04-05 08:52:33 +05:30
Grzegorz Sluja
c1f4056723 dectmngr: Play DialTone on handset based on SIP registration status 2022-04-04 16:01:04 +02:00
Anjan Chanda
1a404e9be5 ieee1905: 4.6.25 2022-04-04 14:14:59 +02:00
Anjan Chanda
6899e35524 easy-soc-libs: 6.4.42 2022-04-04 14:14:15 +02:00
Jakob Olsson
17c9858783 map-agent: 7.1.29 2022-04-04 11:44:22 +02:00
Anjan Chanda
eb4e698b90 wfadatad: 6.12.0 2022-04-01 18:07:24 +02:00
Sukru Senli
c30b8937a0 sulu: adapt to URL change 2022-04-01 17:34:22 +02:00
Jakob Olsson
491098c51f map-agent: 7.1.28 2022-04-01 17:22:49 +02:00
Sukru Senli
f190fd9085 evoice: adapt to URL change 2022-04-01 17:21:07 +02:00
Filip Matusiak
96b7aad9f2 map-agent: handle link loss of eth when active bh 2022-04-01 15:20:26 +00:00
Jakob Olsson
0166ee6540 map-controller: 6.0.15 2022-04-01 14:09:52 +02:00
vdutta
bcd9d70c52 bbf: 6.6.18 2022-04-01 16:32:07 +05:30
Sukru Senli
6ce86e0a68 sulu: 0.2.37 2022-04-01 10:36:52 +02:00
Janusz Dziedzic
b206df8ad9 easy-soc-libs: 6.4.41
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-04-01 07:49:17 +00:00
vdutta
4a09f80d40 bbf: 6.6.17 2022-03-31 22:06:19 +05:30
Andreas Gnau
32fbe3288f Update feed [ iopsys ] package [ u-boot-ex400 ]
-------------------------------------------------------------------------------
* 4cd73fe5db ex400: Update bootloader version to new IOWRT 6 format
* b22609213e Revert "ex400: enable network by default"
-------------------------------------------------------------------------------
commit 4cd73fe5db0ebfc1242ca9c85c14d7f0718eaf73
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-12-08 17:27:59 +0100

    ex400: Update bootloader version to new IOWRT 6 format

Base directory -> /
 board/inteno/common/board.c |  4 ++--
 board/inteno/ex400/board.c  | 17 ++++++++++++++++-
 2 files changed, 18 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit b22609213e92496f6cc44028f9b9930becb8a999
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2022-03-31 13:35:09 +0200

    Revert "ex400: enable network by default"

    This reverts commit 0cd508d8dd077d62baa59a0d74e2e5f24cff8926.

    It turns out that not starting network by default had a reason. See
    fccb9d5ee7 (Prevent ethernet to start up by default., 2017-05-11).

    Quoting the commit message:

    > This is needed as the setup has all port in the same switch
    > so WAN is connected to LAN and dhcp on clients on LAN is getting
    > out to the ISP and stealing ip numbers.

    We do not want to have networking by default with a static IP on the
    WAN-port. In addition, test-scripts would need adaptation if the networking
    is not to started by default, which is not worth it for an old platform like
    this.

    Signed-off-by: Andreas Gnau <andreas.gnau@iopsys.eu>

Base directory -> /
 board/inteno/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2022-03-31 18:35:32 +02:00
vdutta
9d099ff1ce icwmp: 8.3.7 2022-03-31 20:09:35 +05:30
Jakob Olsson
c03c76c74f map-agent: 7.1.27 2022-03-31 15:12:43 +02:00
vdutta
000da5e808 stunc: Datamodel improvements 2022-03-31 16:13:35 +05:30
Alf Håkansson
2343ace07c evoice: RTCP statistics and TR104 CallLog added. Tested on E600,SH3 and CRM based boards 2022-03-30 17:46:00 +02:00
vdutta
a45cef5c05 bbf: 6.6.16 2022-03-28 17:00:42 +05:30
Sukru Senli
af6ca71559 sulu: 0.2.36 2022-03-25 15:45:21 +01:00
Sukru Senli
0418327c52 sulu: 0.2.35 2022-03-25 15:04:39 +01:00
Sukru Senli
cca1c6e81d sulu: 0.2.34 2022-03-25 13:28:20 +01:00
Jakob Olsson
4cc8c9a21c map-controller: 6.0.14 2022-03-25 12:47:17 +01:00
Jakob Olsson
bc73e56726 map-agent: 7.1.26 2022-03-25 12:31:38 +01:00
Filip Matusiak
eb2d8c8f27 map-agent: add configuration flag for island prevention 2022-03-25 12:14:00 +01:00
Filip Matusiak
49ccbe6155 map-agent: up fronthauls on eth backhaul connection 2022-03-25 12:14:00 +01:00
Anjan Chanda
89c58e227c ieee1905: 4.6.24 2022-03-25 10:50:15 +01:00
Anjan Chanda
e706738f96 map-controller: 6.0.13 2022-03-25 10:18:18 +01:00
Sukru Senli
55a1541818 sulu: 0.2.33 2022-03-25 10:15:07 +01:00
vdutta
10e62c21f4 obuspa: Fix datatype conversions in events payload 2022-03-25 10:29:54 +05:30
vdutta
b37aa436ec uspd: Added dataelements.Associated and Disassociated events 2022-03-25 10:22:36 +05:30
vdutta
5fff1f2033 bbf: 6.6.15 2022-03-24 17:30:08 +05:30
vdutta
7affe60a46 obuspa: Updated CreationDate of subscriptions 2022-03-24 13:21:48 +05:30
vdutta
5a3d08ba6d icwmp: Updated Readme 2022-03-24 09:24:35 +05:30
vdutta
82cbab5ab1 obuspa: Added minimal USPAgent bbf json plugin 2022-03-23 21:19:23 +05:30
Janusz Dziedzic
2e04d78a14 easy-soc-libs: 6.4.40
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-03-22 19:43:26 +00:00
Amin Ben Ramdhane
fc2f823119 bbf: 6.6.14 2022-03-22 20:17:07 +01:00
sandeep
cbf545ac16 qosmngr:Updated script to handle default value of QoS.Classification.{i}.VLANIDCheck 2022-03-22 18:52:55 +05:30
Sukru Senli
ce077af70f port-management: inclide /lib/network 2022-03-22 14:03:46 +01:00
vdutta
fac288f20b bbf: Fix wifi neighbor scan result 2022-03-21 15:08:44 +05:30
Amin Ben Ramdhane
b0828849bd bbf: 6.6.12 2022-03-20 20:11:04 +01:00
Jakob Olsson
39855bba25 map-agent: 7.1.25 2022-03-18 17:37:23 +01:00
Piotr Kubik
bf4bc1a299 peripheral_manager: Rename leds_manager to ledmngr 2022-03-18 15:58:45 +00:00
Jakob Olsson
bf6a343b97 map-controller: 6.0.12 2022-03-18 15:00:23 +01:00
Jakob Olsson
3d592d1dad wfadatad: 6.11.3 2022-03-18 13:54:36 +01:00
Piotr Kubik
d56da82dc9 peripheral_menager: Move iopsys led service to peripheral_manager 2022-03-18 11:21:19 +00:00
Sukru Senli
1510578835 sulu: 0.2.32 2022-03-18 09:47:53 +01:00
Sukru Senli
a1170e71a7 netmode: create netmodes folder if saving mode is needed 2022-03-17 17:41:50 +01:00
Filip Matusiak
6eee7361c2 map-agent: validate dynamic backhaul params 2022-03-17 13:32:22 +00:00
Jakob Olsson
a294c93902 map-agent: 7.1.24 2022-03-17 14:30:43 +01:00
Jakob Olsson
9f9626afb0 wifimngr: 14.0.7 2022-03-17 13:15:35 +01:00
Amin Ben Ramdhane
36ce5e1576 bbf: 6.6.11 2022-03-17 12:36:34 +01:00
Sukru Senli
3d545d9945 port-management: set speed based on capability 2022-03-17 10:56:46 +01:00
Jani Juvan
d756a2035d econet: Restore correct commit for econet uboot 2022-03-17 09:57:29 +01:00
Jani Juvan
175d381fb9 Update feed [ iopsys ] package [ u-boot ]
-------------------------------------------------------------------------------
* cc5b0b236c ex400: Set boot bank fallback attributes during upgrade
-------------------------------------------------------------------------------
commit cc5b0b236c4536ad4b694407f8ea258c61aaa76c
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-25 16:43:08 +0100

    ex400: Set boot bank fallback attributes during upgrade

Base directory -> /
 cmd/iopsys_upgrade.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
2022-03-17 09:43:38 +01:00
Jakob Olsson
6e4c42caaa map-agent: init.d: remove correct multiap.backhaul file upon restart 2022-03-16 16:51:31 +01:00
Grzegorz Sluja
f43f8fd966 dectmngr: Fix for setting model-id in DCX81
2869a87 Fix undefined reference to LOG_DECT_DEBUG when ENABLE_DECTMNGR_DEBUG=1
b91368e Restart CMBS target after model-id is changed
2022-03-16 12:41:10 +01:00
vdutta
f1f75c0b6b obuspa: Added websocket support in uci 2022-03-16 16:29:00 +05:30
Jakob Olsson
f9917d4ab7 map-agent: multiap: remove brcm prefixes 2022-03-16 09:57:16 +01:00
Jakob Olsson
3bc4565eb8 map-agent: 7.1.23 2022-03-16 09:56:59 +01:00
Jakob Olsson
de3f8bc4a4 wfadatad: 6.11.2 2022-03-15 16:41:47 +01:00
Jakob Olsson
27446d78f9 map-controller: 6.0.11 2022-03-15 16:40:08 +01:00
vdutta
cfe4dda3fc swmodd: Updated offline install for template 2022-03-15 19:33:33 +05:30
Jakob Olsson
a6910c046d map-topology: 3.2.9 2022-03-14 17:27:49 +01:00
Jakob Olsson
997d2d2ff5 map-agent: 7.1.22 2022-03-14 17:08:47 +01:00
Jakob Olsson
507a565080 ieee1905: 4.6.22 2022-03-14 17:04:44 +01:00
Jakob Olsson
10c4073908 Revert "ieee1905: 4.6.22"
This reverts commit 5d1bbf98e1.
2022-03-14 17:04:22 +01:00
Jakob Olsson
5d1bbf98e1 ieee1905: 4.6.22 2022-03-14 17:04:08 +01:00
Jakob Olsson
0f5e784719 ieee1905: 4.6.21 2022-03-14 15:11:48 +01:00
Jakob Olsson
c270557622 map-topology: 3.2.8 2022-03-14 14:06:22 +01:00
Sukru Senli
a84277895e sulu: 0.2.31 2022-03-14 13:28:08 +01:00
vdutta
8c86c9092b bbf: 6.6.10 2022-03-14 17:25:33 +05:30
vdutta
fad159b675 uspd: 2.2.2 2022-03-14 17:22:36 +05:30
Jakob Olsson
4f8f1d9088 map-agent: multiap: dont commit to wireless when writing bssid to bsta
This causes unnecessary wireless commits upon connection, causing
wifimngr to go down and up.
2022-03-14 10:22:13 +01:00
Stanislaw Gruszka
0270bff547 wfadatad: 6.11.1 2022-03-11 17:53:35 +01:00
nevadita.chatterjee
6aad51cb76 map-topology:3.2.7 2022-03-11 18:17:19 +05:30
vdutta
53d7e61083 bbf: 6.6.9
- wifi: Update DataElement Mappings
- use cron job to handle schedule Activate firmware image
- Add support for different ubus arg types
2022-03-11 17:49:47 +05:30
Stanislaw Gruszka
7b75bc85f3 wfadatad: 6.11.0 2022-03-11 12:03:20 +01:00
Janusz Dziedzic
cac2ba3726 easy-soc-libs: 6.4.39
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-03-11 10:26:28 +00:00
vdutta
7dccc922e1 icwmp: 8.3.5 2022-03-11 15:39:29 +05:30
vdutta
0dc0da4c83 xmppc: 1.0.3 2022-03-11 15:28:38 +05:30
vdutta
3554edcff0 uspd: 2.2.1 2022-03-11 15:26:27 +05:30
Sukru Senli
603ecff2a2 sulu: 0.2.30 2022-03-11 09:48:15 +01:00
vdutta
969e757401 udpechoserver: 1.0.3 2022-03-11 13:59:34 +05:30
vdutta
fee4015a35 twamp: 1.1.1 2022-03-11 13:56:40 +05:30
vdutta
a5493549de swmodd: 2.1.1 2022-03-11 13:50:43 +05:30
Jakob Olsson
ee4c55b8cc map-agent: 7.1.21 2022-03-11 09:00:38 +01:00
vdutta
951ffbc2f6 bulkdata: 1.0.4 2022-03-11 13:07:19 +05:30
Jakob Olsson
bce1cf35f1 map-controller: 6.0.10 2022-03-10 16:47:15 +01:00
Marek Puzyniak
f1d07dcbb9 easy-soc-libs: 6.4.38
Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>
2022-03-10 15:37:56 +00:00
Sukru Senli
2c277a0d9f map-agent: merge different ways of doing backhaul detection 2022-03-10 08:53:43 +00:00
vdutta
690415ef8d bbf: 6.6.8 2022-03-10 12:18:09 +05:30
vdutta
a3f93465e4 icwmp: 8.3.4 2022-03-10 10:08:54 +05:30
Janusz Dziedzic
8a181eac45 map-agent: enable only onboarded bands
This is important when we are using
default_disabled UCI setting - which disable
network wpa_supplicant block.

Before we could enable network, so default_disabled
could work incorrectly.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-03-09 14:22:53 +00:00
Jakob Olsson
dcebd73bdf map-agent: 7.1.20 2022-03-09 15:22:35 +01:00
Jakob Olsson
71f1eee194 map-agent: 7.1.19 2022-03-09 13:21:39 +01:00
Hemlata Bhatt
88cb305259 Static code analysis update for endptmngr due to the upgrading of docker 2022-03-09 10:10:06 +01:00
Omar Kallel
9d4d59be76 icwmp: 8.3.3 2022-03-09 10:06:35 +01:00
Hemlata Bhatt
b2416bc33a Static code analysis update for dectmngr 2022-03-09 10:02:55 +01:00
Sukru Senli
a0fc9fe1d9 iop: introduce Config.in defining TARGET_CUSTOMER and TARGET_VERSION 2022-03-08 18:53:31 +01:00
Amin Ben Ramdhane
cb056f5898 bbf: 6.6.7 2022-03-07 17:45:42 +01:00
Jakob Olsson
e4d957cb0c map-agent: 7.1.18 2022-03-07 17:30:40 +01:00
vdutta
b3c5219772 icwmp: 8.3.2 2022-03-07 15:32:02 +05:30
vdutta
ca1e74696e stunc: Align with libbbf_api 2022-03-07 11:41:18 +05:30
Sukru Senli
f4daa579da dslmngr, easy-qos, uboot: remove reference to intel_mips
misleading target support
2022-03-06 10:24:33 +01:00
Sukru Senli
5eb40eb826 iop: fix feed_update script 2022-03-05 12:35:57 +01:00
Sukru Senli
2948de9994 iop: feeds_update: do not hardcode targets 2022-03-05 12:28:02 +01:00
Jakob Olsson
bd3e0e31be map-agent: 7.1.17 2022-03-04 15:56:00 +01:00
Jakob Olsson
f1d113e5a3 map-controller: 6.0.9 2022-03-04 14:47:07 +01:00
vdutta
9b6b591a0f bbf: Select ssl utility lib 2022-03-04 15:58:01 +05:30
vdutta
9df30a95aa icwmp: Select ssl utility library
- Build time options to select ssl utility library, default is wolfssl
- Improvements in update script to initiate inform
2022-03-04 15:14:22 +05:30
vdutta
b5ae08af16 stunc: config to select ssl util library 2022-03-04 15:07:33 +05:30
Jakob Olsson
085459fa1e easy-soc-libs: 6.4.37 2022-03-04 10:34:39 +01:00
Jakob Olsson
099f0ef7c7 map-agent: 7.1.16 2022-03-04 10:32:49 +01:00
Jakob Olsson
f899371737 map-controller: 6.0.8 2022-03-04 10:31:42 +01:00
Alf Håkansson
e64bde330e evoice: log now routed to syslog instead of stdout 2022-03-04 08:51:28 +01:00
Alf Håkansson
db5dc9913c evoice: version 0.1 2022-03-03 17:40:18 +01:00
Jakob Olsson
54772028eb map-controller: 6.0.7 2022-03-03 17:05:45 +01:00
Sukru Senli
2260ef219e iop: config: remove mwan3 package 2022-03-03 17:00:24 +01:00
Jakob Olsson
b5fc63a737 map-topology: 3.2.6 2022-03-03 16:54:29 +01:00
Jakob Olsson
9588485c82 map-agent: 7.1.15 2022-03-03 15:14:00 +01:00
Janusz Dziedzic
97f0608370 easy-soc-libs: 6.4.36
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-03-03 12:59:52 +00:00
Jakob Olsson
4ea4755257 map-agent: 7.1.14 2022-03-03 11:15:07 +01:00
Jakob Olsson
b0a3a373af map-agent: 7.1.13 2022-03-03 09:17:31 +01:00
Anjan Chanda
a3ec91cc9e ieee1905: 4.6.20 2022-03-02 20:34:53 +01:00
Jakob Olsson
4e51aff215 map-agent: 7.1.12 2022-03-02 17:34:19 +01:00
Jakob Olsson
b0900b2b00 map-controller: 6.0.6 2022-03-02 14:55:47 +01:00
Jakob Olsson
a9dd5fc34a map-agent: 7.1.11 2022-03-02 12:22:06 +01:00
Hemlata Bhatt
bfc334346a Support log level configuration 2022-03-02 09:18:11 +01:00
Hemlata
4b0534dac7 Dectmngr: add a uci option dect.global.log_level for log level configuration 2022-03-01 12:50:48 +00:00
Jakob Olsson
cc5972c7c7 map-agent: 7.1.10 2022-03-01 13:15:11 +01:00
Jakob Olsson
8138e789ca wfadatad: 6.10.13 2022-03-01 11:16:12 +01:00
Amin Ben Ramdhane
afb6bb9ea6 bbf: 6.6.5 2022-02-28 21:01:37 +01:00
Arne Jonsson
8dd0fe1c76 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 21522c2 Minor changes from MR
* b3f2095 Use of inline-suppression to remove warnings
* a8fac3a Changes in order to pass cppcheck
* 09335f7 Fixed misc. compiler warnings
* fb8d4aa Make it possible to set max brightness per LED.
-------------------------------------------------------------------------------
commit 21522c2003b8c61904acc61ff97e54fc9b0c3c92
Author: Arne Jonsson <arne.jonsson@iopsys.eu>
Date: 2022-02-25 17:02:35 +0100

    Minor changes from MR

Base directory -> /
 src/button.c    | 2 --
 src/gpio_test.c | 2 --
 src/sx9512.c    | 1 -
 3 files changed, 5 deletions(-)
-------------------------------------------------------------------------------
commit b3f20950657e0ec7bcae9d4f32b9e06e4c83ece5
Author: Arne Jonsson <arne.jonsson@iopsys.eu>
Date: 2022-02-25 13:56:04 +0100

    Use of inline-suppression to remove warnings

Base directory -> /
 .gitlab-ci.yml     |  1 +
 src/catv.c         | 51 +++++++++++++++++++++++++--------------------------
 src/led.c          |  4 ++++
 src/touch_sx9512.c |  1 -
 4 files changed, 30 insertions(+), 27 deletions(-)
-------------------------------------------------------------------------------
commit a8fac3ad1123790b698b08cfb27afe077e59b098
Author: Arne Jonsson <arne.jonsson@iopsys.eu>
Date: 2022-02-24 09:48:39 +0100

    Changes in order to pass cppcheck

Base directory -> /
 src/button.c             | 723 ++++++++++++++++++++++++-----------------------
 src/catv.c               |  40 ++-
 src/catv_monitor.c       |   2 +-
 src/eco_bug.c            |   2 +-
 src/gpio_led.c           |  13 +-
 src/gpio_test.c          |  14 +-
 src/i2c.c                |   2 +-
 src/led.c                |  37 ++-
 src/peripheral_manager.c |  71 ++---
 src/sfp.c                |   2 +-
 src/sim_button.c         |   3 +-
 src/sx9512.c             |  30 +-
 src/touch_sx9512.c       |  36 +--
 13 files changed, 509 insertions(+), 466 deletions(-)
-------------------------------------------------------------------------------
commit 09335f7fccb7d9b363f5a261703995241dfeb078
Author: arne.jonsson <arne.jonsson@iopsys.eu>
Date: 2022-02-17 18:10:07 +0100

    Fixed misc. compiler warnings

Base directory -> /
 src/button.c              | 42 ++++--------------------------------------
 src/catv.c                | 12 ++++--------
 src/catv_monitor.c        |  3 ++-
 src/gpio.h                | 16 ++++++++--------
 src/gpio_button.c         |  1 -
 src/gpio_led.c            |  9 +++++----
 src/gpio_linux.c          |  6 ------
 src/gpio_shift_register.h |  6 +-----
 src/server.c              |  2 +-
 src/sfp.c                 |  4 ++--
 src/sx9512.c              |  2 +-
 src/touch_sx9512.c        | 14 +++++++-------
 12 files changed, 35 insertions(+), 82 deletions(-)
-------------------------------------------------------------------------------
commit fb8d4aa476ce4b652719672c309b7be71b3f69ce
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2022-02-11 15:42:34 +0000

    Make it possible to set max brightness per LED.

Base directory -> /
 src/gpio_led.c | 78 ++++++++++++++++++++++++++++++++++++++--------------------
 1 file changed, 51 insertions(+), 27 deletions(-)
-------------------------------------------------------------------------------
2022-02-28 16:06:32 +01:00
Filip Matusiak
6a23c72c1f map-controller: update encryption options in script 2022-02-28 15:15:37 +01:00
Jakob Olsson
5760e1cda2 map-controller: 6.0.5 2022-02-28 14:44:13 +01:00
Jakob Olsson
4baed7b0a1 ieee1905: 4.6.19 2022-02-28 14:44:13 +01:00
sverma
f189c7a9bb wfadatad: 6.10.12 2022-02-28 19:09:22 +05:30
Yalu Zhang
466424036b Update package endptmngr
Change the way to configure tx/rx gain
2022-02-28 11:38:51 +01:00
Anjan Chanda
b49987d183 wfadatad: 6.10.11 2022-02-26 08:57:38 +01:00
Jakob Olsson
c198c8a4ff map-agent: 7.1.9 2022-02-25 17:29:50 +01:00
Anjan Chanda
7ceeac6e61 wfadatad: 6.10.10 2022-02-25 15:47:21 +01:00
Jakob Olsson
3dfcaf1457 ieee1905: 4.6.18 2022-02-25 15:20:25 +01:00
Jakob Olsson
d614a075d9 ieee1905: 4.6.17 2022-02-25 14:23:22 +01:00
Jakob Olsson
0182049eee map-topology: 3.2.5 2022-02-25 12:46:42 +01:00
vdutta
dc9d51e67e bbf: 6.6.4 2022-02-25 16:53:57 +05:30
Orr Mazor
ee4d70ba6d Add support for DHCP ACS discovery
Signed-off-by: Orr Mazor <o.mazor@genexis.eu>
2022-02-25 11:13:56 +00:00
vdutta
77c7475cc7 icwmp: Switch to wolfssl 2022-02-25 15:53:14 +05:30
vdutta
3fbdece036 stunc: Switch to wolfssl 2022-02-25 15:19:06 +05:30
vdutta
1a471f4dac bbf: Switch to wolfssl 2022-02-25 15:14:50 +05:30
Jani Juvan
3dc5165e79 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 0ebaf1e fdtextract: Add build test to ci
* 345b718 Harden compile flags
* f766c74 Fixed sign-compare warnings
* 19c8fda Customize cppcheck suppressions
* e38ad6a Add missing path variable for static code analysis
* 59b9234 Fix static code analysis errors
* d1eab3e Add CI tests
-------------------------------------------------------------------------------
commit 0ebaf1e7d1f09318ae75d0f475a25280742b790e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-25 08:02:26 +0000

    fdtextract: Add build test to ci

Base directory -> /
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
-------------------------------------------------------------------------------
commit 345b7187e7d115014e04354362c350d44402223b
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-23 10:56:17 +0100

    Harden compile flags

Base directory -> /
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit f766c7417dbeb0ccdd34290137c9e01b2fd9c57d
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-23 10:53:38 +0100

    Fixed sign-compare warnings

Base directory -> /
 fdtextract.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 19c8fda5a77c87091ff9925938579e53028f4863
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-16 13:54:52 +0100

    Customize cppcheck suppressions

Base directory -> /
 .gitlab-ci.yml | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit e38ad6a047d72bad22177ca924c8dee83df81463
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-16 12:49:54 +0100

    Add missing path variable for static code analysis

Base directory -> /
 .gitlab-ci.yml | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 59b92340e78f58bf4b7ea4c04458eb99a63ea31e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-14 10:28:16 +0100

    Fix static code analysis errors

Base directory -> /
 fdtextract.c | 9 ++++++---
 util.c       | 8 ++++----
 2 files changed, 10 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit d1eab3e73f57f2e58ef700b3e94a12db1ed728ad
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2022-02-11 15:56:14 +0100

    Add CI tests

Base directory -> /
 .gitlab-ci.yml | 9 +++++++++
 1 file changed, 9 insertions(+)
-------------------------------------------------------------------------------
2022-02-25 09:36:02 +01:00
Jakob Olsson
e764096bc6 map-agent: 7.1.8 2022-02-24 15:49:23 +01:00
Jani Juvan
a7f983aaa1 fdtextract: Move CFLAGS to package 2022-02-24 10:17:09 +01:00
Amin Ben Ramdhane
160165e80f bbf: 6.6.2 2022-02-23 20:31:16 +01:00
Anjan Chanda
996cb66482 map-controller: 6.0.4: add Config.in 2022-02-23 18:36:12 +01:00
Jakob Olsson
0b7cd0e437 map-controller: 6.0.4 2022-02-23 18:30:28 +01:00
Jakob Olsson
53e48827f3 map-agent: 7.1.7 2022-02-23 18:29:33 +01:00
Stanislaw Gruszka
a4e2799b90 multi-ap: ts rework for eth suport 2022-02-23 18:29:08 +01:00
Anjan Chanda
a5a05dffa8 map-agent: 7.1.6 2022-02-23 18:29:08 +01:00
Anjan Chanda
9c9ab20ce8 map-agent: 7.1.5 2022-02-23 18:29:08 +01:00
Anjan Chanda
a225352493 ieee1905: 4.6.16 2022-02-23 18:29:08 +01:00
Jakob Olsson
0d9b296de6 easy-soc-libs: 6.4.35 2022-02-23 14:45:28 +01:00
Stanislaw Gruszka
95a5b5ee10 wfadatad: 6.10.6 2022-02-23 13:21:30 +01:00
Nevadita
128264643c map-topology: 3.2.4 2022-02-23 12:02:26 +00:00
vdutta
0f4cde377e sulu: Deploy config parameters in json 2022-02-23 16:33:47 +05:30
Jakob Olsson
c8614876b6 map-agent: 7.1.4 2022-02-22 16:02:04 +01:00
Jakob Olsson
4a58161994 map-controller: 6.0.3 2022-02-22 11:40:44 +01:00
Jakob Olsson
b9fd030365 map-agent: 7.1.3 2022-02-22 11:40:44 +01:00
Jakob Olsson
631617c16c map-agent: multiap: retain wps credentials in ieee1905 config 2022-02-22 11:40:44 +01:00
vdutta
54010769ed obuspa: Fix startup validations
- Fix validations in init script for the uci config
- Dump outgoing events in logs, if configured
- static code warning fixes
2022-02-22 12:24:04 +05:30
Jakob Olsson
f126ed414a map-agent: 7.1.2 2022-02-21 17:18:03 +01:00
Amin Ben Ramdhane
de0f3cca89 bbf: 6.6.1 2022-02-21 15:56:44 +01:00
sverma
534c63780d wfadatad: 6.10.5 2022-02-21 19:28:10 +05:30
Jakob Olsson
b6ab2574be map-controller: 6.0.2 2022-02-21 12:47:36 +01:00
vdutta
8bf3db77cc bbf: 6.6.0 2022-02-21 14:56:24 +05:30
vdutta
7507170ff0 swmodd: Fix static analysis warnings 2022-02-21 14:38:34 +05:30
vdutta
0c04002028 uspd: Fix static code warnings 2022-02-21 14:27:40 +05:30
Jakob Olsson
f3bb3ef39b map-agent: 7.1.1 2022-02-18 15:44:33 +01:00
Amin Ben Ramdhane
99d12f7829 bbf: 6.5.7 2022-02-18 15:40:15 +01:00
Jakob Olsson
97906205ff map-controller: 6.0.1 2022-02-18 15:23:06 +01:00
Jakob Olsson
8cc7e5c2ba map-topology: 3.2.3 2022-02-18 15:12:45 +01:00
Jakob Olsson
24fdb79b7c ieee1905: 4.6.10 2022-02-18 12:46:59 +01:00
Filip Matusiak
b07664f7d5 map-topology: validate config options 2022-02-18 11:58:54 +01:00
Filip Matusiak
c54e44a820 ieee1905: validate config options 2022-02-18 11:58:54 +01:00
Filip Matusiak
cf44c1a030 map-agent: validate config options 2022-02-18 11:58:54 +01:00
Filip Matusiak
18c4ab8c9e map-controller: validate config options 2022-02-18 11:58:54 +01:00
Arun Muthusamy
f27619294e qosmngr: Rearrange queue and shaper function call execution order 2022-02-18 07:19:54 +00:00
Amin Ben Ramdhane
619b267dac bbf: 6.5.6 2022-02-17 17:13:01 +01:00
Jakob Olsson
04ab56415a map-agent: 7.1.0 2022-02-17 16:56:43 +01:00
Jakob Olsson
bea0c35f8c map-controller: 6.0.0 2022-02-17 16:56:43 +01:00
Amin Ben Ramdhane
8946aa5dee bbf: 6.5.5 2022-02-16 15:47:01 +01:00
Stanislaw Gruszka
e390ee36bf wfadatad: 6.10.4 2022-02-16 11:53:31 +01:00
Yalu Zhang
09011fdbcc dectmngr-3.5.1: Fix a bug that handsets cannot receive incoming calls reliably 2022-02-16 10:37:10 +01:00
Nevadita
d15b40339d map-topology: 3.2.2 2022-02-16 08:36:11 +00:00
Grzegorz Sluja
e0a8c705af endptmngr: Add support for RTCP-XR packets 2022-02-16 09:03:31 +01:00
Jakob Olsson
ff83d37e78 map-agent: 7.0.2 2022-02-15 10:20:36 +01:00
Sukru Senli
88b0cf56a9 remove un-used/maintained packages 2022-02-14 18:13:12 +01:00
Jakob Olsson
dba3993ff6 map-agent: 7.0.1 2022-02-14 17:55:26 +01:00
Hemlata Bhatt
2b3c5fa177 dectmngr : don't allow failure in static code analysis 2022-02-11 17:45:24 +01:00
Hemlata Bhatt
e4bdbba9b6 endptmngr :Enable compiling options -Wall and -Werror 2022-02-11 17:32:02 +01:00
vdutta
7f808cf58d icwmp: 8.2.27 2022-02-11 21:34:06 +05:30
Hemlata
135cdad388 Enabled compiling options -Wall -Werror for endptmngr and dectmngr 2022-02-11 15:10:21 +00:00
Stanislaw Gruszka
d656e27020 wfadatad: 6.10.3 2022-02-11 16:08:15 +01:00
vdutta
fbc58f5635 obuspa: Use get_supported_dm for registration 2022-02-11 19:55:23 +05:30
vdutta
e940d301c3 obuspa: Integrate 5.0 release 2022-02-11 19:15:34 +05:30
vdutta
d7ae81bcc8 swmodd: Fix static code warnings 2022-02-11 19:06:13 +05:30
vdutta
f003c8a2b7 bbf: 6.5.4 2022-02-11 18:58:38 +05:30
Stanislaw Gruszka
153c11902a wfadatad: add debug options and local build to makefile 2022-02-11 12:28:15 +00:00
Stanislaw Gruszka
f5017094a8 map-agent: 7.0.0: traffic separation fixes 2022-02-11 12:25:01 +01:00
Hemlata Bhatt
e94d2fd218 bbf :Replace vendor extension for feature codes with PrefixRange and FacilityAction 2022-02-10 15:19:45 +01:00
Anjan Chanda
22790f81ed ieee1905: 4.6.8 2022-02-10 14:32:31 +01:00
Amin Ben Ramdhane
d1d9794962 bbf: 6.5.3 2022-02-10 12:33:17 +01:00
nevadita.chatterjee
ef4d9334cf map-topology:3.2.1 2022-02-10 14:22:39 +05:30
Jakob Olsson
f75a9f9d8d map-controller: 5.4.7 2022-02-09 16:44:29 +01:00
Sukru Senli
55ab8c9104 sulu: 0.2.28 2022-02-09 12:43:28 +01:00
Sukru Senli
0c6c6f6cc4 netmode: do not run netmode if mode is same as last saved mode 2022-02-08 23:04:37 +01:00
Hemlata Bhatt
0317645cd1 bbf :Replace vendor extension for feature codes with PrefixRange and FacilityAction 2022-02-08 17:29:31 +01:00
Sukru Senli
e12cf6ffa2 netmode: do not rely on mode folder 2022-02-08 15:08:35 +01:00
Amin Ben Ramdhane
1bf745f679 bbf: 6.5.2 2022-02-08 13:56:48 +01:00
Sukru Senli
53c2e2f0a2 iop: classify config 2022-02-08 11:49:02 +01:00
vdutta
0173920c83 swmodd: 2.0.23 2022-02-08 11:15:27 +05:30
vdutta
2bc7ff558e stunc: 1.0.4 2022-02-08 10:58:46 +05:30
vdutta
df0b0ec7ea udpechoserver: Added static code analysis pipeline 2022-02-08 10:55:14 +05:30
vdutta
e2a98f6cf1 uspd: 2.1.44 2022-02-08 10:03:46 +05:30
Sukru Senli
a169a13b47 netmode: do nothing if mode is not set 2022-02-07 21:17:04 +01:00
Amin Ben Ramdhane
1fbbaa8c59 udpechoserver: 1.0.1 2022-02-07 12:46:44 +01:00
Amin Ben Ramdhane
b214f5213b stunc: 1.0.3 2022-02-07 12:45:31 +01:00
Jakob Olsson
367a2e6084 map-agent: 6.6.4 2022-02-07 12:33:20 +01:00
Jakob Olsson
1e0f65be66 map-controller: 5.4.6 2022-02-07 12:33:20 +01:00
Amin Ben Ramdhane
6d941d04b9 bbf: 6.5.1 2022-02-07 11:30:32 +01:00
Sukru Senli
e3eb968b05 netmode: remove default netmodes 2022-02-06 14:16:18 +01:00
Sukru Senli
f67eca787f netmode: strip netmoded out of netmode package 2022-02-06 13:33:50 +01:00
Jakob Olsson
dace8147de map-agent: 6.6.3 2022-02-04 16:06:47 +01:00
vdutta
5812d812b1 owsd: 1.1.4 2022-02-04 19:07:49 +05:30
Yalu Zhang
69678f1dbc dectmngr-3.5.0: Upgrading to CMBS 4.13 Build 16 official release
This includes both the binary firmware on the target and dectmngr on the host.
2022-02-04 14:31:17 +01:00
Anjan Chanda
e2d4b3a6f5 wifimngr: 14.0.6 2022-02-04 14:15:50 +01:00
Anjan Chanda
2ea1145f43 ieee1905: 4.6.4 2022-02-04 14:11:11 +01:00
Sukru Senli
dcbd27282d iop: config: remove unused package 2022-02-04 10:58:05 +01:00
Amin Ben Ramdhane
f11c6bdbb9 bbf: 6.5.0 2022-02-04 10:51:35 +01:00
vdutta
70db2e6c67 swmodd: Support for fallback download
- In DuInstall if download failed inside container, download in host as
   fallback and install with local path
 - Added swmodd uci file
2022-02-04 13:26:23 +05:30
vdutta
28f1297db7 icwmp: 8.2.26 2022-02-04 12:09:06 +05:30
Amit KUmar
6e314334d8 easy-soc-libs: libqos static warning corrected 2022-02-04 11:53:59 +05:30
Sukru Senli
b2562f6fc1 qosmngr: read socinfo from /proc 2022-02-03 17:12:51 +01:00
Hemlata Bhatt
58a26135c5 dectmngr: Remove extra verbose syslog for firmware upgrading on the base station 2022-02-03 13:48:40 +01:00
Jakob Olsson
a035fb4d6e map-agent: 6.6.2 2022-02-03 12:53:48 +01:00
Amit KUmar
da7df410a8 easy-soc-libs: dsl ethernet static error resolved 2022-02-03 14:55:00 +05:30
Jakob Olsson
0415ed55c4 map-controller: 5.4.5 2022-02-02 17:07:22 +01:00
Jakob Olsson
2e7219ba46 map-agent: 6.6.1 2022-02-02 17:07:22 +01:00
Jeff Lyons
0d198eca97 Added additional header files (to allow additional .so modules to be built) 2022-02-02 11:19:52 +00:00
Suvendhu Hansa
f5575df624 umoci: Added package for oci image management 2022-02-02 07:16:24 +00:00
Sukru Senli
ad7067e57b crun: remove as it is now available under openwrt feed packages 2022-02-01 10:28:40 +01:00
Jakob Olsson
266b0029b4 wifimngr: 05-wifi: update to new map backhaul file 2022-01-31 15:06:49 +01:00
Jani Juvan
473c387777 gryphon-led-module: use new toolchain variables 2022-01-31 12:50:45 +01:00
Andreas Gnau
44fd9e6ed1 iop: config: LuCI: Do not take in libiwinfo-lua and bootstrap theme
The luci-nginx metapackage selects some packages that we do not want to
select

1. luci-theme-bootstrap: Not needed, we use luci-theme-openwrt-2020
2. libiwinfo-lua: Not needed on non-WiFi targets such as panther, but
   will be pulled in by other LuCI dependencies
2022-01-28 16:29:15 +01:00
Sukru Senli
3d31052d40 sulu: 0.2.27 2022-01-28 14:33:01 +01:00
Erik Karlsson
dc56c93b73 icwmp: Use correct syntax with tr
The tr command does not take regular expressions. In addition,
unquoted use of [] is unsafe as it is subject to wildcard expansion by
the shell.
2022-01-28 12:26:07 +00:00
Amin Ben Ramdhane
0dd95029e6 bbf: 6.4.18 2022-01-28 13:20:18 +01:00
Amin Ben Ramdhane
5f92faf0a1 bbf: 6.4.17 2022-01-28 11:55:09 +01:00
Sukru Senli
31ed1f802b iop: genconfig: remove unused targets 2022-01-27 16:42:43 +01:00
Jakob Olsson
c73ac6665b map-agent: 6.6.0: multiap.backhaul 2022-01-27 15:48:14 +01:00
Sukru Senli
431d1fbf34 port-management: populate ports config from device-tree if db does not exist 2022-01-27 14:55:41 +01:00
Sukru Senli
2ddb4fb5fc iop: genconfig: remove unsupported targets 2022-01-27 11:15:34 +01:00
vdutta
1835fe7a50 swmodd: Remove cgroup config from iopsys template 2022-01-27 13:49:51 +05:30
vdutta
d0e30dade4 icwmp: 8.2.25 2022-01-27 12:03:35 +05:30
Amin Ben Ramdhane
be867f1b25 uspd: 2.1.43 2022-01-26 13:22:34 +01:00
Amin Ben Ramdhane
9b2318242b bbf: 6.4.16 2022-01-26 13:21:28 +01:00
Anjan Chanda
8fee87c3c6 ieee1905: 4.6.0 2022-01-26 10:09:41 +01:00
vdutta
2fbdb4b3d2 obuspa: Added coverage in module test 2022-01-26 12:27:04 +05:30
Rahul
337c9a52f9 qosmngr: fix static code warnings
Updated the makefile version and bump the minor version
2022-01-25 18:32:09 +05:30
vdutta
6c86adbf86 uspd: 2.1.42 2022-01-25 18:19:56 +05:30
vdutta
e316bea78f bbf: 6.4.15 2022-01-25 18:17:49 +05:30
vdutta
233d714564 icwmp: Use db device for sn instead of db hw 2022-01-25 10:32:05 +05:30
Sukru Senli
13b742fe44 sulu: 0.2.26 2022-01-24 19:02:23 +01:00
Sukru Senli
c23ae5dad1 obuspa: read oui and sn from db device instead of db hw 2022-01-24 17:46:50 +01:00
Fredrik Eriksson
3c7aa191ea iop/config: deselect glib2
To our knowledge this is not needed and takes space.
2022-01-24 16:38:26 +00:00
Jakob Olsson
d8bbc9de81 map-agent: 6.5.3 2022-01-24 13:16:43 +01:00
Sukru Senli
92e353bb49 questd: 5.2.3 2022-01-21 17:08:57 +01:00
Sukru Senli
17fd78bc94 Revert "sulu: install sulu-full instead"
This reverts commit 68ca3b1d07.
2022-01-21 15:21:52 +01:00
Sukru Senli
68ca3b1d07 sulu: install sulu-full instead 2022-01-21 15:16:20 +01:00
Jakob Olsson
05a5616347 ieee1905: 4.2.2 2022-01-21 13:25:36 +01:00
Jakob Olsson
90f102b36a map-controller: 5.4.4 2022-01-21 11:34:22 +01:00
Sukru Senli
3e95e599e4 sulu: 0.2.25 2022-01-20 21:05:05 +01:00
Jakob Olsson
12d1e79339 map-controller: 5.4.3 2022-01-20 17:24:15 +01:00
Jakob Olsson
9ffed931c6 map-agent: 6.5.2 2022-01-20 17:22:58 +01:00
Amin Ben Ramdhane
aa8949e9e4 bbf: 6.4.14 2022-01-20 15:21:11 +01:00
sandeep sharma
c31e10cd88 Fixed: QoS statistics for Eagle LAN ports end up on the wrong queue 2022-01-20 12:38:44 +00:00
Amin Ben Ramdhane
1257c11c69 bbf: 6.4.13 2022-01-18 17:55:00 +01:00
vdutta
147c6de58c obuspa: 4.1.0.17 2022-01-18 21:22:48 +05:30
Jakob Olsson
b821b189d1 map-controller: 5.4.2 2022-01-17 14:00:16 +01:00
Jakob Olsson
cae7d71907 map-controller: 5.4.1 2022-01-17 10:48:25 +01:00
vdutta
92748d489a uspd: 2.1.41 2022-01-17 14:41:44 +05:30
Jakob Olsson
9847af7e74 map-agent: 6.5.1 2022-01-17 10:02:52 +01:00
Anjan Chanda
8e98dc9526 map-controller: 5.4.0 2022-01-14 21:11:42 +01:00
Anjan Chanda
1fe4fbdd4e wfadatad: 6.10.2 2022-01-14 21:11:06 +01:00
Anjan Chanda
e4f24b2223 map-topology: 3.2.0 2022-01-14 21:10:42 +01:00
Anjan Chanda
ec905407f0 map-agent: 6.5.0 2022-01-14 21:09:52 +01:00
vdutta
0c0c7316fa bbf: 6.4.12 2022-01-14 21:03:38 +05:30
vdutta
72da7b55c2 icwmp: 8.2.23 2022-01-14 20:54:34 +05:30
vdutta
60fe16d7ce swmodd: 2.0.20 2022-01-14 20:53:18 +05:30
Jakob Olsson
cb1fa79dcd ieee1905: 4.2.2 2022-01-14 14:43:09 +01:00
vdutta
15ab89ef7d icwmp: Fix no-wan-tr069-inform issue 2022-01-14 13:14:00 +05:30
Andreas Gnau
975f4e7552 Update feed [ iopsys ] package [ u-boot ] variant [ex400]
This is mostly for documentation purposes. U-Boot for EX400 does no longer
build with latest binutils used in OpenWrt 21.02, which is why we do not ship
U-Boot in our images for EX400 at the moment. This is the U-Boot that has been
shipped in the migrator image
EX400-X-IOPSYS-6.3.0ALPHA4-28-g556c4319d1-U-Boot-826af23a77-210826_1419-ubifs-MIGRATOR.y3

-------------------------------------------------------------------------------
* 826af23a77 ex400: Autodetect squashfs vs UBIFS
* 3077d68ddf ex400: Enable setexpr command
* 5aa83e12bc cmd: itest: correct calculus for long format
* 0cd508d8dd ex400: enable network by default
* 2fdb548516 use iopsys FIT image when doing a web upgrade
* b4f73f52f5 added a new command to flash an an iopsys FIT image
* dd6f5d4609 ex400: update environment variables to be aligned with IOPSYS 6 design
* cb68482deb Merge branch 'ex400_add_fit_support' into 'ex400'
* 4e46ac74e0 ex400: uboot: add FIT support
-------------------------------------------------------------------------------
commit 826af23a7723ee05dc9bc023d12a83f44aa649f4
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-25 14:29:46 +0200

    ex400: Autodetect squashfs vs UBIFS

Base directory -> /
 include/configs/inteno_mt7621.h | 37 ++++++++++++++++++++++++-------------
 1 file changed, 24 insertions(+), 13 deletions(-)
-------------------------------------------------------------------------------
commit 3077d68ddf31a0ad999485e5144098a3399ce0c5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-10 12:24:00 +0200

    ex400: Enable setexpr command

    Enable setexpr command in config. This is needed for calculating the UBI
    volume id of the rootfs volume which is needed for squashfs as root.

Base directory -> /
 configs/ex400_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5aa83e12bc1195366485b70cc6dfc41f0d5f992f
Author: Sebastien Colleur <sebastienx.colleur@intel.com>
Date: 2017-02-10 15:59:15 +0300

    cmd: itest: correct calculus for long format

    itest shell command doesn't work correctly in long format when doing
    comparaison due to wrong mask value calculus that overflow on 32 bits
    values.

    Signed-off-by: Sebastien Colleur <sebastienx.colleur@intel.com> Reviewed-by:
    Simon Glass <sjg@chromium.org>
    (cherry picked from commit 2c79fd401982c7d6c5e77c09bc7035f8a3766c88)

Base directory -> /
 cmd/itest.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 0cd508d8dd077d62baa59a0d74e2e5f24cff8926
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-27 16:36:35 +0200

    ex400: enable network by default

    as the equipement is used for development purpose only then enable network
    by default for convinence

Base directory -> /
 board/inteno/common/board.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 2fdb54851610838e35e4d889a0fbc14fb766a78b
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:52:32 +0200

    use iopsys FIT image when doing a web upgrade

Base directory -> /
 board/inteno/common/httpd.c | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)
-------------------------------------------------------------------------------
commit b4f73f52f515fb19552b4a5183a5aaecbb4b4cd1
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:49:34 +0200

    added a new command to flash an an iopsys FIT image

Base directory -> /
 cmd/Makefile         |   1 +
 cmd/iopsys_upgrade.c | 289 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 290 insertions(+)
-------------------------------------------------------------------------------
commit dd6f5d4609df08d808931c4ca01e186d59cbbea1
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-07-23 10:43:18 +0200

    ex400: update environment variables to be aligned with IOPSYS 6 design

    Use separate volumne for kernel use u-boot for mtd name instead of uboot

    fix

Base directory -> /
 include/configs/inteno_mt7621.h | 40 +++++++++++++++-------------------------
 1 file changed, 15 insertions(+), 25 deletions(-)
-------------------------------------------------------------------------------
commit cb68482debf9b5a3ef7471cc4182f189ab743b09
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2021-03-24 10:10:17 +0000

    Merge branch 'ex400_add_fit_support' into 'ex400'

    ex400: uboot: add FIT support

    See merge request fork/uboot!2
Base directory -> /
 configs/ex400_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 4e46ac74e0944684590899f969de9b6335a8f69a
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2021-03-23 09:28:21 +0100

    ex400: uboot: add FIT support

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 configs/ex400_defconfig | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2022-01-12 17:41:46 +01:00
Amin Ben Ramdhane
a3a7c6da1b bbf: 6.4.11 2022-01-10 15:07:30 +01:00
vdutta
dca442ce01 bbf: 6.4.10 2022-01-10 09:04:32 +05:30
vdutta
6f00aa22fd icwmp: 8.2.21 2022-01-07 18:10:46 +05:30
Neeraj Bijalwan
575f5c9d19 icwmp: 8.2.20 2022-01-06 13:07:33 +00:00
Janusz Dziedzic
a699302f46 wifimngr: 05-wifi add multiap param
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-01-05 17:11:05 +00:00
vdutta
4ef7a8034b twamp: Added TWAMP Light support 2022-01-04 23:10:22 +05:30
Artee Roy
9675953bf6 Enables setting of bridge as a proxy interface.
Setting of dfault value for mcast interfaces.
2022-01-04 11:40:13 +00:00
Janusz Dziedzic
d3d4c87f82 easy-soc-libs: new version 6.4.34
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2022-01-03 15:58:47 +00:00
Bartlomiej Grzeskowiak
52ced81af6 uboot: allow ensemble uboot compilation
Not tested yet. Build succesfull.

Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
2022-01-03 15:45:54 +00:00
Amin Ben Ramdhane
20f17b81c5 bbf: 6.4.9 2021-12-31 22:24:25 +01:00
Grzegorz Sluja
aafcebaf3d endptmngr: Add averageRoundTripDelay rtp statistic 2021-12-30 12:29:07 +01:00
vdutta
6126333ad9 uspd: Updated schema updater algo 2021-12-30 12:59:22 +05:30
vdutta
fc15efe427 bbf: 6.4.8 2021-12-30 12:58:31 +05:30
Jakob Olsson
59d28497d9 map-controller: 5.3.0 2021-12-29 12:36:12 +01:00
Jakob Olsson
3a4a1b64bf map-agent: 6.4.0 2021-12-29 12:35:24 +01:00
Anjan Chanda
1ce127080e ieee1905: 4.2.1 2021-12-29 11:08:39 +01:00
Amit KUmar
f9a4bfa6d6 ponmngr: added omcid start 2021-12-28 15:18:38 +05:30
Grzegorz Sluja
e4365786b9 dectmngr-3.4.7 Retry mechanism in cmbs api init 2021-12-28 10:03:26 +01:00
Jakob Olsson
65c619060d wfadatad: enable respawn 2021-12-27 16:42:06 +01:00
Amin Ben Ramdhane
ef370bc886 bbf: 6.4.7 2021-12-27 15:26:06 +01:00
Rahul
0730c65372 qosmngr: resolve dscp to q mapping in L2 scenarios 2021-12-27 17:12:56 +05:30
Amin Ben Ramdhane
626e1241d6 bbf: 6.4.6 2021-12-26 15:45:25 +01:00
Amin Ben Ramdhane
b86544da9a bbf: 6.4.5 2021-12-24 11:00:06 +01:00
Yalu Zhang
3e38df2389 Revert 2f8a76e34d
Fix the bug that dectmngr fails to start at the first attempt

Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 14:19:45 +01:00
Grzegorz Sluja
d34d6e8bf0 dectmngr-3.4.6 Fix for checking the dspg firmware version in file 2021-12-23 13:02:29 +01:00
Yalu Zhang
2f8a76e34d Fix the bug that dectmngr fails to start at the first attempt
Wait for the target up and running before starting dectmngr. Otherwise HELLO_REPLY
cannot be received and dectmngr exits and is started again by procd.
2021-12-23 10:58:57 +01:00
Grzegorz Sluja
55f1310daa dectmngr-3.4.5 Set RXTUN value during the start up 2021-12-23 09:23:06 +01:00
Grzegorz Sluja
57b528f2af dectmngr-3.4.4 changes
95214c4 Fix for restoring EEPROM parameters after FW upgrade
5ca32de Check country and play proper tones for UK
2021-12-22 14:55:03 +01:00
Grzegorz Sluja
670904cd6c dectmngr: Integrate new binary CMBS 4.13 Build 16 RC28 2021-12-22 13:08:11 +01:00
Amin Ben Ramdhane
ad0633029c bbf: 6.4.3 2021-12-22 12:57:01 +01:00
vdutta
9b823e5937 icwmp: 8.2.19 2021-12-22 17:09:55 +05:30
vdutta
431325e6e6 bbf: 6.4.2 2021-12-22 16:23:26 +05:30
Yalu Zhang
fd8fa1d7e2 dectmngr-3.4.3: remove those unreferenced keyb_* files and fix compiling warnings 2021-12-22 10:07:44 +01:00
Amin Ben Ramdhane
572bfa61dd bbf: 6.4.1 2021-12-21 16:52:30 +01:00
Jakob Olsson
5963ff1139 map-agent: 6.3.10 2021-12-21 16:21:12 +01:00
vdutta
363d3dfcb7 swmodd: 2.0.19 2021-12-21 20:12:16 +05:30
vdutta
cf12bbe6e2 swmodd: 2.0.18 2021-12-21 20:07:28 +05:30
Jakob Olsson
426437c233 map-agent: 6.3.9 2021-12-21 15:16:44 +01:00
Jakob Olsson
742ded177d map-agent: 6.3.8 2021-12-21 14:45:15 +01:00
Jakob Olsson
a5f6b10a50 ieee1905: 4.1.2 2021-12-21 14:26:02 +01:00
Grzegorz Sluja
c25139968a Update package dectmngr
bb941c1 Fixes for static code analysis
0105a0c Update the general module document
2021-12-21 14:22:01 +01:00
Jakob Olsson
f52700c0f0 map-agent: 6.3.7 2021-12-21 14:21:02 +01:00
Jakob Olsson
5bc8757a3e map-controller: 5.2.6 2021-12-21 12:27:44 +01:00
Jakob Olsson
5b0fe1d2dc map-controller: 5.2.5 2021-12-21 11:35:08 +01:00
Filip Matusiak
a31ae89e79 map-agent: multiap: fix missing BSSID on some interfaces 2021-12-21 09:48:38 +00:00
Yalu Zhang
bd72194d2d bbf: 6.4.0 2021-12-21 09:55:03 +01:00
Jakob Olsson
babb25709b map-agent: 6.3.6 2021-12-21 09:35:31 +01:00
Janusz Dziedzic
ea37c333f9 wifimngr: new version 14.0.5
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-20 19:25:30 +00:00
Amin Ben Ramdhane
be07b58cf5 periodicstats: 1.1.0 2021-12-20 17:06:26 +01:00
Amin Ben Ramdhane
13a6a59469 bbf: 6.3.9 2021-12-20 17:03:43 +01:00
Amin Ben Ramdhane
b6301bba94 bbf: 6.3.8 2021-12-20 16:37:59 +01:00
vdutta
dd627b7f70 rulengd: 1.2.6
- remove regex matching logic for event
2021-12-20 19:39:15 +05:30
Sukru Senli
0d2a12f029 sulu: 0.2.24
jakub <jakub.blaszkowski@iopsys.eu>
2021-12-20 09:59:01 +01:00
Jakob Olsson
0f1460f45f map-controller: 5.2.4 2021-12-17 16:57:51 +01:00
Sukru Senli
022e506a56 sulu: 0.2.23
jakub <jakub.blaszkowski@iopsys.eu>
2021-12-17 16:40:49 +01:00
Jakob Olsson
9025395702 Revert "map-controller: make uci wireless to mapcontroller sync configurable"
This reverts commit 5173b01cb2.
2021-12-17 15:55:00 +01:00
Sukru Senli
35ce40b964 sulu: 0.2.22 2021-12-17 15:39:14 +01:00
Jakob Olsson
0c915ba8b8 map-agent: 6.3.5 2021-12-17 14:45:58 +01:00
vdutta
60ab6d1a6b swmodd: Use DUStateChange! to notify faults 2021-12-17 18:40:40 +05:30
sverma
8ec45319bc rulengd: 1.2.5
regex match for event data only
2021-12-17 13:57:27 +01:00
Jakob Olsson
1536d860dd wfadatad: 6.10.1 2021-12-16 16:35:33 +01:00
Jakob Olsson
49858f3601 map-agent: 6.3.4 2021-12-16 16:33:47 +01:00
Sukru Senli
1c305c69e4 wfadatad: remove .init from init script 2021-12-16 16:28:51 +01:00
Anjan Chanda
e592e2d567 wfadatad: rename procd init filenames to match daemon names 2021-12-16 15:27:32 +01:00
Erik Karlsson
ff7714c88e endptmngr: do not start if board does not have voice
Prevents the following issue on boards without voice:

Thu Dec 2 12:45:07 2021 daemon.info procd: Instance endptmngr::instance1 s in a crash loop 4 crashes, 0 seconds since last crash
2021-12-15 13:11:48 +00:00
Fredrik Eriksson
9dda4d7ffa Remove redundant dependency on map-plugin 2021-12-15 13:10:34 +00:00
Jakob Olsson
10cee1f785 map-agent: 6.3.3 2021-12-15 14:09:34 +01:00
Erik Karlsson
8816c26e2a Use correct ranges with tr
The tr command does not take regular expressions and should not be
used with ranges such as [a-z] which furthermore can cause issues if
unquoted as they are interpreted by the shell.
2021-12-15 13:08:18 +00:00
Janusz Dziedzic
aba742a5e7 easy-soc-libs: 6.4.33
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-15 12:26:30 +00:00
suvendhu
d199dadd39 swmodd: config option to select host as EE 2021-12-15 16:49:15 +05:30
Jakob Olsson
fca18d2da5 wifimngr: 14.0.4 2021-12-15 09:33:43 +01:00
Janusz Dziedzic
3b819f5b1d easy-soc-libs: kick hash
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-14 19:29:47 +00:00
Amin Ben Ramdhane
b49d14370d bbf: 6.3.7 2021-12-14 18:24:31 +01:00
Jakob Olsson
3f2befa23a map-agent: corrections to example config 2021-12-14 17:31:22 +01:00
Andreas Gnau
52809e1e94 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 15ba90f Add support for external LED application.
* da6eb1d Add functionality to change default brightness for SK9822 LEDs.
-------------------------------------------------------------------------------
commit 15ba90f01914113e7c5e8f8a6df6279c882e8265
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:52:55 +0200

    Add support for external LED application.

    Add support for a callback script/application to control LEDs.

    This commits adds the ability to control a LED via an external application.
    The API is simple and is described in
    'iopsys-brcm63xx-arm/tiger/base-files/sbin/external_led_ctrl.sh'.

    To avoid unnecessary execution of the callback-script, logic has been added
    to keep track on when to update the LEDs.

Base directory -> /
 src/gpio_led.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 132 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit da6eb1d6c0fd03d45cbf5213acd5c2ff07b45bf5
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:40:00 +0200

    Add functionality to change default brightness for SK9822 LEDs.

    This commit adds the 'sk9822_brightness_file' option. The option can be used
    to adjust the default maximum brightness for the SK9822 LED driver.

Base directory -> /
 src/gpio_led.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2021-12-14 17:29:55 +01:00
Jakob Olsson
52ff5c79dd map-controller: 5.2.3 2021-12-14 17:15:21 +01:00
Jakob Olsson
09ad1ffa91 map-agent: 6.3.2: mapagent config changes 2021-12-14 17:05:21 +01:00
Yalu Zhang
1d2d9b7b97 dectmngr-3.4.2: Send notification of line and handset use status only to those handsets in range 2021-12-14 14:25:41 +01:00
Amit KUmar
7f405f04ac ponmngr: removed config file 2021-12-14 06:03:10 +00:00
Amit KUmar
16134d0a2d ponmngr: initial implementation 2021-12-14 06:03:10 +00:00
Yalu Zhang
5fbc784901 dectmngr-3.4.1: Create or update the entry for every line in list LineDiagnostic 2021-12-13 18:16:40 +01:00
Jakob Olsson
0eaba859a7 map-agent: remove uplink tmp file when restarting dynbhd 2021-12-13 16:24:44 +01:00
Jakob Olsson
7828e67308 map-controller: 5.2.2 2021-12-13 13:48:37 +01:00
vdutta
985ccf339f icwmp: 8.2.18 2021-12-13 16:11:10 +05:30
vdutta
b8f36d23ec bbf: 6.3.6 2021-12-13 15:45:57 +05:30
Amin Ben Ramdhane
4f7aeaaec2 bbf: 6.3.5 2021-12-13 09:26:47 +01:00
Anjan Chanda
d976140484 iop: config: add wfadatad-collector to build 2021-12-11 10:19:12 +01:00
vdutta
747436ce8f obuspa: Handle retries and lockout for challenges 2021-12-10 21:29:53 +05:30
Jakob Olsson
dde560d314 map-agent: 6.3.1 2021-12-10 15:45:22 +01:00
Amin Ben Ramdhane
34ec63d1f2 bbf: 6.3.4 2021-12-10 14:39:59 +01:00
vdutta
d4465d81f7 uspd: 2.1.39 2021-12-10 18:19:20 +05:30
vdutta
022ec4d6bb icwmp: 8.2.17 2021-12-10 17:50:31 +05:30
vdutta
6c68ff3be7 swmodd: Added auto-boot for lxc containers 2021-12-10 17:48:18 +05:30
Jakob Olsson
9e1e0eb0df map-controller: 5.2.14 2021-12-10 13:13:39 +01:00
Jakob Olsson
63ba56b87e map-agent: 6.3.0: introduce dynbhd 2021-12-10 13:13:08 +01:00
Anjan Chanda
53ab41ea2f ieee1905: 4.1.1 2021-12-10 12:58:31 +01:00
Anjan Chanda
d1477636f9 wfadatad: 6.10.0 (deagent + decollector) 2021-12-10 12:57:10 +01:00
Grzegorz Sluja
b2e8affb08 dectmngr: Do not create new LineDiagnostic entry each startup 2021-12-10 12:44:35 +01:00
Hemlata Bhatt
2dc9b89cd5 Voice : fix extension provider value type 2021-12-10 12:41:43 +01:00
Anjan Chanda
77acc69dbe wfadatad: 5.1.1 2021-12-09 20:09:43 +01:00
Anjan Chanda
5ac418113e map-controller: 5.2.13 2021-12-09 20:09:18 +01:00
Anjan Chanda
1ba55b753e map-agent: 6.2.12 2021-12-09 20:08:50 +01:00
Anjan Chanda
d483abe7d2 ieee1905: 4.1.0 2021-12-09 20:08:20 +01:00
Anjan Chanda
511d471d54 wifimngr: 14.0.3 2021-12-09 20:07:56 +01:00
Anjan Chanda
206ecd46db easy-soc-libs: 6.4.32 2021-12-09 20:07:29 +01:00
Andreas Gnau
f9f31384c2 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 7e013f0 Do not read entire file into buffer when extracting
-------------------------------------------------------------------------------
commit 7e013f0afa68378d38a6bdc9b0c5a342bd3dd0a5
Author: Erik Karlsson <erik.karlsson@genexis.eu>
Date: 2021-11-30 00:09:44 +0100

    Do not read entire file into buffer when extracting

    Only read FDT into buffer, and then in case of external image, use lseek
    followed by sendfile if supported or otherwise read/write.

    Remove unnecessary strdup of option arguments that would leak memory in case
    options are repeated.

    Fix confusing error message with --attribute when --image is used to specify
    a non-existing image.

Base directory -> /
 fdtextract.c | 169 +++++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 106 insertions(+), 63 deletions(-)
-------------------------------------------------------------------------------
2021-12-09 18:24:19 +01:00
vdutta
2c4e50ab10 swmodd: optimize du_list get time 2021-12-09 21:04:40 +05:30
vdutta
ac46849475 obuspa: 4.1.0.15 2021-12-09 21:01:14 +05:30
Amin Ben Ramdhane
4db7061884 bbf: 6.3.3 2021-12-09 12:14:09 +01:00
Grzegorz Sluja
de40d120e2 dectmngr: Fix unitialized ptr value causing crash 2021-12-09 10:03:10 +01:00
Wenpeng Song
e54e20de45 dectmngr: Add the option to direct CMBS debug messages to syslog 2021-12-08 17:02:15 +00:00
Wenpeng Song
7add2a163d merge together with dectmngr feeds update 2021-12-08 16:32:34 +00:00
Yalu Zhang
499709e2df dectmngr-3.4.0: Support implicit intrusion call 2021-12-08 15:53:03 +01:00
vdutta
c566d23c78 sulu: 0.2.21 2021-12-07 19:49:30 +05:30
vdutta
a5c8b7145f rulengd: 1.2.4 2021-12-07 17:56:52 +05:30
vdutta
0419beb911 periodicstats: 1.0.5 2021-12-07 17:46:29 +05:30
vdutta
8bb22efe7d swmodd: Improved memoryinfo and SetRequestedState 2021-12-07 17:37:48 +05:30
vdutta
bff8f75bbb icwmp: Remove manual seeding of openssl RAND generator 2021-12-07 17:29:22 +05:30
Jakob Olsson
be57a189f7 map-controller: 5.2.3 2021-12-07 12:48:42 +01:00
Grzegorz Sluja
9c365459bb dectmngr: Update uci when DECT hs name is changed from hs menu 2021-12-07 11:53:18 +01:00
Amin Ben Ramdhane
f4e9f29d3d bbf: 6.3.2 2021-12-07 11:18:23 +01:00
Jakob Olsson
ac56460fec map-agent: 6.2.2 2021-12-07 10:52:49 +01:00
Omar Kallel
cb2077377a icwmp: 8.2.15 2021-12-06 18:25:04 +01:00
Amin Ben Ramdhane
673dfc8589 bbf: 6.3.1 2021-12-06 12:18:44 +01:00
Jakob Olsson
a287107ee1 map-controller: 5.2.2 2021-12-06 11:32:21 +01:00
vdutta
47396a4e4f obuspa: Boot time improvements 2021-12-03 19:38:37 +05:30
vdutta
d82756305c icwmp: Boot time improvements 2021-12-03 19:35:38 +05:30
Omar Kallel
5bd754fc9a icwmp: 8.2.13 2021-12-03 11:40:34 +01:00
Dominic Lake
bed5379108 obuspa: Add NotifRetry option to UCI
Added support for NotifRetry in UCI for use with subscriptions.
2021-12-03 09:47:41 +00:00
Yalu Zhang
d8e5dcf859 dectmngr 3.3.1: add some extensions to Line Settings List defined in CAT-iq 2.0
- /etc/init.d/dectmngr: set model id from hw.board.dect_model_id if the value in the database
  is valid. Otherwise set to 30.3B.06
- Add a config option: ENABLE_LINE_SETTINGS_EXTENSION in the package
2021-12-02 18:15:51 +01:00
Jakob Olsson
64f9e23850 map-agent: 6.2.1 2021-12-01 17:28:54 +01:00
Suru Dissanaike
aaffffdba2 quickjs-websocket: 1.1 2021-12-01 16:22:58 +01:00
arne.jonsson
0d6980e0ec Disabled and removed DEVTMPS from config 2021-12-01 15:00:27 +00:00
arne.jonsson
61f454043d Disabled and removed DEVTMPS from config 2021-12-01 15:00:27 +00:00
Janusz Dziedzic
defe48e4e8 ieee1905: allow local dev build
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-01 08:30:54 +00:00
Janusz Dziedzic
4d893499a5 map-controller: add local dev build option
After that ~/git/map-controller code will
be used/compiled.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-12-01 08:30:54 +00:00
Grzegorz Sluja
e32f2f09be dectmngr: Move DECT chip independent functions to dect_common.h 2021-11-30 18:51:39 +01:00
Jakob Olsson
183ba5d634 map-controller: 5.2.1 2021-11-30 17:30:41 +01:00
Grzegorz Sluja
809113d4b2 dectmngr: Remove handset's name section from config on deregistration 2021-11-30 12:24:12 +01:00
vdutta
927b002aa6 obuspa: Updated uci schema
- prototrace uci option to enable protocol trace
 - Added BootParamName for controller boot parameters
2021-11-29 17:54:25 +05:30
vdutta
c5654ad9ab icwmp: 8.2.12-2021-11-29 2021-11-29 11:14:46 +05:30
vdutta
2e3013dc56 uspd: 2.1.38 2021-11-26 19:19:43 +05:30
suvendhu
a7dd783b49 swmodd: use curl for du_install 2021-11-26 18:48:23 +05:30
Jakob Olsson
d3451b7bd4 ieee1905: 4.0.6 2021-11-26 13:18:39 +01:00
vdutta
776860187d icwmp: Fix race condition in dhcp ACS provisioning 2021-11-26 17:27:56 +05:30
Grzegorz Sluja
d2dda88aad dectmngr: Do not restart dectmngr on dect config change 2021-11-26 12:37:49 +01:00
Yalu Zhang
22871d2410 Update package dectmngr 3.3.0
Multiple line support with m:n mapping between extensions and DECT handsets
2021-11-26 11:59:42 +01:00
Amin Ben Ramdhane
707203b42a bbf: 6.3.0 2021-11-26 10:41:55 +01:00
Omar Kallel
60fb332fff icwmp: Remove set dhcp reqopt from uci-defaults && set dhcp_url to icwmp config 2021-11-25 18:05:39 +01:00
Omar Kallel
bd0d27ebc9 Start icwmp only if EnableCWMP is true 2021-11-25 17:39:51 +01:00
Jakob Olsson
0af83a4892 wfadatad: 5.1.0 2021-11-25 17:15:35 +01:00
Jakob Olsson
715f58db4d map-topology: 3.1.0 2021-11-25 16:49:23 +01:00
Jakob Olsson
cdfa0a7313 map-controller: 5.2.0 2021-11-25 15:57:06 +01:00
Jakob Olsson
9b12400c0b map-agent: 6.2.0 2021-11-25 15:54:00 +01:00
Dominic Lake
b59e3250af obuspa: Support different boot params per controller
Added support to specify the boot params for each controller separately in the controller UCI section.
2021-11-24 16:35:50 +00:00
vdutta
f742ce11ae obuspa: Publish endpoint id to mqtt broker for usp-js 2021-11-24 19:52:25 +05:30
vdutta
7a6ff46b8a swmodd: 2.0.11 2021-11-24 19:22:14 +05:30
Amin Ben Ramdhane
e3d9a24ed7 bbf: 6.2.6 2021-11-24 12:13:42 +01:00
vdutta
88fcb2e4df uspd: Fix schema updater 2021-11-24 13:55:39 +05:30
vdutta
0f05633d74 obuspa: updated default interface to loopback 2021-11-24 13:20:38 +05:30
Jakob Olsson
5173b01cb2 map-controller: make uci wireless to mapcontroller sync configurable 2021-11-23 17:16:24 +01:00
Omar Kallel
86cf6fc81e icwmp: 8.2.11-2021-11-23 2021-11-23 16:44:28 +01:00
Omar Kallel
2ee29d8252 Add BOOT event when starting icwmp 2021-11-23 16:38:16 +01:00
Omar Kallel
ef178897ba Add BOOT event when starting icwmp 2021-11-23 15:24:33 +01:00
Suru Dissanaike
1d4b28acd4 quickjs: added quickjs package graciously provided by Genexis 2021-11-23 10:34:34 +01:00
Anjan Chanda
2b6e74fb80 map-topology: include libnl3 in target-cflags 2021-11-23 09:21:34 +01:00
Janusz Dziedzic
32cfd29d74 map-agent: add local dev build option
After that ~/git/map-agent code will
be used/compiled.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-11-22 17:18:54 +00:00
Omar Kallel
63959e908e icwmp: 8.2.10-2021-11-22 2021-11-22 15:50:33 +01:00
vdutta
80e2035662 uspd: 2.1.36 2021-11-22 20:06:12 +05:30
Amin Ben Ramdhane
7527faca9c bbf: 6.2.5 2021-11-22 14:18:27 +01:00
Erik Karlsson
b7e010be3b gryphon-led-module: use the right toolchain on Broadcom targets
Userspace toolchain was being used to build the kernel module which
although not correct happened to work on 32-bit kernel but obviously
does not work on 64-bit kernel with 32-bit userspace.

Ideally, it should but enough to set KERNEL_CROSS if Build/Compile is
updated to use KERNEL_CROSS instead of TARGET_CROSS, but not changing
TARGET_CROSS breaks scripts/strip-kmod.sh which for some reason uses
TARGET_CROSS rather than KERNEL_CROSS.
2021-11-19 16:16:19 +01:00
Amin Ben Ramdhane
84ad0eec4e bbf: 6.2.4 2021-11-19 14:49:31 +01:00
vdutta
bd188aaed2 swmodd: Multiple fixes
- Handle frozen containers
 - Handle libgcc package name miss-match
2021-11-19 11:08:38 +05:30
Amit Kumar
4d244eb31e mcastmngr: corrected P1 break of mcast stats 2021-11-18 06:48:52 +00:00
nevadita.chatterjee
14aab50849 easy-soc-libs: 6.4.28 2021-11-17 16:53:40 +05:30
sverma
3a605fd8f5 bbf: 6.2.3 2021-11-17 15:57:12 +05:30
Amin Ben Ramdhane
f9bbce19dd bbf: 6.2.2 2021-11-16 18:10:45 +01:00
Omar Kallel
a1677793d3 icwmp: Remove the use of .icwmpd_boot file 2021-11-16 11:51:50 +01:00
Grzegorz Sluja
d7a8913072 dectmngr: Refresh Contact List on handset after change from ubus 2021-11-16 09:51:05 +01:00
Omar Kallel
34c5ea3c75 Ticket refs #5876: icwmp: Init scripts enhancements and cleanup 2021-11-15 15:58:56 +01:00
Grzegorz Sluja
c006db0e21 dectmngr: Remove dependency to libiconv from dectmngr 2021-11-15 14:59:33 +01:00
Amin Ben Ramdhane
4e42968aca bbf: 6.2.1 2021-11-15 13:39:36 +01:00
vdutta
9b48e54734 icwmp: Fix random crashes 2021-11-13 16:21:52 +05:30
Amin Ben Ramdhane
77a41d56a1 bbf: 6.2.0 2021-11-12 14:11:43 +01:00
Andreas Gnau
90fa843074 gryphon-led-module: Build against bcmkernel on Broadcom platforms
Due to the complexity of the Broadcom build system which amongst others
puts dynamically generated symlinks into the kernel dir, we have a fake
kernel "bcmlinux" to please the OpenWrt build system. This kernel is not
used for anything but building the OpenWrt toolchain. To compile against
the right kernel that is running on the target, we need to compile the
kernel module against the kernel inside bcmkernel which is the one
compiled by the BCM SDK.
2021-11-12 12:11:08 +00:00
Jakob Olsson
524c718242 map-agent: 6.1.1 2021-11-12 11:21:52 +01:00
Jakob Olsson
e00102c2b9 map-controller: 5.1.1 2021-11-12 11:19:38 +01:00
Anjan Chanda
2c0b6b76e2 wfadatad: 5.0.5 2021-11-12 09:38:15 +01:00
Anjan Chanda
9e9dc5b1a9 wifimngr: 14.0.0 2021-11-12 09:37:33 +01:00
Anjan Chanda
4535b14305 easy-soc-libs: 6.4.27 2021-11-12 09:36:29 +01:00
Yalu Zhang
478e3a5c8b dectmngr: keep /etc/dect/LA_DB during sysupgrade 2021-11-11 15:24:40 +01:00
Amin Ben Ramdhane
98302e0523 periodicstats: 1.0.4 2021-11-11 13:57:02 +01:00
Amin Ben Ramdhane
4dc45c779a bbf: 6.1.9 2021-11-11 13:56:06 +01:00
Yalu Zhang
c1bef47f50 dectmngr: update Makefile to include the path for external libraries 2021-11-11 12:14:03 +01:00
Andreas Gnau
9fb0c48a22 dectmngr: Add missing iconv-full dependency
dectmngr has required libiconv-full, but did not declare the dependency.
This creates a risk for the build failing due to race conditions. After
we removed another config-option that depended on libiconv-full the
build started to fail because nothing depended on libiconv-full anymore.

Fixes: f6f1644b (iop: config: Don't enable CONFIG_BUILD_NLS, 2021-11-04)
2021-11-11 10:56:08 +01:00
Anjan Chanda
d8e35df684 wfa-capi: 1.1.0 2021-11-11 10:51:12 +01:00
Yalu Zhang
d0189d605f dectmngr: bump the package version to 3.2.0 2021-11-10 14:37:35 +00:00
Grzegorz Sluja
8de1704440 dectmngr: Add phonebook support 2021-11-10 11:18:09 +01:00
Andreas Gnau
f6f1644bab iop: config: Don't enable CONFIG_BUILD_NLS
It seems like CONFIG_BUILD_NLS it is not needed by anything, so disable
it. On an embedded device, we do not need localised output. End-users
will probably never interact via SSH with the device. So it is unclear
why it had been enabled in the first place.
2021-11-10 09:47:40 +00:00
vdutta
b1c705544b Added ifupdate in hotplug 2021-11-09 17:58:36 +01:00
Omar Kallel
bd8d574177 Remove init script logs 2021-11-09 17:57:02 +01:00
Omar Kallel
4b5c88b015 icwmp: Reduce I/O on filesystem 2021-11-09 17:51:48 +01:00
Omar Kallel
32245d37c3 Revert "Added ifupdate in hotplug"
This reverts commit 08244c5392.
2021-11-09 16:35:09 +01:00
Omar Kallel
56d2b9c4e3 Revert "icwmp: Reduce I/O on filesystem"
This reverts commit 146bc95709.
2021-11-09 16:34:59 +01:00
vdutta
08244c5392 Added ifupdate in hotplug 2021-11-09 16:24:21 +01:00
Omar Kallel
146bc95709 icwmp: Reduce I/O on filesystem 2021-11-09 16:23:31 +01:00
Amin Ben Ramdhane
25a861a55f bbf: 6.1.7 2021-11-09 15:49:15 +01:00
vdutta
86fab6969f uspd: Option to configure dm version to use 2021-11-08 11:26:01 +05:30
Amin Ben Ramdhane
5463df37e1 bbf: 6.1.6 2021-11-05 10:55:41 +01:00
Grzegorz Sluja
a480a0c95d dectmngr: Update package dectmngr
c2b5452 Disable dectmngr logging to file by default
6d0af6c SUOTA implementation
79fa843 Fix the bug of syslog messages with incorrect ident and facility
2021-11-04 07:52:37 +01:00
vdutta
89068fa876 icwmp: 8.2.6-2021-11-03 2021-11-03 21:23:20 +05:30
vdutta
c3cee3431c uspd: Enable caching of ubus data 2021-11-03 21:17:08 +05:30
Amin Ben Ramdhane
bf70b518bd bbf: 6.1.5 2021-11-03 16:42:09 +01:00
nevadita.chatterjee
ad293962c1 topology: 3.0.4 2021-11-03 13:36:41 +05:30
nevadita.chatterjee
6badc20bcc map-topology:3.0.3 2021-11-02 16:43:43 +05:30
vdutta
f8b51b9ca5 uspd: Add TransferComplete event with bbf plugin 2021-11-01 16:23:46 +05:30
Jakob Olsson
a5c390efdd ieee1905: 4.0.5 2021-10-29 16:08:31 +02:00
vdutta
6d011f8626 uspd: Extend TransferComplete with json plugin 2021-10-29 18:48:12 +05:30
vdutta
f1d5e5d7cd bbf: Support operate and events with json plugins 2021-10-29 18:45:12 +05:30
vdutta
0fed56903c icwmp: 8.2.6-2021-10-29 2021-10-29 17:20:09 +05:30
Jakob Olsson
2ac7be4652 map-agent: 6.1.0 2021-10-29 13:36:55 +02:00
Jakob Olsson
7e34649ce7 map-controller: 5.1.0 2021-10-29 13:36:26 +02:00
Amit Kumar
a404da9124 libqos: updated broadcom header file 2021-10-29 16:43:19 +05:30
Amit Kumar
d152eb0f17 qosmngr: porttminit added before qcfg 2021-10-29 10:45:10 +00:00
Hemlata Bhatt
fb8ed439b8 Adjustment for the restructure of asterisk UCI config 2021-10-29 11:58:40 +02:00
nevadita.chatterjee
6b23da2314 map-topology: 3.0.2 2021-10-29 13:19:02 +05:30
sverma
bc90649202 wfadatad: 5.0.3 2021-10-28 20:56:19 +05:30
Jakob Olsson
0f31eb632f map-agent: rename map-loop-detection to map-dynamic-backhaul 2021-10-28 16:23:13 +02:00
Stanislaw Gruszka
5c37dc2165 ieee1905: export cmdu_ackq.h 2021-10-28 12:48:19 +00:00
Erik Karlsson
b4ce04d317 map-controller: fix enabling via uci
The service must be started but without any instance in case it is
disabled via uci. If it is stopped entirely, the reload trigger does
not work and it is impossible to re-enable mapcontroller via uci
without explicit reload.
2021-10-28 07:09:23 +00:00
Erik Karlsson
1f817c4e8f map-agent: trigger reload on the right configuration file
Trigger reload, which is currently implemented as restart, when
mapagent rather than ieee1905 configuration is changed.
2021-10-28 07:09:23 +00:00
vdutta
26599ba94e uspd: Added get_supported_dm 2021-10-27 20:17:38 +05:30
vdutta
26fe0bc7de bbf: 6.1.3 2021-10-27 20:16:44 +05:30
Marek Puzyniak
37493eb8be easy-soc-libs: 6.4.6
Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>
2021-10-27 09:54:18 +00:00
vdutta
b3dda9b4e5 uspd: align with bbf changes 2021-10-27 13:27:00 +05:30
vdutta
94879c6de9 bbf: 6.1.2 2021-10-27 13:25:55 +05:30
vdutta
a15f586ecf icwmp: Fix raise condition for con-req 2021-10-26 20:04:02 +05:30
nevadita.chatterjee
f3c5face44 ieee1905: version 4.0.4 2021-10-26 15:43:00 +05:30
Jakob Olsson
4488510e4b map-agent: 6.0.8 2021-10-25 11:20:00 +02:00
vdutta
4685cb49d4 icwmpd: 8.2.4-2021-10-25 2021-10-25 12:16:35 +05:30
vdutta
6ad633cbf4 uspd: 2.1.29 2021-10-25 12:14:32 +05:30
vdutta
d97c335cb5 obuspa: Fix compilation errors for gcc 11 2021-10-25 12:03:48 +05:30
vdutta
3563683cec swmodd: Fix compilation error on gcc v11 2021-10-25 11:59:24 +05:30
vdutta
330bb08d1b bbf: 6.1.1 2021-10-25 11:57:29 +05:30
Jakob Olsson
93f2090d0e map-agent: 6.0.7 2021-10-22 16:58:33 +02:00
Jakob Olsson
d9ae18761b map-agent: map-loop-detection: speed up interface removal from bridge and harmonize disconnection 2021-10-22 16:56:15 +02:00
Jakob Olsson
40a1a45412 wifimngr: 05-wifi: publish wps over fronthauls when eth connected 2021-10-22 16:51:41 +02:00
Jakob Olsson
f459eaafb9 map-agent: 6.0.6 2021-10-22 15:21:56 +02:00
Jakob Olsson
a80ed328c3 map-controller: get source url from https 2021-10-22 15:19:04 +02:00
Jakob Olsson
15d9fc0339 map-agent: get source url from https 2021-10-22 15:11:26 +02:00
Amin Ben Ramdhane
916edb4ba3 bbf: 6.1.0 2021-10-22 12:56:13 +01:00
Amin Ben Ramdhane
eb67d5ab6e icwmp: 8.2.4-2021-10-22 2021-10-22 11:13:24 +01:00
Amin Ben Ramdhane
dd43b90e91 bulkdata: 1.0.3 2021-10-22 11:11:46 +01:00
Jakob Olsson
5fee9aa7b4 map-agent: multiap: enable bsta being swapped to 2021-10-22 10:28:32 +02:00
Jakob Olsson
b821c760df map-agent: multiap: implement swap to link function 2021-10-21 17:09:30 +02:00
Andreas Gnau
2dbcf3c75c Update feed [ iopsys ] package [ endptmngr ]
-------------------------------------------------------------------------------
* 6d7b2e9 Adapt Broadcom SDK 5.04 workaround version check to 5.04L.02p1
* f28a1b7 BCM: Adapt to SDK 5.04L.02p1 endpoint_api changes
-------------------------------------------------------------------------------
commit 6d7b2e9c90234767cb56a1e7885f42825bd6287a
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-10-20 17:43:37 +0200

    Adapt Broadcom SDK 5.04 workaround version check to 5.04L.02p1

    Adapt the version check for the workaround for BCM SDK 5.04 a9e612c (Add a
    workaround need for building with Broadcom 5.04., 2020-11-08) to cover BCM
    SDK 5.04L.02p1.

Base directory -> /
 src/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit f28a1b7b08a0bcc8faa2b25e1acebf811e05e87c
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-09-21 16:32:17 +0200

    BCM: Adapt to SDK 5.04L.02p1 endpoint_api changes

    In SDK 5.04L.02p1, Broadcom has changed rtcpXRMode in struct EPZCNXPARAM
    with a bitfield rtcpXRConfig which enables a more fine-grained control of
    the RTCP XR configuration.

    For now, set it to HAPI_RTP_RTCP_XR_GENERATE_VOIP_REPORT as recommended by
    the comment in endpoint_api.h. More bits to set can be found in hapi_rtp.h
    in the SDK.

Base directory -> /
 src/connection.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2021-10-20 17:59:05 +02:00
Jakob Olsson
952366cbc6 map-agent: multiap: write bssid for same bands when writing bsta section 2021-10-20 12:49:09 +02:00
Jakob Olsson
23a18999d5 ieee1905: 4.0.3 2021-10-20 10:11:43 +02:00
Jakob Olsson
2d2dffbec2 map-agent: 6.0.5 2021-10-20 10:08:24 +02:00
Sukru Senli
758ee8ec9f sulu: 0.2.20 2021-10-19 17:18:48 +02:00
Amin Ben Ramdhane
c38ce1be3b bbf: 6.0.9 2021-10-19 14:43:55 +01:00
Andreas Gnau
2b5332adc3 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* ef46eb3 Add --image switch for getting attributes from image nodes. Also update the indentation and fix some minor naming issues.
-------------------------------------------------------------------------------
commit ef46eb3be68ae1216d8699234f237fb2243289f1
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-10-14 10:22:48 +0200

    Add --image switch for getting attributes from image nodes. Also update the
    indentation and fix some minor naming issues.

Base directory -> /
 fdtextract.c  | 122 +++++++++++++++++++++++++++++++++++-----------------------
 util.c        |   2 +-
 version_gen.h |   2 +-
 3 files changed, 76 insertions(+), 50 deletions(-)
-------------------------------------------------------------------------------
2021-10-18 16:56:32 +02:00
Jakob Olsson
70c3d5d5e1 map-agent: multiap: comment out debug print 2021-10-18 13:17:09 +02:00
vdutta
df41990929 icwmp: Revert Init scripts enhancements and cleanup 2021-10-15 20:41:25 +05:30
Jakob Olsson
6edc7cbb94 map-controller: 5.0.3 2021-10-15 10:21:05 +02:00
Jakob Olsson
d7bffebd5b map-agent: 6.0.4 2021-10-15 10:21:05 +02:00
Jakob Olsson
8f81a71b57 ieee1905: 4.0.2 2021-10-15 10:21:05 +02:00
Jakob Olsson
9452ada64f map-agent: 6.0.3 2021-10-15 09:42:41 +02:00
Jakob Olsson
1a3d267ee1 map-agent: map-loop-detection: reconnect enabled supplicants 2021-10-15 09:35:46 +02:00
Jakob Olsson
2f6b40bdd2 map-agent: multiap: add dynamic backhaul funcs 2021-10-15 09:35:46 +02:00
Jakob Olsson
d1c2be5b08 map-agent: multiap: supress uci errors 2021-10-15 09:35:46 +02:00
vdutta
fdee0c734c icwmp: 8.2.4-2021-10-14 2021-10-14 22:01:48 +05:30
Sukru Senli
88513db735 questd: remove reload trigger 2021-10-14 16:12:01 +02:00
Amin Ben Ramdhane
8bdbefcc80 bbf: 6.0.8 2021-10-14 13:51:20 +01:00
Omar Kallel
ee33f0ae7d icwmp: 8.2.4-2021-10-13 2021-10-13 16:21:33 +01:00
Omar Kallel
5cd57a3ee9 Ticket refs #5876: icwmp: Init scripts enhancements and cleanup 2021-10-13 16:11:27 +01:00
Amin Ben Ramdhane
56a6cbf04a bbf: 6.0.7 2021-10-13 14:35:36 +01:00
Omar Kallel
1fb879fca0 icwmp: get dhcp 43 option in icwmp hotplug script instead of netifd package 2021-10-13 11:17:51 +01:00
Omar Kallel
a3fd03c390 icwmp: use both ipv4 and ipv6 addresses for firewall rules 2021-10-12 11:41:07 +01:00
Amin Ben Ramdhane
00594ba01e bbf: 6.0.6 2021-10-11 16:13:33 +01:00
Anjan Chanda
132bba5c20 wfa-capi: 1.0.0 2021-10-11 16:34:22 +02:00
Grzegorz Sluja
06f160af35 dectmngr: Fixes for registration and set HS name
0e937cf Set the HS name during registration if it has the name set in uci
62421c0 Do not send LocateSuggest req when registration mode is opened
2021-10-11 14:42:52 +02:00
Sukru Senli
04bf025b8f questd: remove deprecated router.network object 2021-10-11 09:54:59 +02:00
Sukru Senli
1daa8d7f1a iop: genconfig: remove references to juci 2021-10-11 09:49:07 +02:00
Sukru Senli
97a302a20a juci: remove deprecated package 2021-10-11 09:40:05 +02:00
Anjan Chanda
87a0fbe8bf wfadatad: 5.0.2 2021-10-08 21:48:36 +02:00
Yalu Zhang
54b4140e09 dectmngr 3.1.18: support DECT multiple line mode 2021-10-08 17:16:10 +02:00
vdutta
99267f902b bbf: 6.0.5 2021-10-08 12:45:53 +05:30
vdutta
0338a2fd7c uspd: Configure option for subprocess on get cmd 2021-10-08 11:12:10 +05:30
vdutta
e134a5ed08 obuspa: Align permission for set 2021-10-08 11:08:30 +05:30
vdutta
0d8f4a3de8 obuspa: Fail init if required data is missing 2021-10-08 11:01:47 +05:30
Jakob Olsson
d5e7cb1a28 map-controller: 5.0.2 2021-10-07 17:15:50 +02:00
Jakob Olsson
e995fcb14d map-agent: 6.0.2 2021-10-07 17:12:22 +02:00
vdutta
f865531fa5 bbf: 6.0.4 2021-10-07 17:11:26 +05:30
Markus Gothe
104f3e2e83 qosmngr: updated broadcom.sh to get the ports from the runner.
When using the runner accelerator we need to check how to
map between ethernet interfaces (i.e eth0) and the internal
names used by the runner (i.e. port/index=lan2). Depending on
the hardware the mapping is not always 1:1 as assumed earlier.

This commit also fixes a minor bug with resetting traffic
shaping for the archer accelerator.
2021-10-07 05:12:04 +00:00
Sukru Senli
d298757300 obudpst: install as udpst 2021-10-06 18:48:39 +02:00
vdutta
b66ade378a bbf: 6.0.3 2021-10-06 10:33:58 +05:30
Omar Kallel
be36f2e3e8 icwmp: uci enhancements 2021-10-05 14:37:52 +01:00
Anjan Chanda
00dc43eb39 map-agent: 6.0.1 2021-10-04 14:34:58 +02:00
Anjan Chanda
efeeb00a0a map-topology: 3.0.1 2021-10-04 14:18:57 +02:00
Anjan Chanda
cc5b7a8a17 wfadatad: 5.0.1 2021-10-04 14:18:19 +02:00
Anjan Chanda
ce8425ce70 map-controller: 5.0.1 2021-10-04 14:16:53 +02:00
Anjan Chanda
ce5b916828 ieee1905: 4.0.1 2021-10-04 14:01:39 +02:00
Anjan Chanda
7f04196f58 easy-soc-libs: 6.4.5 2021-10-04 14:01:13 +02:00
Stanislaw Gruszka
762d5a5daa map-agent: fix configuring ssid's and keys with spaces 2021-10-04 10:21:58 +00:00
Anjan Chanda
abc997d3f3 easy-soc-libs: 6.4.1 2021-10-03 21:16:14 +02:00
Markus Gothe
924b54d8d3 grpyhon-led-module: Add ability to read back color
To aid remote debugging we want to be able to
read back the set color on the RGB LED. This commit
implements this functionality.
2021-10-01 16:16:32 +00:00
Jakob Olsson
bd8dd65766 map-topology: 2.1.10 2021-10-01 16:08:21 +02:00
Jakob Olsson
5372956a9a map-agent: multiap: func to sync mapcontroller from wireless
To accomodate datamodel
2021-10-01 10:52:44 +02:00
Jakob Olsson
bf0ddc5321 map-agent: 5.4.2 2021-09-30 16:37:58 +02:00
Jakob Olsson
7895966aa2 map-agent: 5.4.1 2021-09-30 16:28:54 +02:00
Jakob Olsson
0f716b5197 map-controller: 4.2.6 2021-09-30 16:28:19 +02:00
Jakob Olsson
dd56712aa4 map-controller: 4.2.5 2021-09-30 16:28:19 +02:00
Jani Juvan
b7de0cf4bb map-agent: 5.4: traffic separation 2021-09-30 16:28:19 +02:00
Amin Ben Ramdhane
09f6449a6e bbf: 6.0.0 2021-09-30 15:19:19 +01:00
Andreas Gnau
f00e7fe965 iop: config: Use OpenSSL instead of WolfSSL for libustream
In IOPSYSWRT, we use OpenSSL. Instead of shipping WolfSSL just for the
OpenWrt libustream library (which powers the uclient-fetch / wget
commands), make libustream use OpenSSL as well. This decreases security
maintenance and reduces overhead in image size and memory usage.
2021-09-30 15:05:04 +02:00
vdutta
dd7aac2a8c swmodd: Fix compilation issues 2021-09-30 18:27:32 +05:30
vdutta
49ffec4bc9 swmodd: Improve get time 2021-09-30 16:21:32 +05:30
Grzegorz Sluja
0a638e202b dectmngr: Fix some compilation warnings 2021-09-30 12:39:56 +02:00
Grzegorz Sluja
82676d8390 dectmngr: Fixes for setting DECT HS name and setting MWI 2021-09-30 09:24:06 +02:00
Yalu Zhang
95d6cadee1 dectmngr 3.1.17: Fix an issue that the call can't be released properly 2021-09-29 17:34:56 +02:00
vdutta
4672442d50 obuspa: Startup improvements 2021-09-29 16:26:49 +05:30
Amin Ben Ramdhane
7a8759e46a bbf: 5.0.8 2021-09-28 13:39:26 +01:00
Grzegorz Sluja
f28659ebe0 dectmngr: Change uci config file from dectmngr to dect 2021-09-28 13:26:50 +02:00
Grzegorz Sluja
f10457c8cb dectmngr: fixup! Implementation for setting DECT Handset's name 2021-09-27 10:50:12 +02:00
Grzegorz Sluja
bd3f962614 dectmngr: Add dectmngr trigger so that change in uci config reloads it 2021-09-27 10:49:13 +02:00
Grzegorz Sluja
a4aa0b3521 Revert "dectmngr: Add handset name to uci configuration"
This reverts commit 67169eff2a.
2021-09-27 10:49:13 +02:00
Anjan Chanda
06204d8523 wifimngr: 13.0.1 2021-09-26 21:33:52 +02:00
Anjan Chanda
4b5dbec851 easy-soc-libs: 6.3.4 2021-09-26 21:31:51 +02:00
vdutta
ab6035acbd icwmp: Default incoming rule based on port only 2021-09-25 17:22:00 +05:30
vdutta
72b7726f1e icwmp: 8.1.10-2021-09-24 2021-09-24 19:26:16 +05:30
Jakob Olsson
56ab101640 map-controller: 4.2.4 2021-09-24 15:50:33 +02:00
Amin Ben Ramdhane
4ee030a2ea bbf: 5.0.7 2021-09-24 14:10:26 +01:00
Jakob Olsson
ec402a2ea1 map-controller: 4.2.3 2021-09-24 14:32:43 +02:00
Jakob Olsson
52466671ab map-controller: 4.2.2 2021-09-24 13:41:02 +02:00
Jakob Olsson
3a54432533 map-controller: update default pkg config 2021-09-24 12:26:11 +02:00
Jakob Olsson
7a8e1b9076 map-controller: 4.2.1 2021-09-24 12:23:03 +02:00
Jakob Olsson
237e8d7b6d map-agent: 5.3.1 2021-09-24 12:22:31 +02:00
Grzegorz Sluja
bd468e4761 dctmngr: Implementation for setting DECT Handset's name 2021-09-24 10:18:56 +02:00
Grzegorz Sluja
67169eff2a dectmngr: Add handset name to uci configuration 2021-09-24 10:18:47 +02:00
Jakob Olsson
1ad1ef12b4 map-controller: 4.2.0: update default config 2021-09-24 10:11:27 +02:00
Jakob Olsson
a012f98b4c map-agent: bump version 5.3.0 2021-09-24 10:10:51 +02:00
Yalu Zhang
1f3c696867 dectmngr: fix an error in Makefile for PKG_SOURCE_SUBDIR 2021-09-23 15:37:57 +02:00
Sukru Senli
b861a89031 Revert "dectmngr: avoid multiple directories in build_dir when lifting versions"
This reverts commit a94c701f66.
2021-09-23 15:19:31 +02:00
Amin Ben Ramdhane
ca9e4f1765 bbf: 5.0.6 2021-09-23 13:52:44 +01:00
Yalu Zhang
a94c701f66 dectmngr: avoid multiple directories in build_dir when lifting versions 2021-09-23 12:35:09 +02:00
Yalu Zhang
13684e1ce6 dectmngr: 3.1.16
Fix issues in ubus dect status
2021-09-23 11:56:27 +02:00
vdutta
00d5c0849c uspd: module test enhancements 2021-09-22 19:56:41 +05:30
Amin Ben Ramdhane
2ae25830e7 bbf: 5.0.5 2021-09-22 13:47:00 +01:00
nevadita.chatterjee
645a3bb5e5 topology:2.1.9 2021-09-22 14:31:43 +05:30
vdutta
85fbea1d40 Revert "uspd: Fix memory leak"
This reverts commit bb6131b1f7.
2021-09-21 22:28:19 +05:30
Sukru Senli
4be8594678 sulu-0.2.19 2021-09-21 18:17:00 +02:00
Yalu Zhang
1cb7520cb9 Update package dectmngr
Fix compilation error when set ENABLE_DECTMNGR_DEBUG to 1
2021-09-21 17:18:20 +02:00
vdutta
bb6131b1f7 uspd: Fix memory leak 2021-09-21 19:51:21 +05:30
Jakob Olsson
f268b27622 map-agent: 5.3.0 2021-09-21 16:11:15 +02:00
Jakob Olsson
85387d16b1 map-agent: multiap - add backhaul priority sync for bstas 2021-09-21 16:04:30 +02:00
vdutta
566a5ebcc7 obuspa: 4.1.0.5 2021-09-21 14:53:34 +05:30
vdutta
48104e2831 icwmp: Code enhancement 2021-09-21 14:44:48 +05:30
vdutta
f9e6d17778 obuspa: Reverting interface trigger 2021-09-20 20:34:43 +05:30
Sukru Senli
47ffb81c08 obudpst: remove unnecessary Build/InstallDev section 2021-09-19 17:57:43 +02:00
Erik Karlsson
fd050bc759 Revert "owsd: hotplug: map aliases against interface on ifup"
This reverts commit 051826305e.

Reason for revert: This appears unnecessary as individual ifup events
are already being generated for main and alias interfaces. The logic
is also broken. It causes owsd to be reloaded every time there is ifup
event on alias interface, regardless of owsd configuration.
2021-09-19 14:38:18 +00:00
Sukru Senli
76d1fd9cb3 obudpst-7.2.1 2021-09-19 16:32:39 +02:00
vdutta
3bf86b8652 icwmp: 8.1.9-2021-09-17 2021-09-17 20:26:23 +05:30
Yalu Zhang
c914639104 Update package dectmngr
Play dial tone when handset goes off hook without called number
2021-09-17 16:24:38 +02:00
Omar Kallel
425d48e974 icwmp: firewall improvement 2021-09-17 11:33:35 +01:00
Amin Ben Ramdhane
c339eae256 icwmp: 8.1.7-2021-09-17 2021-09-17 10:49:26 +01:00
suvendhu
fa7ef67b91 uspd: Added config option for max blob msg len 2021-09-17 14:36:05 +05:30
sverma
fc374d0f29 ieee1905: 3.3.7 2021-09-17 12:49:58 +05:30
Sukru Senli
01808d21b2 iop: sync genconfig_min versioning with genconfig 2021-09-17 09:06:37 +02:00
Amit Kumar
5a1fdc0b07 qosmngr: updated broadcom.sh for queue shapingrate 2021-09-16 18:19:00 +00:00
Amin Ben Ramdhane
6a84c4511a bbf: 5.0.4 2021-09-16 17:19:40 +01:00
vdutta
11704f2f91 obuspa: Init script enhancement 2021-09-16 19:08:31 +05:30
Amin Ben Ramdhane
d48965a03f bbf: 5.0.3 2021-09-15 15:12:53 +01:00
Janusz Dziedzic
bd12c3d6e8 onboarding, start wps on all available sta ifaces
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-09-15 10:11:09 +00:00
Sukru Senli
249072f280 iop: genconfig: update TARGET_VERSION generation
for non-tagged commits, TARGET_VERSION becomes <LAST_TAG>_<SHORT_COMMIT_HASH>
2021-09-14 19:47:38 +02:00
Yalu Zhang
ece01dd366 Update package dectmngr
Show boolean parameters correctly in ubus outputs
2021-09-14 14:52:39 +02:00
Yalu Zhang
2d82d20613 Update package dectmngr
Add two parameters to UBUS "dect status" for base station
2021-09-14 14:14:40 +02:00
Amin Ben Ramdhane
e6371c74d6 bbf: 5.0.1 2021-09-14 12:03:32 +01:00
Andreas Gnau
aa25a78ff1 iop: feeds_update: Make dev-check check for SSH instead of non-HTTP
Similarly to 986fc5ea (Make dev-check check for SSH instead of non-HTTP,
2020-06-23), check for SSH instead of whether the repo was cloned via
HTTP. Developers might have other remotes such as OpenWrt's configured.
2021-09-14 09:57:48 +02:00
jjoseph
60d1c43735 Update feed [iopsys] package [dslmngr] 2021-09-14 13:10:38 +05:30
vdutta
795fc9e805 icwmp: Reverted uci validation
- Partially reverted ae186df3c9
2021-09-13 19:53:47 +05:30
Hemlata Bhatt
1af894cba6 Digitmap DM parameters implemented 2021-09-13 14:26:48 +02:00
vdutta
4ba1558caa obuspa: Fix read only db warning 2021-09-10 17:08:33 +05:30
Jakob Olsson
cfb06f61d0 map-controller: 4.1.1 2021-09-10 11:01:11 +02:00
Jakob Olsson
d786c69d46 Revert "map-agent: 5.2.4"
This reverts commit 5d2b838d3e.
2021-09-10 11:00:37 +02:00
Jakob Olsson
5d2b838d3e map-agent: 5.2.4 2021-09-10 10:58:23 +02:00
Amit Kumar
88060bc42a libqos: updated log level 2021-09-10 13:03:59 +05:30
Jakob Olsson
16c3f49ff5 map-agent: 5.2.3 2021-09-10 08:44:23 +02:00
Omar Kallel
4b6eaad9a8 icwmp: 8.1.6-2021-09-10 2021-09-10 06:59:22 +01:00
Amit Kumar
af241bb222 qosmngr: corrected portid and unit for rxratecrtl 2021-09-10 05:03:02 +00:00
Amin Ben Ramdhane
ae621822c4 periodicstats: 1.0.3 2021-09-09 18:24:06 +01:00
Amin Ben Ramdhane
1a6ac9fa87 swmodd: 2.0.6 2021-09-09 18:21:46 +01:00
Amin Ben Ramdhane
749e38735a xmppc: 1.0.2 2021-09-09 18:19:54 +01:00
Amin Ben Ramdhane
292276ce75 bulkdata: 1.0.2 2021-09-09 18:17:04 +01:00
Amin Ben Ramdhane
1bcc2854af twamp: 1.0.1 2021-09-09 18:14:40 +01:00
Amin Ben Ramdhane
cee063223e bbf: 5.0.0 2021-09-09 18:13:02 +01:00
Jakob Olsson
44e1f1c867 map-agent: 5.2.2 2021-09-09 16:53:07 +02:00
Jakob Olsson
0b2d89a810 map-agent: 5.2.1 2021-09-09 16:15:33 +02:00
Jakob Olsson
d16a53087d map-controller: 4.1.0 2021-09-09 15:24:55 +02:00
Jakob Olsson
f4ca987fae map-agent: 5.2.0 2021-09-09 15:24:04 +02:00
Jakob Olsson
c6e8ad013c map-agent: increase wpa supplicant related steer functionality 2021-09-09 15:23:14 +02:00
Jakob Olsson
76e6d34d67 map-agent: 5.1.5 2021-09-09 15:22:50 +02:00
Jakob Olsson
3bdc80057b wfadatad: 4.0.10 2021-09-09 13:25:03 +02:00
Amin Ben Ramdhane
87f6ea2a1c bbf: 4.5.9 2021-09-08 15:03:43 +01:00
Roman Azarenko
24e065f9a8 iop: remove legacy Open SDK support in genconfig 2021-09-08 11:28:30 +02:00
Jakob Olsson
ba7d1c1153 map-agent: 5.1.4 2021-09-08 10:56:30 +02:00
Jakob Olsson
42a13509a4 easy-soc-libs: 6.3.2 2021-09-08 10:56:01 +02:00
Roman Azarenko
d5b529311a iop: sync genconfig_min to genconfig, workaround for IOP-5730 2021-09-07 16:41:38 +02:00
Grzegorz Sluja
dd7e804cab Update package dectmngr
Fixes for DCX81 FW update implementation
2021-09-06 15:12:37 +02:00
Anjan Chanda
ea779bb6c7 wfa-capi: 0.0.17 2021-09-06 14:40:55 +02:00
Omar Kallel
7ea1adc2d9 icwmp: 8.1.5-2021-09-03 2021-09-03 12:18:29 +01:00
Omar Kallel
ae186df3c9 icwmp: Remove the check of the file /etc/icwmpd/.icwmpd_boot && add uci validatation of cwmp config 2021-09-03 12:17:44 +01:00
Grzegorz Sluja
8fe00c184f Update package dectmngr
1) Implementation of DCX81 firmware upgrade
2) Do not enable registration upon dectmngr start
3) Implementation for periodic DECT HS presence check
2021-09-03 12:58:58 +02:00
Grzegorz Sluja
a5f99f4fc3 dectmngr: Add new dspg FW 4.13 Build16 RC18 2021-09-03 12:57:42 +02:00
Jakob Olsson
5c2c368800 map-controller: 4.0.5 2021-09-03 11:06:04 +02:00
Sukru Senli
8d078181f9 dectmngr: 3.1.12
aligh handset registration status enum with tr-104
2021-09-02 12:52:27 +02:00
Yalu Zhang
6b8e047d33 Update package dectmngr
Align ubus handset parameter values with TR-104 enums
2021-09-02 12:27:46 +02:00
Omar Kallel
b073b86450 icwmp: 8.1.4-2021-09-01 2021-09-01 14:07:23 +01:00
Omar Kallel
61eccddf93 icwmp: 8.1.3-2021-09-01 2021-09-01 11:56:24 +01:00
Omar Kallel
98465ecf62 icwmp: 8.1.3-2021-09-01 2021-09-01 11:37:22 +01:00
Omar Kallel
fdad57f796 icwmp: 8.1.2-2021-09-01 2021-09-01 11:23:03 +01:00
Amin Ben Ramdhane
8da760a491 bbf: 4.5.8 2021-08-31 13:00:45 +01:00
Yalu Zhang
fb8010b5fd Update package endptmngr
Reformatting voice ubus events
2021-08-30 15:32:54 +02:00
Sukru Senli
7a669d7e1b dslmngr: reverted commits breaking fast object 2021-08-27 16:34:41 +02:00
vdutta
21cb7c14e0 bbf: 4.5.7 2021-08-27 17:48:47 +05:30
Anjan Chanda
7fc00dbbda wifimngr: 12.0.3 2021-08-27 13:00:24 +02:00
Anjan Chanda
4cf278cbf1 easy-soc-libs: 6.3.1 2021-08-27 13:00:02 +02:00
Rahul
7ac322b707 qosmngr: qosmngr not restarted 2021-08-27 15:33:29 +05:30
Omar Kallel
818bf818a3 icwmp: 8.1.1-2021-08-26 2021-08-26 16:38:23 +01:00
Jakob Olsson
e7f75bba07 map-agent: 5.1.3 2021-08-26 16:25:23 +02:00
Jakob Olsson
542e9d02e1 map-controller: 4.0.4 2021-08-26 16:09:19 +02:00
Jakob Olsson
266a8d27a0 Revert "map-agent: 5.1.3"
This reverts commit 52bd1b02c4.
2021-08-26 16:08:33 +02:00
Jakob Olsson
52bd1b02c4 map-agent: 5.1.3 2021-08-26 16:08:06 +02:00
Amin Ben Ramdhane
79f9a81d66 bbf: 4.5.6 2021-08-26 14:40:56 +01:00
Amit Kumar
5722b66e40 libqos: qos stats for DISC 2021-08-26 15:56:30 +05:30
Jakob Olsson
03ab529375 Revert "map-controller: sync mapcontroller creds from wireless uci"
This reverts commit b1dbd89de8.
2021-08-26 12:23:19 +02:00
Amin Ben Ramdhane
fa071854de bbf: 4.5.5 2021-08-26 10:34:10 +01:00
vdutta
6f5d1b88f9 swmodd: Fix ubus timeout issue and du_list 2021-08-26 14:53:20 +05:30
Jakob Olsson
326c9b75b9 map-agent: 5.1.2 2021-08-26 08:43:08 +02:00
Jakob Olsson
1568031ba3 map-controller: 4.0.3 2021-08-26 08:42:44 +02:00
Jakob Olsson
b1dbd89de8 map-controller: sync mapcontroller creds from wireless uci 2021-08-26 07:50:18 +02:00
Wenpeng Song
aef1a050fa bbf:TR104 Rotate CDR csv call log 2021-08-25 14:23:18 +00:00
Rahul
e42c88e453 qosmngr: add -w flag to iptables commands
to fix l3 rules sometime not being applied leading to QoS failures,
introduced the -w flag to iptables commands.
2021-08-25 18:07:01 +05:30
jjoseph
7b0dd92085 Update feed [iopsys] package [dslmngr] 2021-08-25 17:05:51 +05:30
Jakob Olsson
88a46d54d5 map-topology: 2.1.8 2021-08-20 17:14:10 +02:00
Jakob Olsson
3ccf98a642 map-agent: 5.1.1 2021-08-20 17:14:01 +02:00
sverma
fa449667fe ieee1905: 3.3.6 2021-08-20 18:56:47 +05:30
sverma
2abf0f63df wfadatad: 4.0.9 2021-08-20 18:36:19 +05:30
Andreas Gnau
c53c3dcfc7 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 4557526 Do not hardcode hash node name
-------------------------------------------------------------------------------
commit 45575262de7a9690bcb2c760f35e2c74e88e1176
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-08-19 15:29:52 +0200

    Do not hardcode hash node name

    Align hash-support with U-Boot which accepts hashes in any node starting
    with "hash".

Base directory -> /
 fdtextract.c | 29 +++++++++++++++++++++--------
 1 file changed, 21 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2021-08-20 11:47:08 +02:00
nevadita.chatterjee
ab3e270238 map-topology:2.1.7 2021-08-19 18:00:19 +05:30
Jakob Olsson
1d5f1647b1 ieee1905: 3.3.5 2021-08-18 15:51:52 +02:00
Amin Ben Ramdhane
a3b5bf68b8 bbf: 4.5.4 2021-08-18 13:44:32 +01:00
Yalu Zhang
92ec110e27 Update package dectmngr
Allow num_messages being zero in "ubus call dect send_mwi"
2021-08-18 12:25:58 +02:00
Arun Muthusamy
fbf8cea8af easy-soc-libs: Fix, Incorrect DSL parameter values while FAST line is used 2021-08-18 09:22:31 +02:00
Arun Muthusamy
3843bcea55 dslmngr: Fix, Incorrect DSL LinkStatus with FAST line 2021-08-18 09:20:07 +02:00
vdutta
b9ef557a02 uspd: Update module tests 2021-08-17 19:07:32 +05:30
vdutta
c3924d5761 obuspa: Optimize datamodel caching algorithm 2021-08-17 19:03:30 +05:30
Amin Ben Ramdhane
a7f537e734 bbf: 4.5.3 2021-08-16 10:35:04 +01:00
Amin Ben Ramdhane
24f09d7048 bbf: Add '-Wall -Werror' flags to TARGET_CFLAGS 2021-08-16 09:31:44 +00:00
Omar Kallel
973cd18a45 icwmp: 8.1.0-2021-08-13 2021-08-13 15:29:21 +01:00
Jakob Olsson
99717b5254 map-controller: 4.0.2 2021-08-13 15:43:28 +02:00
Jakob Olsson
61641f1b14 ieee1905: 3.3.4 2021-08-13 15:42:54 +02:00
Jakob Olsson
c6eadab0b8 map-agent: 5.1.0 2021-08-13 15:41:41 +02:00
Amin Ben Ramdhane
73c1c6aee0 bbf: Adapt Provider Bridge Object to OpenWrt 21.02 network stack 2021-08-12 14:50:46 +01:00
Amit Kumar
f096e3a76c libqos: package version update 2021-08-12 18:27:10 +05:30
vdutta
25c9a7ebac obuspa: Merge obuspa-4.1.0 release 2021-08-12 12:41:35 +05:30
Omar Kallel
89ff50412e icwmp: 8.0.1 2021-08-11 17:33:47 +01:00
Jakob Olsson
1f839c80bb map-topology: 2.1.6 2021-08-11 14:47:20 +02:00
Jakob Olsson
e3a42fc8cf map-agent: 5.0.4: move iface teardown to platform script 2021-08-11 14:44:32 +02:00
Rahul
8f5d47b5d5 mcastmngr: openwrt 21.02 changes
make iptv work with openwrt 21.02 lift
2021-08-11 17:22:31 +05:30
Amin Ben Ramdhane
5bab70dee7 bbf: 4.5.1 2021-08-10 11:48:39 +01:00
sverma
e1b385b676 wfadatad: 4.0.8 2021-08-10 13:24:52 +05:30
vdutta
c55f8790ff uspd: Align with bbf changes 2021-08-09 22:51:17 +05:30
Omar Kallel
1171e41fe5 bbf: 4.5.0 2021-08-09 17:56:47 +01:00
Omar Kallel
5ef2844c7b icwmp: 8.0.0-2021-08-09 2021-08-09 17:40:19 +01:00
Grzegorz Sluja
99efedcf0f fixup! dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set dectmngr.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 11:33:21 +02:00
Grzegorz Sluja
f5afeba8ac endptmngr: Move endptmngr logging to syslog by default
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 08:57:41 +02:00
Grzegorz Sluja
0f5dfa0395 dectmngr: Move dectmngr logging to syslog by default
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-09 08:56:23 +02:00
Grzegorz Sluja
377e940927 dectmngr: Disable dect_cmbs logging to file by default
To enable logging of communication between Host and DECT CMBS target the
following steps needs to be run:
$uci set asterisk.general.log_dect_cmbs='1'
$uci commit
$/etc/init.d/dectmngr restart

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-06 14:14:19 +02:00
Grzegorz Sluja
41df4b3105 endptmngr: Add support for local source build
Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2021-08-06 09:59:48 +02:00
Andreas Gnau
88cc1792d8 iop: genconfig: Remove config options set in targets already
Remove CONFIG_TARGET_MULTI_PROFILE=y and
CONFIG_TARGET_PER_DEVICE_ROOTFS=y that were hardcoded in genconfig and
genconfig_min. Since feeds/targets commit 295d1566 (treewide: Add
MULTI_PROFILE and PER_DEVICE_ROOTFS config, 2021-08-05), the options are
added in feeds/targets.

Also bring the unmaintainable copy-paste of genconfig that is
genconfig_min in sync with genconfig with regards target-specific config
options.
2021-08-05 17:21:18 +02:00
vdutta
b775d2b45b swmodd: Fix opkg dependencies in iopsys template 2021-08-05 18:19:59 +05:30
Jakob Olsson
28e3fc9223 map-topology: 2.1.5 2021-08-05 13:21:50 +02:00
Jakob Olsson
1f6145e16b ieee1905: 3.3.3 2021-08-05 13:21:00 +02:00
sverma
44fbd4c993 wfadatad: 4.0.7 2021-08-05 11:26:21 +05:30
Jakob Olsson
a082f44bba map-agent: 5.0.3 2021-08-04 16:13:14 +02:00
Lukasz Kotasa
a06e9017bd iopsys-econet: Clean warnings in genconfig 2021-08-04 12:03:28 +00:00
Andreas Gnau
860d5c40a6 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* cc2831a Support FIT-images with embedded data
-------------------------------------------------------------------------------
commit cc2831addca083f86c74fbaec2630d080c981aa4
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-07-21 15:30:53 +0200

    Support FIT-images with embedded data

    Support the older way of storing image data directly inside the FIT rather
    than after the FIT specified by offset or absolute position.

Base directory -> /
 fdtextract.c | 43 +++++++++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 18 deletions(-)
-------------------------------------------------------------------------------
2021-08-03 15:07:05 +02:00
Amin Ben Ramdhane
7dcc594fba bbf: 4.4.1 2021-08-02 13:32:51 +01:00
vdutta
9ebc827e85 swmodd: Added iopsys lxc template 2021-07-30 15:51:49 +05:30
Amit Kumar
7002da04e2 libqos: updated package version 2021-07-30 14:41:13 +05:30
Omar Kallel
e47a300305 icwmp: 7.4.2-2021-07-29 2021-07-29 14:31:31 +01:00
Amit Kumar
40a04b8615 qosmngr: Makefile package version updated 2021-07-29 17:02:06 +05:30
Amit Kumar
c45a0ceae4 libqos: updated package version and commit hash 2021-07-29 16:48:58 +05:30
Grzegorz Sluja
a4f53e11da Update package dectmngr
Add entry in Line Status and Diagnostic List
2021-07-29 09:43:59 +02:00
Arun Muthusamy
2936f538aa Bug_5569: FIx, unknown operand & argument expected warnings 2021-07-27 14:47:42 +02:00
Janusz Dziedzic
49634a0c0e kick easy-soc-libs
14.0.1

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-07-23 12:46:36 +00:00
vdutta
c191553de2 swmodd: Align with bbf changes 2021-07-23 16:35:26 +05:30
vdutta
04b0490017 uspd: Align with bbf changes 2021-07-23 16:23:36 +05:30
Amin Ben Ramdhane
984f5454ef bbf: 4.4.0 2021-07-23 11:13:50 +01:00
vdutta
3f60546197 bbf: 4.3.9
- Fix firewall rule time
 - Updated bbf tools
2021-07-21 18:05:47 +05:30
Grzegorz Sluja
33a8f7fe81 Update package dectmngr
Do not restart registration on timeout
2021-07-21 12:32:04 +02:00
Sukru Senli
ae1a0b0738 sulu: do not overwrite nginx config for sulu section if already exists 2021-07-16 20:19:03 +02:00
Oussama Ghorbel
04205b9ac2 iopsys_ramips: switch to CONFIG_TARGET_PER_DEVICE_ROOTFS 2021-07-16 17:00:18 +02:00
Amin Ben Ramdhane
55fd3f6241 bbf: 4.3.8 2021-07-16 14:06:24 +01:00
Jomily K Joseph
7bab39b4b2 qosmngr : Shaper rate configuration needs to be in kbps 2021-07-16 07:51:13 +00:00
Sukru Senli
095a635ac2 qosmngr: add PKG_VERSION to PKG_SOURCE 2021-07-15 20:07:47 +02:00
Amin Ben Ramdhane
f1a9452b56 bbf: 4.3.7 2021-07-15 11:40:32 +01:00
nevadita.chatterjee
cdd1f7ab75 map-topology:2.1.4 2021-07-15 15:04:58 +05:30
Rahul
f709852ae3 qosmngr: resolve vlan qos issues
In 5.04, broadcom seems to have removed the support for skbvlan extension
from the kernel, although its presence still in the userspace application
is confusing, ideally, it should be removed from the userspace application
as well. Instead of skbvlan, the vlan extension is used for configuring the
vlan qos.

Hence, the qosmngr is updated to use vlan extension instead of skbvlan.
2021-07-15 12:09:19 +05:30
Andreas Gnau
b84033c641 iop: ssh_(install_key): Unify scripts and rework
Unify the iop-subcommands install_key and ssh_install_key to one script.
In addition:

* Support new key types such as ssh-ed25519 which is supported by
  Dropbear nowadays. Also add unsupported ones to make them work
  automatically in the future.
* For the install_key command, do not re-add keys already added
* Read keys loaded into SSH Agent as well, which is useful when working
  with agent forwarding on a remote host or in a Docker container.
* For the ssh_install_key command also add keys added manually to the
  build dir.
2021-07-14 18:02:17 +02:00
Amit Kumar
aadbbda3e9 mcast: updated verion for change to remove lan_to_lan option 2021-07-14 09:33:27 +05:30
Amit Kumar
c9e6cf8428 mcast: removed lan_to_lan option 2021-07-14 03:23:39 +00:00
Amit Kumar
7265b88a70 mcast: correction for warning message in mcast restart.
removed the bcmmcastctl cli call for l2l option that is not supported.
2021-07-14 03:23:39 +00:00
vdutta
ec3128865b sulu: Added init file to publish usp endpointid 2021-07-13 20:56:56 +05:30
vdutta
78c895f23a obuspa: Remove dependency of mosquitto_pub in init 2021-07-13 20:53:46 +05:30
Janusz Dziedzic
f87742703b kick wifimngr and easy-soc-libs
Kick to newer version.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-07-13 10:19:45 +00:00
Grzegorz Sluja
27e2d73ae1 Update package [ endptmngr ]
Add lineId information on ubus response for get rtp_stats
Enable RTCP-XR packets in brcm connection creation
2021-07-13 11:05:29 +02:00
Jakob Olsson
3de93cf5c2 map-controller: 4.0.1 2021-07-09 15:58:56 +02:00
Jakob Olsson
4b0041f6fd map-agent: 5.0.2 2021-07-09 15:57:34 +02:00
vdutta
f020406a90 obuspa: Override default roles if present in json 2021-07-09 18:04:06 +05:30
nevadita.chatterjee
74b15fdca3 map-topology: 2.1.3 2021-07-09 15:33:37 +05:30
Jakob Olsson
e113ff5534 wfadatad: 4.0.6 2021-07-08 15:55:13 +02:00
Jakob Olsson
4e3216e405 Revert "wfadatad: 4.0.6"
This reverts commit 58c8fe5bb4.
2021-07-08 15:54:50 +02:00
Jakob Olsson
58c8fe5bb4 wfadatad: 4.0.6 2021-07-08 15:44:21 +02:00
Jakob Olsson
5cf12fea90 map-topology: 2.1.2 2021-07-08 15:42:28 +02:00
Jakob Olsson
ca74205ac1 map-controller: 3.0.13 2021-07-08 13:54:39 +02:00
Jakob Olsson
c8b670737a map-controller: 3.0.12 2021-07-08 13:04:53 +02:00
Jakob Olsson
89314cae0b ieee1905: remove '22' identifier from map header files 2021-07-08 10:43:46 +02:00
Anjan Chanda
d85d2048c0 map-agent: 5.0.1 2021-07-08 10:43:46 +02:00
Amit Kumar
426a2b89a3 urlfilter: iptable and ip6tables rules for DNS added
in FORWARD chain.
2021-07-06 12:26:56 +05:30
Amin Ben Ramdhane
1a8a95e2f6 icwmp: 7.4.1-2021-07-05 2021-07-05 13:35:14 +01:00
Amin Ben Ramdhane
cec2fe6f92 bbf: 4.3.6 2021-07-05 13:33:07 +01:00
Jakob Olsson
dba7f1f97c map-agent: 4.1.3 2021-07-05 12:59:51 +02:00
Sukru Senli
15a5c5dedf sulu: 0.2.17 2021-07-05 11:48:28 +02:00
Sukru Senli
0c20ed1c78 urlfilter: flush conntrack only if urlfilter is enabled 2021-07-05 11:35:38 +02:00
Anjan Chanda
6995815f77 ieee1905: 3.3.2 2021-07-02 16:28:59 +02:00
Rahul
eb8d678e0f periodicstats: fix memory leak
fix memory leak and other general improvements
2021-07-02 18:22:22 +05:30
Jakob Olsson
f831eb5259 map-agent: 4.1.2 2021-07-02 13:04:34 +02:00
Omar Kallel
3a19aca30f icwmp: 7.4.0-2021-07-01 2021-07-01 18:48:41 +01:00
Anjan Chanda
4a039722fc ieee1905: 3.3.1 2021-07-01 16:51:34 +02:00
Anjan Chanda
6a51fb87de ieee1905: 3.3.0 2021-07-01 15:05:56 +02:00
Jakob Olsson
6eb4364b48 map-topology: 2.1.1 2021-07-01 14:09:24 +02:00
Jakob Olsson
730335f7d2 map-agent: 4.1.1 2021-07-01 11:32:30 +02:00
Erik Karlsson
9775ac0bb4 map-agent: rework loop prevention script to use wpa_cli instead of UCI 2021-07-01 11:30:52 +02:00
Yalu Zhang
0c779bb73b Update package dectmngr
Change status for dect.base registration ubus events
2021-07-01 09:54:29 +02:00
Yalu Zhang
9d8957d853 Update package dectmngr
Add UBUS events for base registration
2021-06-30 17:27:40 +02:00
Amin Ben Ramdhane
bb9cfdf487 bbf: 4.3.5 2021-06-30 14:40:40 +01:00
vdutta
dcb6cad37d obuspa: Align with mosquitto config 2021-06-30 19:08:07 +05:30
Jakob Olsson
379d6b878b map-agent: 4.1.0 2021-06-30 13:33:14 +02:00
Jakob Olsson
1e0e15653a map-topology: 2.1.0 2021-06-30 13:12:31 +02:00
Amit Kumar
bd25c841d4 urlfilter: Updated Makefile for issue fix for ipv6 support. 2021-06-30 09:51:26 +05:30
Jakob Olsson
5a67915eec ieee1905: 3.2.1 2021-06-29 14:27:11 +02:00
Jakob Olsson
f78381e0d2 map-controller: 3.0.11 2021-06-29 14:17:12 +02:00
Jakob Olsson
c657b6cd76 map-agent: 4.0.16 2021-06-29 14:15:54 +02:00
vdutta
cdb6bed47c uspd: Updated logging 2021-06-29 10:21:02 +05:30
vdutta
fe8ac41906 swmodd: Datamodel improvements 2021-06-29 10:20:03 +05:30
vdutta
b0c0230535 obuspa: Update init script for enabled parameter 2021-06-29 10:16:28 +05:30
Jakob Olsson
36ae18c95b map-agent: 4.0.15 2021-06-28 11:25:16 +02:00
Jakob Olsson
963af3d4b5 ieee1905: remove macaddress from default ieee1905
This will be set by uci-default or default to auto
2021-06-28 10:33:26 +02:00
Sukru Senli
08825a3914 crun: version 0.20 2021-06-27 16:28:13 +02:00
vdutta
cd3c3669c3 uspd: Allow DynOperate to call dmoperate functions 2021-06-26 23:48:16 +05:30
jjoseph
8141f9d62c dslmngr: 1.1.1
Fix Device.FAST.Line.{i}.Stats. showing 0
2021-06-25 17:31:35 +02:00
Omar Kallel
2603da87a7 icwmp: 7.3.0-2021-06-25 2021-06-25 15:33:32 +01:00
vdutta
98a9ee7ba5 swmodd: Use libbbf_api to expose SoftwareModules DM 2021-06-25 17:53:33 +05:30
Amit Kumar
8dd0627a3f urlfilter: Updated Makefile for ipv6 support. 2021-06-25 17:21:19 +05:30
Amit Kumar
bf73f20997 [iopsys] [urlfilter]
ip6tables rules addition for dns,http,https packets to nfqueue.
2021-06-25 11:29:15 +00:00
Markus Gothe
ecba6c9067 Use the actual HW platform for generating QoS config.
We need to use 'brcm_fw_tool' instead of /proc/cpuinfo
to check the hardware platform. The /proc/cpuinfo API
is not stable. It only works as expected for BCM96846.
2021-06-25 11:20:19 +00:00
Jakob Olsson
2778420bcd map-agent: issue topology discovery over vlan interfaces upon port up 2021-06-25 11:17:40 +00:00
Anjan Chanda
abc2c6c233 ieee1905: 3.2.0 2021-06-25 09:12:12 +02:00
Anjan Chanda
3c96d7d3b9 easy-soc-libs: 6.2.33 2021-06-25 09:11:13 +02:00
Suru Dissanaike
a0165dcc73 SULU: updated package to 0.2.16 2021-06-24 16:16:51 +00:00
Suru Dissanaike
5ae47c1892 SULU: update package to 0.2.15 2021-06-24 16:11:07 +00:00
Amin Ben Ramdhane
882d6911d4 icwmp: 7.2.1-2021-06-24 2021-06-24 14:54:57 +01:00
Amin Ben Ramdhane
6e49e15db6 bbf: 4.3.4 2021-06-24 14:53:34 +01:00
Suru Dissanaike
c1f4516d8e SULU: update package to 0.2.14 2021-06-23 13:29:19 +00:00
Jakob Olsson
26a05cbb75 ieee1905: 3.1.1 2021-06-23 14:09:10 +02:00
nevadita.chatterjee
30baf028d7 topology: 2.0.7: add host global config 2021-06-23 12:00:56 +02:00
jjoseph
678d8ad567 Update feed [iopsys] package [dslmngr] 2021-06-23 11:43:51 +05:30
Amin Ben Ramdhane
47f5c981f7 bbf: 4.3.2 2021-06-22 15:31:09 +01:00
sverma
656f9fb27b wfadatad: modified wfadatad init script. 2021-06-22 15:30:47 +05:30
Anjan Chanda
402669463a wfadatad: 4.0.5 2021-06-21 20:40:45 +02:00
Jakob Olsson
f9b9d172ef map-agent: 4.0.14 2021-06-21 15:21:43 +02:00
Jakob Olsson
6a8445c545 map-agent: fix multiap script sync credentials 2021-06-21 15:20:53 +02:00
Yalu Zhang
92addd0ba0 Update package: dectmngr
Set the region of the DECT base station
2021-06-18 16:57:39 +02:00
Grzegorz Sluja
4f061b4b66 Update package [ endptmngr ]
Add ubus call to get RTP stats from brcm
Event enabled for voice
2021-06-18 15:58:12 +02:00
sverma
bc3991024d wfadatad: 4.0.4 2021-06-18 19:20:51 +05:30
sverma
e42b1097a1 wfadatad: 4.0.3 2021-06-18 18:21:18 +05:30
Anjan Chanda
84bd79bdd6 easy-soc-libs: 6.2.32 2021-06-18 14:49:05 +02:00
vdutta
156fd4f766 uspd: Transaction commit with restart service option 2021-06-18 16:10:53 +05:30
Anjan Chanda
3fc4b8a73e ieee1905: 3.1.0 2021-06-18 12:11:56 +02:00
Jakob Olsson
3706e0b9ef map-topology: 2.0.6 2021-06-18 12:04:34 +02:00
Jakob Olsson
5017b9155e map-controller: 3.0.10 2021-06-18 12:03:42 +02:00
Jakob Olsson
f1a24d7008 map-agent: 4.0.13 2021-06-18 12:03:32 +02:00
Omar Kallel
11efefb309 icwmp: 7.2.0-2021-06-18 2021-06-18 09:17:07 +01:00
Yalu Zhang
864c69d8ae Update package: dectmngr
Set model-id
2021-06-18 09:39:18 +02:00
sverma
66290ca8bb wfadatad: refresh dataelements in every 15 sec. 2021-06-18 12:45:58 +05:30
Anjan Chanda
3a603c64eb wifimngr: 11.2.0 2021-06-17 11:30:07 +02:00
Amin Ben Ramdhane
904cc86836 bbf: 4.3.1 2021-06-17 10:10:55 +01:00
Jakob Olsson
a6b4cccfcc map-agent: hotplug: send topology discovery on eth link up 2021-06-17 09:38:31 +02:00
Jakob Olsson
1ba929a1bc map-agent: 4.0.12 2021-06-17 09:22:16 +02:00
Sukru Senli
27db3c5545 iop: deselect iopupgrade 2021-06-16 17:48:54 +02:00
Sukru Senli
c0d178f2a5 iopupgrade: remove unused package 2021-06-16 17:43:35 +02:00
Anjan Chanda
b76cf64e03 wifimngr: 11.1.1 2021-06-16 11:43:16 +02:00
Anjan Chanda
cb0f28ef56 easy-soc-libs: 6.2.30 2021-06-16 11:38:28 +02:00
Amin Ben Ramdhane
cad2b4be1f bbf: 4.3.0 2021-06-15 23:46:22 +01:00
Yalu Zhang
1b3b27088b Update package: dectmngr
Redesign DECT UBUS events
2021-06-15 17:16:53 +02:00
Jakob Olsson
52ede67c78 map-controller: 3.0.9 2021-06-15 14:54:02 +02:00
Jakob Olsson
da710a8ea5 ieee1905: 3.0.7 2021-06-15 14:53:21 +02:00
Jakob Olsson
e0685ee791 map-agent: 4.0.11 2021-06-15 14:52:55 +02:00
Sukru Senli
77d1a1fe79 Revert "iop: deselect luci-nginx and sulu"
This reverts commit 4a088ffd1c.
2021-06-14 21:08:10 +02:00
Jonas Höglund
f8af9dc5ec Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 573bf95 Only read the FIT header when possible to speed up reading attributes.
-------------------------------------------------------------------------------
commit 573bf9543f8dc792b6d5dc8760cb69c64f11e932
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-06-11 16:42:26 +0200

    Only read the FIT header when possible to speed up reading attributes.

Base directory -> /
 fdtextract.c | 56 ++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 48 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
2021-06-14 14:29:56 +02:00
Jakob Olsson
2948186053 map-agenmt: 4.0.10 2021-06-14 12:23:56 +02:00
Jakob Olsson
7750caf7f5 map-controller: 3.0.8 2021-06-14 12:23:56 +02:00
Sukru Senli
317145634e easy-soc-libs: 6.2.28 2021-06-12 12:32:36 +02:00
Jakob Olsson
a0bca11b5e wfadatad: 4.0.2 2021-06-11 16:14:35 +02:00
Amin Ben Ramdhane
b92491464e bbf: Fix Freq conversion to hexbin for ieee1905 2021-06-11 15:10:12 +01:00
Suru Dissanaike
f9e82d7b5b sulu: update package to version 0.2.13 2021-06-11 13:55:59 +00:00
Suru Dissanaike
6ce90a657e Revert "Update Makefile"
This reverts commit 00f9ef780c
2021-06-11 13:55:16 +00:00
Suru Dissanaike
00f9ef780c Update Makefile 2021-06-11 13:54:19 +00:00
Anjan Chanda
ae820c047d easy-soc-libs: 6.2.27 2021-06-11 15:47:18 +02:00
Anjan Chanda
c00060ccd6 wifimngr: 11.1.0 2021-06-11 15:46:56 +02:00
Anjan Chanda
99fe0ef701 ieee1905: 3.0.6 2021-06-11 15:28:25 +02:00
Omar Kallel
3272f6a7ca icwmp: update init file 2021-06-11 14:26:41 +01:00
Jakob Olsson
be779fb032 map-topology: 2.0.5 2021-06-11 15:14:35 +02:00
Jakob Olsson
cdaa705bf2 map-controller: 3.0.7 2021-06-11 15:14:35 +02:00
Jakob Olsson
b25640f5cd map-agent: 4.0.9 2021-06-11 15:14:35 +02:00
Amin Ben Ramdhane
3e1eb2c26a bbf: 4.2.8 2021-06-11 14:00:34 +01:00
vdutta
502a2208da obuspa: Fix DM object values and caching interval
- Adaptive caching time interval for dm objects from ubus
 - Fix minor issues in datamodel value registered from obuspa
2021-06-11 18:27:47 +05:30
Omar Kallel
f5b4997f5a icwmp: 7.1.1-2021-06-01 2021-06-11 11:26:34 +01:00
Sukru Senli
7f3363ed1b iop: update_package: if feed is given, update feeds.conf for that feed only 2021-06-11 11:06:00 +02:00
Sukru Senli
4a088ffd1c iop: deselect luci-nginx and sulu 2021-06-10 17:11:12 +02:00
Jakob Olsson
b3a24bc064 map-topology: 2.0.4 2021-06-10 16:42:15 +02:00
Yalu Zhang
b8b49c884a Update package: dectmngr
Reply an empty "software version identifier" (length=0) to SUOTA request
2021-06-10 16:27:40 +02:00
Jakob Olsson
3bbd300a6f map-agent: 4.0.8 2021-06-10 15:44:24 +02:00
Amin Ben Ramdhane
228e5d6e2c bbf: Align with ieee1905 object 2021-06-10 13:45:55 +01:00
Amin Ben Ramdhane
5073a86a81 bbf: 4.2.6 2021-06-10 10:27:47 +01:00
Jakob Olsson
09fb98d1a8 map-controller: 3.0.6 2021-06-10 11:14:35 +02:00
Jakob Olsson
c8fcae0267 map-agent: 4.0.7 2021-06-10 11:14:35 +02:00
Jakob Olsson
bb1a867ba9 ieee1905: 3.0.4 2021-06-10 11:14:35 +02:00
Sukru Senli
12f7b56d8e Revert "iop: deselect luci-nginx and sulu"
This reverts commit 9e7915e0b8.
2021-06-09 18:49:31 +02:00
Jakob Olsson
9b9b69db8f map-controller: 3.0.5 2021-06-09 15:24:24 +02:00
Jakob Olsson
bfd89fed46 map-agent: 4.0.6 2021-06-09 12:29:42 +02:00
Jakob Olsson
6b3dd5818f map-controller: 3.0.4 2021-06-09 10:15:48 +02:00
Jakob Olsson
fdd1dca318 map-controller: 3.0.3 2021-06-08 17:44:42 +02:00
Yalu Zhang
598b38c030 Updage package: dectmngr
Remove argument "base" from dect.base.1 UBUS methods
2021-06-08 17:34:12 +02:00
Jakob Olsson
3faff63044 wfadatad: 4.0.1 2021-06-08 14:14:24 +02:00
Jakob Olsson
8f7c3669b4 ieee1905: 3.0.3 2021-06-08 14:14:24 +02:00
Jakob Olsson
f719073b64 map-controller: 3.0.2 2021-06-08 14:14:24 +02:00
Jakob Olsson
38324be853 map-agent: 4.0.5 2021-06-08 14:14:24 +02:00
Yalu Zhang
eda07c2623 Update package: dectmngr
Add some handset info in the sqlite3 database
2021-06-08 14:08:31 +02:00
Jakob Olsson
8e57bbc89b map-agent: 4.0.4 2021-06-07 11:03:21 +02:00
Anjan Chanda
d96302eea4 wifimngr: 11.0.0 2021-06-05 10:55:00 +02:00
Anjan Chanda
d808393085 easy-soc-libs: 6.2.20 2021-06-05 10:44:00 +02:00
Jakob Olsson
be10424499 map-controller: 3.0.1 2021-06-04 17:39:06 +02:00
Jakob Olsson
885f7f1239 map-agent: 4.0.3 2021-06-04 17:38:14 +02:00
Jakob Olsson
3267182a19 map-agent: 4.0.2 2021-06-04 17:35:34 +02:00
Amin Ben Ramdhane
1b5c95d390 bbf: 4.2.5 2021-06-04 16:30:02 +01:00
vdutta
ab22b4c6b1 uspd: Added longjump to prevent segfaults 2021-06-04 20:03:39 +05:30
Omar Kallel
58734bc8f3 icwmp: 7.1.0-2021-06-04 2021-06-04 15:05:06 +01:00
Jakob Olsson
16a80f24ec map-agent: 4.0.1 2021-06-04 15:53:02 +02:00
Jakob Olsson
9f23a4e63c wfadatad: 4.0.0 2021-06-04 12:29:26 +02:00
Jakob Olsson
2154f7c134 map-controller: 3.0.0: version bump 2021-06-04 12:26:23 +02:00
Jakob Olsson
1327943b0d map-agent: 4.0.0 2021-06-04 12:26:11 +02:00
Jakob Olsson
3511b47856 ieee1905: 3.0.2 2021-06-04 12:25:59 +02:00
Shubham Sharma
d9ddb5f128 periodicstatsd : default global sample interval for implementing calculation mode 2021-06-04 12:32:49 +05:30
Sukru Senli
9e7915e0b8 iop: deselect luci-nginx and sulu 2021-06-03 17:34:13 +02:00
Amin Ben Ramdhane
df488dcfb4 bbf: 4.2.4 2021-06-03 12:28:41 +01:00
Sukru Senli
529cb0aeb2 iop: config: remove reference to non-existent packages 2021-06-02 19:24:20 +00:00
Yalu Zhang
5ab09d60df Update package: dectmngr
Add UBUS method "base_reset"
2021-06-02 17:41:37 +02:00
Jakob Olsson
f7121e0e84 map-agent: multiap script func to sync ieee1905 creds 2021-06-02 17:37:46 +02:00
Suru Dissanaike
9f632e96a7 sulu: added nginx conf for fileupload 2021-06-02 14:57:57 +02:00
Yalu Zhang
64d79c39bc Update package: dectmngr
Add more UBUS methods
2021-06-01 17:02:58 +02:00
Anjan Chanda
ae15ae5dd7 wfadatad: 3.3.4 2021-05-31 21:20:33 +02:00
Anjan Chanda
313fb95cdd map-topology: 2.0.3 2021-05-31 21:20:33 +02:00
Anjan Chanda
b56536c1e0 map-controller: 2.4.19 2021-05-31 20:53:24 +02:00
Anjan Chanda
5a6c51162c map-agent: 3.5.27 2021-05-31 20:51:53 +02:00
Anjan Chanda
358b411758 map-1905: remove ieee1905-meshcomm compat plugin 2021-05-31 20:46:40 +02:00
Anjan Chanda
d3dbf90646 ieee1905: 3.0.1 2021-05-31 20:43:15 +02:00
Sukru Senli
8539d6cfe8 ieee1905-meshcomm: remove old ieee1905 stack 2021-05-29 19:20:36 +02:00
Sukru Senli
7c173a7357 ieee1905: version and license correction for new the stack 2021-05-29 19:16:18 +02:00
Jakob Olsson
219d8e7557 map-agent: workaround: wait for wifi and sleep to let radios initialize 2021-05-28 18:26:26 +02:00
Jakob Olsson
10a7f18099 ieee1905: add back init.d script and fix default config 2021-05-28 17:22:58 +02:00
Jakob Olsson
da2393edec iop: deselect old ieee1905 stack, select new stack 2021-05-28 16:54:19 +02:00
Jakob Olsson
36c46c3717 wfadatad: 3.3.3 2021-05-28 16:40:43 +02:00
Jakob Olsson
6272cb32de ieee1905: install correct directory 2021-05-28 16:38:31 +02:00
Jakob Olsson
9ce26b7f23 wfadatad: remove dependency on non-existing package 2021-05-28 16:38:17 +02:00
Nevadita
15134a7247 topology: 2.0.2 2021-05-28 14:21:47 +00:00
Jakob Olsson
2de708e08b map-controller: 2.4.18 2021-05-28 16:17:56 +02:00
Jakob Olsson
38e5604fed map-agent: 3.5.25 2021-05-28 16:16:49 +02:00
Jakob Olsson
131c152165 ieee1905: 1.0.0 2021-05-28 16:14:09 +02:00
sverma
242327a978 wfadatad: 3.3.2, aligned with new ieee1905. 2021-05-28 19:13:10 +05:30
vdutta
c25e6ab28f obuspa: Updated numentry handling and docs 2021-05-28 18:21:27 +05:30
Oskar Viljasaar
fe1e1af143 taas: Remove usage of CONFIG_TARGET_NAND_BLOCKSZ
This is not used anymore.
2021-05-28 14:25:25 +02:00
Suru Dissanaike
891e294746 Update sulu/Makefile 2021-05-28 08:55:53 +00:00
Suru Dissanaike
61f2920db1 sulu:0.2.10 2021-05-27 18:37:46 +00:00
Suru Dissanaike
ca051ca489 sulu: 0.2.9 2021-05-27 15:52:56 +00:00
Jakob Olsson
afbb5646bd ieee1905: 0.3.3 2021-05-27 17:18:46 +02:00
Jakob Olsson
1647299798 map-controller: 2.4.17 2021-05-27 17:18:46 +02:00
Jakob Olsson
efbdd85054 map-agent: 3.5.24 2021-05-27 17:18:43 +02:00
Jakob Olsson
0b2f5dda9a ieee1905: 0.3.2 2021-05-27 16:30:54 +02:00
Jakob Olsson
bea9ff0f87 rename prj-unish to ieee1905 2021-05-27 16:30:54 +02:00
Jakob Olsson
9bbfeee6aa rename ieee1905 to ieee1905-mescomm 2021-05-27 16:30:54 +02:00
Jakob Olsson
8a1f53463d map-agent/cntlr: add prj-unish dependency 2021-05-27 16:30:54 +02:00
Jakob Olsson
dd41b4b573 map-controller: 2.4.16 2021-05-27 16:30:54 +02:00
Jakob Olsson
abee9b7f90 map-agent: 3.5.22 2021-05-27 16:30:54 +02:00
Jakob Olsson
7bb1e1fabe prj-unish: 0.3.1 2021-05-27 16:30:54 +02:00
Amin Ben Ramdhane
1f06ccede8 bbf: 4.2.3 2021-05-27 15:10:55 +01:00
Rahul
b111eb1246 urlfilter: Update makefile
To include urlfilter daemon improvements.
2021-05-27 19:03:50 +05:30
Rahul
c3eeb956d9 urlfilter: update makefile and fix https filtering
* make use of conntrack to flush exiting tcp connection
* update init file to
    * not accelerate https packets so that they are can be trapped
      by urlfilter daemon
    * flush connections when daemon reloaded
    * make firewall rules more secure
2021-05-27 18:53:01 +05:30
Suru Dissanaike
fdabc69dfa sulu: 0.2.8 2021-05-27 10:16:11 +00:00
vdutta
e4f56f549c obuspa: Updated system cert path 2021-05-27 13:13:54 +05:30
Amin Ben Ramdhane
debc7f9ec6 bbf: 4.2.2 2021-05-26 19:14:55 +01:00
vdutta
0c8cdd6297 uspd: ubus notifications for add/del instances 2021-05-26 21:25:00 +05:30
vdutta
6cecf882b8 obuspa: B#4770 Get is throwing erroneous messages 2021-05-26 21:20:18 +05:30
Amin Ben Ramdhane
4d12bc6833 bbf: 4.2.1 2021-05-25 15:42:59 +01:00
Amin Ben Ramdhane
2dbce56aa9 bbf: 4.2.0 2021-05-25 11:09:38 +01:00
Sukru Senli
00b1d90297 dectmngr: update version and license 2021-05-24 21:59:34 +02:00
Suru Dissanaike
63bb34d06a sulu: fix makefile 2021-05-21 18:19:04 +00:00
Suru Dissanaike
aede464e88 iop: added sulu 2021-05-21 17:17:14 +00:00
Jakob Olsson
6ab355131f map-controller: 2.4.13 2021-05-21 15:58:51 +02:00
Jakob Olsson
8564d6081e map-agent: 3.5.21 2021-05-21 15:58:44 +02:00
Suru Dissanaike
c01d17de44 sulu: 0.2.6 2021-05-21 13:54:59 +00:00
Bartlomiej Grzeskowiak
f5cdc3a3e7 iop: Add iopsys-econet en7562
./iop genconfig en7562

Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
2021-05-21 13:19:14 +00:00
Suru Dissanaike
10b20e8fd4 sulu: package 0.2.5 2021-05-21 10:05:17 +00:00
Sukru Senli
49f3ec4cd4 iop: select periodicstats by default 2021-05-20 20:34:17 +02:00
vdutta
ae23f756ec obuspa: Align role_name with uci 2021-05-20 22:34:11 +05:30
Amin Ben Ramdhane
c7ae8699ca bbf: 4.1.9 2021-05-20 13:03:09 +01:00
Amin Ben Ramdhane
df6a493b47 bbf: 4.1.8 2021-05-19 20:16:05 +01:00
Omar Kallel
14136cd10a icwmp: 7.0.3-2021-05-19 2021-05-19 17:42:32 +01:00
vdutta
923747dc4e obuspa: Integrate OBUSPA-4.0 2021-05-19 18:18:26 +05:30
Suru Dissanaike
efb2c35438 sulu: fixed tabs issue in makefile 2021-05-19 06:12:14 +02:00
Suru Dissanaike
00887c2cfc sulu: fixed config to work with LUCI 2021-05-18 19:15:03 +00:00
Suru Dissanaike
6afb559fe3 sulu: copy files to target 2021-05-18 18:20:41 +00:00
Sukru Senli
be301272fa iop: select luci nginx instead of luci uhttpd 2021-05-18 19:06:16 +02:00
Suru Dissanaike
b2ac4d3a46 sulu: added nginx conf via uci-default script 2021-05-18 18:18:24 +02:00
Jonas Höglund
52b4f37130 Do not touch juci Makefile as it's been removed 2021-05-18 16:03:15 +02:00
Amin Ben Ramdhane
88fc0d3692 bbf: 4.1.7 2021-05-18 13:55:43 +01:00
vdutta
a9c8166acd B#5181: Fix mqtts conn with libmosquitto v2.0.10 2021-05-18 17:52:10 +05:30
Omar Kallel
8e21ad37f7 icwmp: 7.0.2-2021-05-18 2021-05-18 12:41:00 +01:00
Amin Ben Ramdhane
329458ea54 bbf: 4.1.6 2021-05-17 15:42:17 +01:00
Jakob Olsson
aa34cd098e map-controller: only parse for -w flag if mapagent config exists 2021-05-17 16:03:19 +02:00
Yalu Zhang
c2fad5fad2 Update package: dectmngr
Always put the list access database file in /tmp/LA_DB
2021-05-17 14:58:25 +02:00
Rahul
32a9117209 periodicstats: update makefile 2021-05-14 19:11:36 +05:30
Anjan Chanda
0c04b05abe easy-soc-libs: 6.2.19 2021-05-14 15:38:01 +02:00
Shubham Sharma
a8bd624873 periodicstatsd : Changes for periodic statistics.
- missing library files under /usr/lib/bbfdm
	- Added global enable for periodicstats & disabled by default
	- updated to latest devel
2021-05-14 12:45:20 +00:00
vdutta
7a3dee480e bbf: Align ra option tag with dhcp option 2021-05-14 17:46:33 +05:30
Adam Borowski
ff67433326 updated endpoint manager to support howler tone 2021-05-14 13:31:53 +02:00
Sukru Senli
c2627f0005 urlfilter: disable by default 2021-05-14 12:46:23 +02:00
vdutta
eb8152c1c5 icwmp: Align with ubus socket path 2021-05-14 13:21:26 +05:30
Sukru Senli
94f5d5b98b owsd: adapt to ubus socket default path 2021-05-13 22:17:49 +02:00
vdutta
9d5b9d46e2 xmppc: Added test and docs 2021-05-13 23:50:59 +05:30
Suru Dissanaike
de27e0408d sulu: replace nginx with uci default 2021-05-12 19:45:00 +00:00
vdutta
61321b369c obuspa: Fix service entry 2021-05-12 23:42:38 +05:30
vdutta
d5071bf28d uspd: Fix uspd service entry 2021-05-12 23:40:37 +05:30
vdutta
b87959cc61 stunc: Added stun related params
- Moved stun related datamodel parameters from bbf to stunc
- Rename/align stun uci with package
- Updated schema and docs
2021-05-12 23:37:29 +05:30
vdutta
567e6d9870 bbf: Refactor stun related parameters to stunc 2021-05-12 23:35:22 +05:30
Anjan Chanda
13ed87c4be prj-unish: 1.0.0 2021-05-12 14:53:41 +02:00
Anjan Chanda
b084d4498b wifimngr: 10.0.4 2021-05-12 14:52:28 +02:00
Anjan Chanda
14253e84ac easy-soc-libs: 6.2.18 2021-05-12 14:51:16 +02:00
Suru Dissanaike
163c543147 sulu: avoid conflict with luci 2021-05-12 12:16:23 +00:00
Sukru Senli
7af90d69ee iop: switch from juci to luci as default webui 2021-05-12 13:12:14 +02:00
Sukru Senli
4e1a1c45a0 owsd: disable by default 2021-05-12 13:11:50 +02:00
Jakob Olsson
40612ae2ef map-topology: 2.0.1 2021-05-12 12:39:30 +02:00
Suru Dissanaike
2aae4c8109 sulu: added nginx dependency 2021-05-12 11:23:57 +02:00
Suru Dissanaike
4fe198c7bf sulu: changed path of nginx.conf 2021-05-12 11:20:40 +02:00
Suru Dissanaike
f514d81709 sulu: added nginx conf for port 8080 2021-05-12 09:16:58 +00:00
Jakob Olsson
2e6ac5bb49 rulengd: 1.2.3 2021-05-12 10:42:13 +02:00
Yalu Zhang
1d06631503 Update package [ dectmngr ]
Change the design of mapping between term_id, line_id and handset number
2021-05-12 10:12:47 +02:00
Jakob Olsson
dec1cb5146 owsd: 1.1.3 2021-05-12 10:03:18 +02:00
vdutta
1b5be728d2 obuspa: Align with ubus path 2021-05-12 13:29:52 +05:30
vdutta
5915f5a7c3 uspd: Align with ubus and event support 2021-05-12 13:27:56 +05:30
Jakob Olsson
1d41fce2a3 owsd: use NULL socket by default 2021-05-12 09:26:58 +02:00
Jakob Olsson
02fa994bce map-topology: 2.0.0 2021-05-12 08:58:19 +02:00
Sukru Senli
bed1a643a5 urlfilter: add dependency to iptables-mod-nfqueue 2021-05-12 00:10:21 +02:00
Sukru Senli
c8a33d6aaf endptmngr: 0.5
give silabs driver include path explicitly
2021-05-11 23:43:55 +02:00
Amin Ben Ramdhane
6ce52f1c87 bbf: 4.1.3 2021-05-11 19:57:28 +01:00
Jakob Olsson
a74127ade7 map-topology: 1.5.23 2021-05-11 16:46:34 +02:00
Sukru Senli
3095a304be imonitor: 1.0.1
adapt to new default ubus sock path
2021-05-11 15:56:56 +02:00
Suru Dissanaike
ae26c1e9a8 sulu: update makefile for vite settings 2021-05-11 11:42:28 +00:00
Suru Dissanaike
64dbe2aac5 sulu: 0.2.3 2021-05-11 11:40:46 +00:00
Suru Dissanaike
6cad2afe3a sulu: 0.2.2 2021-05-11 10:32:53 +00:00
Yalu Zhang
501193da98 Rename etc/init.d/dect to etc/init.d/dectmngr
Also remove some files for USB DECT sound driver configuration
2021-05-11 11:15:35 +02:00
Sukru Senli
21cabf5141 endptmngr: remove copyright from init script 2021-05-11 10:59:29 +02:00
Sukru Senli
aa91b4d17e endptmngr: add init script and remove ENDPT_OPEN 2021-05-11 10:58:17 +02:00
jjoseph
119f285d84 Update feed [iopsys] package [urlfilter] 2021-05-11 10:00:52 +05:30
Suru Dissanaike
75bbf1524a sulu: update pkg_version 2021-05-10 13:41:57 +00:00
Suru Dissanaike
082bf1560d Update Makefile 2021-05-10 13:29:39 +00:00
jjoseph
fec3683f7c urlfilter : Change permission of init.d file 2021-05-10 14:18:52 +05:30
Marin Karamihalev
8a02e8dedf Update Makefile 2021-05-07 13:11:28 +00:00
Bartlomiej Grzeskowiak
1c9afee81c iopsys-mediatek: Add iopsys-mediatek (bpi_bananapi-r64)
- ./iop genconfig -c bpi_bananapi-r64
2021-05-07 11:15:39 +00:00
Sukru Senli
97e44aac0a iop: genconfig: fix juci makefile path 2021-05-06 18:43:23 +02:00
Sukru Senli
8aa7978f70 easy-soc-libs: remove intel dependency 2021-05-06 18:01:17 +02:00
Sukru Senli
8319f90d8b juci: move from juci to iopsys feed 2021-05-06 17:27:17 +02:00
Sukru Senli
989ff55cc7 bulut: move from 3rdparty to iopsys feed 2021-05-06 17:14:06 +02:00
Sukru Senli
0e8ecee541 sulu: move from 3rdparty to iopsys feed 2021-05-06 17:13:53 +02:00
Yalu Zhang
e82f77983d Update package [ dectmngr ]
Explicitly enable the encryption between the base station and handsets
2021-05-06 14:44:21 +00:00
Andreas Gnau
181b7688e8 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 485a38b Merge branch 'agnau-print-to-stderr' into 'master'
* bedf694 Print errors to stderr instead of stdout
-------------------------------------------------------------------------------
commit 485a38bc4eaf2a54d080b8529d5130b2955626d1
Author: Jonas Höglund <jonas.hoglund@iopsys.eu>
Date: 2021-05-05 15:06:22 +0000

    Merge branch 'agnau-print-to-stderr' into 'master'

    Print errors to stderr instead of stdout

    See merge request iopsys/fdtextract!1
Base directory -> /
 fdtextract.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
commit bedf694df0eee164f3b21f3bbffaf4dc379fa002
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-05-05 10:16:41 +0200

    Print errors to stderr instead of stdout

Base directory -> /
 fdtextract.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
2021-05-06 13:45:29 +02:00
Yalu Zhang
c8de1c1d35 Update package [ dectmngr ]
Reject SUOTA request from the base station as it may cause handset hang
2021-05-05 15:33:22 +00:00
Sukru Senli
8540d5ebbf crun: use openwrt upstream version 2021-05-05 00:16:58 +02:00
Amin Ben Ramdhane
c48cd18584 bbf: 4.1.2 2021-05-04 16:14:32 +01:00
Jakob Olsson
3ccc71658f map-controller: 2.4.12 2021-05-04 11:10:33 +02:00
Amin Ben Ramdhane
c9f0c9c92b bulkdata: fix compilation error 2021-05-04 09:14:01 +01:00
Amin Ben Ramdhane
18ff1d3965 bbf: 4.1.1 2021-05-03 19:06:44 +01:00
Andreas Gnau
d6bb313565 iop: Remove tc
The tc-utility from iproute2 is seldomly needed. In OpenWrt 21.02 there
are two variants, tc-full and tc-tiny, but since it is not needed,
remove it.
2021-05-03 16:46:58 +02:00
Jakob Olsson
13d33c03a2 map-agent: add loop detection script 2021-05-03 15:03:58 +02:00
Anjan Chanda
0a91cd5acb wfadatad: 3.3.1 2021-05-03 09:58:12 +02:00
vdutta
ad0867991f stunc: Added ci and docs 2021-04-30 20:48:56 +05:30
Andreas Gnau
18545a1fb9 iop: Remove usbreset from config
usbreset has been moved to the usbutils package, but it is not needed,
anyways. Remove it.
2021-04-30 11:35:01 +02:00
Andreas Gnau
0378afa773 iop: Remove alsa-lib from config
One of its dependencies causes issues and alsalib is not used by
anything.
2021-04-30 11:35:01 +02:00
Jakob Olsson
06b4b106e1 map-agent: 3.5.20 2021-04-30 11:33:00 +02:00
Jakob Olsson
916ecab7c9 map-agent: 3.5.19 2021-04-29 18:39:12 +02:00
Jakob Olsson
543c3da5dc map-topology: 1.5.22 2021-04-29 14:06:45 +02:00
Anjan Chanda
2bfd924868 wifimngr: 9.3.2 2021-04-28 22:00:22 +02:00
Anjan Chanda
c12bc7eee9 easy-soc-libs: 6.2.12 2021-04-28 21:59:40 +02:00
Jonas Höglund
e9c5c111c5 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* e92fb43 Enable output of extrated file to stdout.
-------------------------------------------------------------------------------
commit e92fb432f7ec61d8cb2066dba38cf955dcd6c676
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-28 10:06:23 +0200

    Enable output of extrated file to stdout.

Base directory -> /
 fdtextract.c | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
2021-04-28 11:14:58 +02:00
Sukru Senli
f6c3a62378 urlfilter: install default config file 2021-04-27 23:00:05 +02:00
Andreas Gnau
362fb7b238 peripheral_manager: Remove bcmkernel dependency
As Broadcom has moved to standard interfaces, peripheral_manager no
longer depends on Broadcom headers or executables.

Remove the dependency and preprocessor options.
2021-04-27 14:21:40 +02:00
Andreas Gnau
020c8f29e1 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 785166a Remove BRCM_BOARD define
* 86178d8 Remove prox_px3220 driver
* 6069bf5 Remove vox driver
* 3897735 Remove wlctl driver
* 3aadf4a CMakeLists.txt: Run cmake-format
* 636c4e1 update README for doc portal
* d055dd8 update README.md
-------------------------------------------------------------------------------
commit 785166a9861a119623556163179915727896156b
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-23 12:37:22 +0200

    Remove BRCM_BOARD define

    No drivers depend on Broadcom headers anymore, remove the BRCM_BOARD define.

    Peripheral-manager has neither a build nor a runtime dependency on the
    Broadcom SDK.

Base directory -> /
 CMakeLists.txt | 4 ----
 1 file changed, 4 deletions(-)
-------------------------------------------------------------------------------
commit 86178d8dfc51f67b3492ad603106b1fc29d6b285
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-23 12:32:39 +0200

    Remove prox_px3220 driver

    This driver is no longer used by any supported target. Remove it.

Base directory -> /
 src/button.c      |  16 -----
 src/prox_px3220.c | 193 ------------------------------------------------------
 src/prox_px3220.h |   9 ---
 src/server.c      |   6 --
 4 files changed, 224 deletions(-)
-------------------------------------------------------------------------------
commit 6069bf5aea4dbb2ebfdd912ebb2d3c95f90ba86c
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 20:10:06 +0200

    Remove vox driver

    This driver is no longer used by any supported target and neither is it
    built or referenced by any other file. Remove it.

Base directory -> /
 src/vox.c      | 176 --------------------------------------------------------
 src/vox_test.c | 178 ---------------------------------------------------------
 2 files changed, 354 deletions(-)
-------------------------------------------------------------------------------
commit 3897735e4b55bed66a2b4a2ffc3ee3766e502ec5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 19:44:50 +0200

    Remove wlctl driver

    This driver is no longer used by any supported target. Remove it.

Base directory -> /
 CMakeLists.txt  |   2 +-
 src/server.c    |   4 --
 src/wlctl_led.c | 133 --------------------------------------------------------
 3 files changed, 1 insertion(+), 138 deletions(-)
-------------------------------------------------------------------------------
commit 3aadf4a6d69ed1db02376e7a20f751e8bbf408c5
Author: Andreas Gnau <andreas.gnau@iopsys.eu>
Date: 2021-04-21 10:49:42 +0200

    CMakeLists.txt: Run cmake-format

    Amongst consistent indendation and following best-practices such as
    lowercase function-names, this puts individual list items on a separate
    line, making diffs easier to read.

Base directory -> /
 CMakeLists.txt | 190 +++++++++++++++++++++++++++++++++++----------------------
 1 file changed, 118 insertions(+), 72 deletions(-)
-------------------------------------------------------------------------------
commit 636c4e1568828d85def657c324c78e341edccaad
Author: Sukru Senli <sukru.senli@iopsys.eu>
Date: 2021-04-11 13:11:29 +0200

    update README for doc portal

Base directory -> /
 README.md                      | 494 ++++++++++-------------------------------
 img/peripheral-manager.png     | Bin 0 -> 60660 bytes
 img/peripheral_led_mapping.png | Bin 0 -> 25497 bytes
 3 files changed, 115 insertions(+), 379 deletions(-)
-------------------------------------------------------------------------------
commit d055dd8a4a3aa53550a1b1f9db94225fe7c0f61b
Author: Benjamin Larsson <benjamin.larsson@iopsys.eu>
Date: 2021-04-11 13:08:18 +0200

    update README.md

Base directory -> /
 README.md | 477 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
 1 file changed, 420 insertions(+), 57 deletions(-)
-------------------------------------------------------------------------------
2021-04-27 13:44:23 +02:00
Anjan Chanda
10bf43efa9 wfadatad: 3.3.0 2021-04-27 11:51:50 +02:00
Anjan Chanda
5e3a7e7af0 prj-unish: 0.7.0 2021-04-27 11:50:38 +02:00
Anjan Chanda
a76c0a433d wifimngr: 9.3.0 2021-04-27 11:47:53 +02:00
Anjan Chanda
026ccd759e easy-soc-libs: 6.2.10 2021-04-27 11:47:11 +02:00
nevadita.chatterjee
0df9c6fc36 host: Adding sighup for network change 2021-04-27 08:52:15 +00:00
Jakob Olsson
3751ae692a map-topology: 1.5.21 2021-04-27 10:50:24 +02:00
Filip Matusiak
0160f21f10 map-controller: init.d start on reload if not running 2021-04-27 08:48:10 +00:00
Jakob Olsson
52f35c0763 map-agent: 3.5.18 2021-04-27 10:44:44 +02:00
Sukru Senli
e650d27f76 urlfilter: start urlfilter only if globally enabled 2021-04-27 09:50:48 +02:00
Sukru Senli
8d6d7626b8 iop: select urlfilter by default 2021-04-27 09:35:23 +02:00
Jakob Olsson
e6c6b2c9ae rulengd: 1.2.2 2021-04-26 17:10:52 +02:00
Amin Ben Ramdhane
67693a8954 bbf: 4.1.0 2021-04-26 15:24:32 +01:00
Amin Ben Ramdhane
88ed893a07 bbf: 4.0.9 2021-04-23 11:47:10 +01:00
Amin Ben Ramdhane
fd369ac2fb bbf: 4.0.8 2021-04-22 14:50:19 +01:00
Amin Ben Ramdhane
c1bb3a5c0f bbf: 4.0.7 2021-04-22 10:25:26 +01:00
Anjan Chanda
d1d455a51d wifimngr: 9.2.3 2021-04-21 22:21:10 +02:00
Simon Tate
fe63598021 shflags: skip PKG_MIRROR_HASH check
with latest OpenWRT, the mirror hash is now checked, even if dl/ item exists. Adding skip, stops it from always downloading again.
2021-04-21 10:45:58 +00:00
Simon Tate
7853733a75 libtrace: skip PKG_MIRROR_HASH check
with latest OpenWRT, the mirror hash is now checked, even if dl/ item exists. Adding skip, stops it from always downloading again.
2021-04-21 10:45:58 +00:00
Sukru Senli
7d991d89be move bulkdata, twamp and udpechoserver to their individual repos 2021-04-20 19:19:26 +02:00
Sukru Senli
88892e5f7c move xmppc & stunc code to their individual repos 2021-04-20 18:58:47 +02:00
jjoseph
b30434d872 Update feed [iopsys] package [urlfilter] 2021-04-20 19:05:10 +05:30
Sukru Senli
9995b4a3f2 icwmp: remove CONFIG_CWMP_SCRIPTS_FULL 2021-04-16 18:45:31 +02:00
Anjan Chanda
27c515e258 wifimngr: 9.2.1 2021-04-16 16:51:52 +02:00
Marek Puzyniak
8373ffae75 easy-soc-libs: update version and hash
Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>
2021-04-16 13:39:33 +00:00
sverma
888b247706 wfadatad: HE caps support added (3.2.5). 2021-04-16 15:51:34 +05:30
Jakob Olsson
86eed4ba84 map-agent: 3.5.17 2021-04-16 10:18:23 +02:00
Grzegorz Sluja
63335fb119 Update package [ dectmngr ]
Fix dectmngr crash when caller id is empty
2021-04-16 07:44:44 +02:00
Jakob Olsson
bc3dc5c3db map-controller: 2.4.11 2021-04-15 17:30:38 +02:00
Filip Matusiak
0097bc5d89 map-controller: add external trigger logic to init.d 2021-04-15 15:17:00 +00:00
Yalu Zhang
4b04b8445f Update package [ dectmngr ]
Set RFPI value during the start up
2021-04-15 17:08:59 +02:00
Jakob Olsson
317e644e11 3.5.16 2021-04-15 17:08:34 +02:00
Yalu Zhang
1ac9c4f057 Update package [ dectmngr ]
/etc/init.d/dect: gets DECT RFPI from the board DB and passes it to dectmngr
via a command line argument.
2021-04-15 17:05:34 +02:00
Omar Kallel
35f02d2891 icwmp: 7.0.1-2021-04-15 2021-04-15 12:19:44 +01:00
Omar Kallel
067e3dc7b8 icwmp: Fix compiling error 2021-04-15 11:49:06 +01:00
Omar Kallel
3d9cfc03fb icwmp: 7.0.0-2021-04-15 2021-04-15 11:11:02 +01:00
Erik Karlsson
a6c3c54091 mcastmngr: do not overwrite configuration if snooping section exists 2021-04-15 07:57:06 +00:00
Janusz Dziedzic
dbe1a31d09 easy-soc-libs: by default use MAC80211 target
If TARGET_PLATFORM is not set, by default use
MAC80211 target.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-04-14 13:24:16 +00:00
Janusz Dziedzic
d5f0c80b2e update easy-soc-libs
Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-04-14 13:21:51 +00:00
Jakob Olsson
fd60b8121c map-controller: 2.4.10 2021-04-13 15:11:00 +02:00
Jakob Olsson
0001b91c41 map-agent: 3.5.15 2021-04-13 15:10:03 +02:00
Janusz Dziedzic
733c88df8c update easy-soc-libs and wifimngr
kick to newer version

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-04-12 18:35:01 +00:00
Oskar Viljasaar
1d1c8a25f2 iop: select the nohup utility in the busybox config
This is related to the ubus fwbank.upgrade() work as we would
like to implement this function in an asynchronous way.
2021-04-08 15:45:29 +00:00
Jonas Höglund
c47857f950 Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* 152a2d9 Pad hash hex output
-------------------------------------------------------------------------------
commit 152a2d96fea896c1607bd5259e3076750693dd59
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-08 11:00:12 +0200

    Pad hash hex output

Base directory -> /
 fdtextract.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2021-04-08 11:01:20 +02:00
Sukru Senli
d503d4390e iop: select gre by default 2021-04-08 10:12:52 +02:00
Anjan Chanda
15165b3066 prj-unish: 0.2.0 2021-04-07 15:03:49 +02:00
Jonas Höglund
0fe9ac1a0d Update feed [ iopsys ] package [ fdtextract ]
-------------------------------------------------------------------------------
* a15079b Update README
* 97c3897 Update README
* 31e6cc7 Don't print the algo with the hash.
* 9246b1c Get attribute from root node.
* 1d1556a Print hash algo.
* cdb7ee7 Check hash algo.
* 30d1aed Get hash of image.
* b5bb0eb Extract image to file.
* 34c12c4 Write image to file
* 03328f9 Get size and offset of image.
-------------------------------------------------------------------------------
commit a15079b20b8ded68e5f91f69b79993ef8afd52ab
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-07 09:24:33 +0200

    Update README

Base directory -> /
 README.md | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit 97c38977f0f843b02b82c156fbffb56ebd49246c
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-07 09:23:05 +0200

    Update README

Base directory -> /
 README.md | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 31e6cc7e7ecdc6aec29c99c7feedfb19624f3b59
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-07 09:20:01 +0200

    Don't print the algo with the hash.

Base directory -> /
 fdtextract.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 9246b1c36f083bda292c876273465a7713a5727a
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-07 09:18:09 +0200

    Get attribute from root node.

Base directory -> /
 fdtextract.c | 54 +++++++++++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 47 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 1d1556a5b1f5a4206bb24430562227e8727b9d88
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 15:05:11 +0200

    Print hash algo.

Base directory -> /
 fdtextract.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit cdb7ee7e3365841bd944b897328cebe441083b9c
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 14:53:19 +0200

    Check hash algo.

Base directory -> /
 fdtextract.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 30d1aedc1643f53ea0465a096f5ed1bf6f94b876
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 14:32:29 +0200

    Get hash of image.

Base directory -> /
 fdtextract.c | 34 +++++++++++++++++++++++++++++++---
 1 file changed, 31 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit b5bb0eb23b47298603553e4a99f7c60c59386018
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 13:49:28 +0200

    Extract image to file.

Base directory -> /
 fdtextract.c | 15 ++++++---------
 1 file changed, 6 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
commit 34c12c48bc6900b0c7d70ad95f12fc102507b816
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 11:47:56 +0200

    Write image to file

Base directory -> /
 fdtextract.c | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 03328f97927199df098cb1fe49efc842d213a7a4
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-06 11:13:28 +0200

    Get size and offset of image.

Base directory -> /
 fdtextract.c | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
-------------------------------------------------------------------------------
2021-04-07 09:45:24 +02:00
Amin Ben Ramdhane
99a4fe3f05 bbf: 4.0.6 2021-04-06 15:10:52 +01:00
Jonas Höglund
ca1e348b5c Rename dumpimage to fdtextract 2021-04-06 10:46:22 +02:00
Jonas Höglund
550330cb33 Update feed [ iopsys ] package [ dumpimage ]
-------------------------------------------------------------------------------
* 9ca11d5 Check input
-------------------------------------------------------------------------------
commit 9ca11d5171989c728ed80a641c0d405b5db8e96b
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-01 11:10:08 +0200

    Check input

Base directory -> /
 dumpimage.c | 5 +++++
 1 file changed, 5 insertions(+)
-------------------------------------------------------------------------------
2021-04-01 11:12:40 +02:00
Jonas Höglund
e427dd0f09 Fix spelling error 2021-04-01 11:12:06 +02:00
Jonas Höglund
2eb3c89f36 Update feed [ iopsys ] package [ dumpimage ]
-------------------------------------------------------------------------------
* b70c60b Fix compilation
-------------------------------------------------------------------------------
commit b70c60b751e22d8286028fed3c7bfbf4b576cbf0
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-04-01 10:52:38 +0200

    Fix compilation

Base directory -> /
 .gitignore | 8 ++++++++
 Makefile   | 8 ++++----
 2 files changed, 12 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
2021-04-01 10:53:04 +02:00
Jonas Höglund
6408e0254c Fix dumpimage Makefile 2021-04-01 10:41:17 +02:00
Jonas Höglund
7db30978e3 Add dumpimage tool. 2021-04-01 10:36:16 +02:00
Jakob Olsson
cbc7711204 map-controller: 2.4.9 2021-03-31 17:54:40 +02:00
Amin Ben Ramdhane
263cdbc501 bbf: 4.0.5 2021-03-31 16:44:53 +01:00
Jakob Olsson
0bc5379667 ieee1905: dont log stdout to syslog 2021-03-31 17:19:02 +02:00
Jakob Olsson
f334f25b12 wfadatad: 3.2.4 2021-03-31 16:50:49 +02:00
Jakob Olsson
b54a6f9f52 map-agent: 3.1.14 2021-03-31 15:50:46 +02:00
Jakob Olsson
5eba44b51f map-controller: 2.4.8 2021-03-31 15:19:54 +02:00
Amin Ben Ramdhane
79aa793d47 TWAMP: fix the parent path of TWAMPReflector object 2021-03-31 10:01:43 +01:00
Jakob Olsson
6f40b3fe47 map-topology: 1.5.20 2021-03-31 10:49:55 +02:00
vdutta
57401ea50e obuspa: Percent encode default EndpointID 2021-03-31 13:03:05 +05:30
Jakob Olsson
469a1f3dd2 map-topology: 1.5.19 2021-03-31 08:14:05 +02:00
Jakob Olsson
ab77076213 map-topology: 1.5.18 2021-03-30 17:40:23 +02:00
Jakob Olsson
f377f135bd map-topology: 1.5.17 2021-03-30 17:24:50 +02:00
Jakob Olsson
0041b46b67 map-topology: 1.5.16 2021-03-30 16:53:17 +02:00
Amin Ben Ramdhane
bf14a2013c bbf: 4.0.4 2021-03-30 14:58:22 +01:00
Amin Ben Ramdhane
3706193d98 bbf: 4.0.3 2021-03-29 16:39:49 +01:00
Jakob Olsson
323376f6a0 map-topology: 1.5.15 2021-03-29 17:05:48 +02:00
Jakob Olsson
d09cc5cf02 map-topology: 1.5.14 2021-03-29 15:52:00 +02:00
Jakob Olsson
218faefc0f map-topology: 1.5.13 2021-03-29 14:39:32 +02:00
Amin Ben Ramdhane
d80f3147fd bbf: 4.0.2 2021-03-29 12:56:03 +01:00
Yalu Zhang
2d8c76ba58 Update package [ dectmngr ]
Change log path from /tmp to /var/log/dectmngr
2021-03-29 11:45:07 +02:00
Sukru Senli
083fd0376f questd: 5.2.2
disable network module

simulate router.network object via rpcd script to support juci clients widget
2021-03-27 09:47:30 +01:00
Sukru Senli
22e2cb491a bbf: 4.0.1 2021-03-26 18:54:25 +01:00
Jakob Olsson
3f63c60a9d map-topology: 1.5.12 2021-03-26 17:55:16 +01:00
Jakob Olsson
e9c6d5d4a4 map-topology: 1.5.11 2021-03-26 16:32:28 +01:00
Jakob Olsson
b26e80748c map-topology: 1.5.10 2021-03-26 15:55:42 +01:00
Jakob Olsson
d683c240a9 map-topology: 1.5.9 2021-03-26 15:18:51 +01:00
vdutta
defb23338a uspd: Fix vendor extn in parallel calls 2021-03-26 17:47:37 +05:30
Jakob Olsson
aabf092369 map-topology: 1.5.8 2021-03-26 10:27:59 +01:00
Sukru Senli
84b63deafa uspd: correct commit hash 2021-03-25 20:26:47 +01:00
Amin Ben Ramdhane
1ffc4255ad bbf: new vendor extension mechanism 2021-03-25 19:37:47 +01:00
Jakob Olsson
481a055d54 map-topology: 1.5.7 2021-03-25 17:43:56 +01:00
Jakob Olsson
9cd40a75d5 map-agent: 3.5.13 2021-03-25 16:42:29 +01:00
Jakob Olsson
b606d834d7 map-controller: 2.4.7 2021-03-25 15:23:45 +01:00
Jakob Olsson
f752c9fbce ieee1905: 2.1.44 2021-03-25 15:22:16 +01:00
Anjan Chanda
d7ad33b2ba iop: select package uuidgen 2021-03-25 14:19:27 +01:00
Omar Kallel
425be291f8 icwmp: 6.5.5-2021-03-25 2021-03-25 10:59:00 +01:00
Jakob Olsson
3f4e770a3f ieee1905: 2.1.43 2021-03-25 10:06:57 +01:00
Janusz Dziedzic
9b27f7c349 wifimngr: start wps on all APs
Enumerate all APs and start WPS.
Check if supplicant connected.

Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
2021-03-24 17:07:36 +00:00
vdutta
184cb1c823 obuspa: Verify object create/delete notifications 2021-03-24 19:05:10 +05:30
vdutta
69fc6842c2 uspd: Align error message format 2021-03-24 18:04:53 +05:30
Anjan Chanda
d607931a2d wifimngr: 9.1.1 2021-03-23 20:00:10 +01:00
Anjan Chanda
5ce6004d58 easy-soc-libs: 6.1.89 2021-03-23 19:59:43 +01:00
Jonas Höglund
febe4679bc Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* d9c2222 Revert "If state is the same as what has already been applied, don't do"
-------------------------------------------------------------------------------
commit d9c22221f6cb414126978c92295fdcc0885e3285
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-03-23 17:24:33 +0100

    Revert "If state is the same as what has already been applied, don't do"

    This reverts commit 4763b55173a50c572ef91ae4c9889d37200a3997.

Base directory -> /
 src/gpio_led.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
-------------------------------------------------------------------------------
2021-03-23 17:25:36 +01:00
Omar Kallel
73448b888b icwmp: 6.5.4-2021-03-23 2021-03-23 13:42:21 +01:00
Jani Juvan
31de1fdb65 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* d17c699 Module test and docs updates to get in sync with code
* 9490d1a If stats missing from channel part of dsl stats
* c0af1a4 Added set -e to CI scripts
* 5199acf Update functional-test.sh
-------------------------------------------------------------------------------
commit d17c699c1fc9588303d6da35ac2250903bf17cd8
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-19 14:55:45 +0000

    Module test and docs updates to get in sync with code

Base directory -> /
 docs/api/atm.link.md                      |  12 +-
 docs/api/dsl.channel.md                   | 183 ++++++------
 docs/api/dsl.line.md                      | 295 ++++++++++---------
 docs/api/dsl.md                           | 457 ++++++++++++++++--------------
 docs/api/fast.line.md                     | 205 +++++++-------
 docs/api/ptm.link.md                      |   4 +-
 dslmngr.c                                 | 100 +++----
 dslmngr.h                                 |   2 +-
 dslmngr_nl.c                              |   2 +-
 gitlab-ci/functional-api-test.sh          |   5 +-
 gitlab-ci/functional-test.sh              |   3 +
 gitlab-ci/install-dependencies.sh         |   2 +-
 gitlab-ci/iopsys-supervisord.conf         |   2 +-
 schemas/ubus/dsl.line_stats.json          |  18 +-
 test/api/json/atm.link.validation.json    |   2 +-
 test/api/json/dsl.channel.validation.json |   2 +-
 test/api/json/dsl.line.validation.json    |   2 +-
 test/api/json/fast.line.validation.json   |   2 +-
 test/api/json/ptm.link.validation.json    |   2 +-
 test/cmocka/Makefile                      |   2 +-
 test/cmocka/functional_test_dslmngr.c     |  20 +-
 test/cmocka/unit_test_dslmngr.c           |   6 +-
 test/cmocka/utils.c                       |  11 +-
 test/files/etc/config/dsl                 |   7 +
 24 files changed, 709 insertions(+), 637 deletions(-)
-------------------------------------------------------------------------------
commit 9490d1ab5f1718dae2bec26fc6a47dd8ea625623
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-17 17:31:30 +0100

    If stats missing from channel part of dsl stats

Base directory -> /
 dslmngr.c | 3 +++
 1 file changed, 3 insertions(+)
-------------------------------------------------------------------------------
commit c0af1a40adac40d5b27eae15dc49601302365e83
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2021-03-15 15:01:21 +0000

    Added set -e to CI scripts

Base directory -> /
 gitlab-ci/functional-api-test.sh | 2 +-
 gitlab-ci/unit-test.sh           | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 5199acfd0c9bbb2c5c27c82664ad1ffe53915831
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2021-03-15 14:57:09 +0000

    Update functional-test.sh

Base directory -> /
 gitlab-ci/functional-test.sh | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2021-03-19 16:01:39 +01:00
Jakob Olsson
7a04489b26 map-controller: 2.4.6 2021-03-19 15:14:30 +01:00
Jakob Olsson
9f6a17e38a map-agent: 3.5.12 2021-03-19 15:13:39 +01:00
Anjan Chanda
b2b6f4a4b1 wfadatad: 3.2.3 2021-03-19 14:27:24 +01:00
Amin Ben Ramdhane
6eabe4170f bbf: 3.7.9 2021-03-19 12:25:06 +01:00
Jakob Olsson
5e8a9b461a map-agent: 3.5.11 2021-03-19 11:11:09 +01:00
Anjan Chanda
55b5312443 easy-soc-libs: 6.1.84 2021-03-19 09:45:50 +01:00
Jakob Olsson
214ded2ce8 map-controler: 2.4.5 2021-03-18 23:46:19 +01:00
Jakob Olsson
28177ccd12 map-agent: 3.5.10 2021-03-18 23:45:27 +01:00
vdutta
9f08eb3ba0 obuspa: Multiple fixes
- Test improvements
 - Fix notification for object create/delete
 - Optimize get time for non-grouped objects
2021-03-18 20:04:56 +05:30
Jakob Olsson
497c700d1b Revert "map-topology: 1.5.7"
This reverts commit 6fdd2ba9ad.
2021-03-18 14:42:14 +01:00
Jakob Olsson
5159e04508 ieee1905: 2.1.42 2021-03-18 09:53:33 +01:00
Jakob Olsson
d034408de9 map-1905: 0.0.19 2021-03-18 08:56:15 +01:00
Jakob Olsson
d953dadccc map-controller: 2.4.4 2021-03-17 17:12:02 +01:00
Jakob Olsson
49b466b8ef map-agent: 3.5.9 2021-03-17 17:06:08 +01:00
Amin Ben Ramdhane
3ca52b35ad bbf: 3.7.8 2021-03-17 11:02:09 +01:00
Raphael Derensy
051826305e owsd: hotplug: map aliases against interface on ifup 2021-03-17 09:48:22 +01:00
Anjan Chanda
7f3e3d9c3e wfadatad: 3.2.1 2021-03-16 20:25:39 +01:00
Anjan Chanda
4790d3b915 easy-soc-libs: 6.1.78 2021-03-16 15:51:53 +01:00
Jakob Olsson
69c430e502 ieee1905: 2.1.41 2021-03-16 11:56:54 +01:00
Andreas Gnau
e5db655422 inbd: Update version number 2021-03-15 11:02:20 +01:00
Andreas Gnau
d2b9140468 treewide: Add PKG_MIRROR_HASH:=skip to pkgs downloaded from git
OpenWrt 21.02 will redownload from git over and over if PKG_MIRROR_HASH
is not set. Set it to skip to prevent it from happening.
2021-03-15 10:57:13 +01:00
Andreas Gnau
7a7097facc inbd: Make compatible with newer json-c version 2021-03-15 10:57:13 +01:00
Amin Ben Ramdhane
cec3913238 icwmp: cleanup 2021-03-14 00:28:48 +01:00
Anjan Chanda
722cca0d26 wfadatad: 3.2.0 2021-03-13 13:04:33 +01:00
Sukru Senli
0c418c8d4e wifimngr: add wps overlap state to rule engine 2021-03-12 19:32:52 +01:00
Janusz Dziedzic
9038766677 Update package [easy-soc-libs, wifimngr] 2021-03-12 17:30:15 +01:00
vdutta
5b0a9699f0 obuspa: Fix access type for grouped multi-instance objects 2021-03-12 20:46:33 +05:30
vdutta
1732abca49 uspd: Change intra process ipc to mmap 2021-03-12 20:41:50 +05:30
Yalu Zhang
5bbda10e68 Update package [ dectmngr ]
Some improvement that the remote party can hear DECT handset clearly. But there
is still big noise from handset side.
2021-03-12 13:56:16 +01:00
Nevadita
6fdd2ba9ad map-topology: 1.5.7 2021-03-12 12:01:38 +00:00
Omar Kallel
e0ba35300f icwmp: 6.5.2-2021-03-11 2021-03-11 13:03:30 +01:00
Filip Matusiak
c354891742 easy-soc-libs: flag for enabling ctrl iface socket 2021-03-10 20:04:55 +01:00
Filip Matusiak
e86b12fcbd Revert "libwpa: Add new package"
This reverts commit c558d65793.
2021-03-10 19:24:45 +01:00
Filip Matusiak
cee10ef824 Revert "libwpa: build only libwpa_client.so"
This reverts commit af0bedc16c.
2021-03-10 19:24:29 +01:00
Filip Matusiak
aab3799f3f Revert "easy-soc-libs: add libwpa_client dependency"
This reverts commit b84c1e6775.
2021-03-10 19:24:20 +01:00
Amin Ben Ramdhane
0c9e81565e bbf: 3.7.6 2021-03-09 17:23:10 +01:00
Filip Matusiak
af0bedc16c libwpa: build only libwpa_client.so 2021-03-09 14:36:51 +01:00
Filip Matusiak
b84c1e6775 easy-soc-libs: add libwpa_client dependency 2021-03-09 14:36:51 +01:00
Filip Matusiak
c558d65793 libwpa: Add new package 2021-03-09 14:36:51 +01:00
Omar Kallel
eaed835d1c icwmp: 6.5.1-2021-03-09 2021-03-09 11:52:18 +01:00
Rahul
1ad4d6b0fb Update makefile [ easy-soc-libs ] library [ libethernet ]
To include change for supporting br-lan counter stats
2021-03-09 14:20:15 +05:30
Jakob Olsson
4378f26209 map-1905: 0.0.18 2021-03-09 08:58:29 +01:00
Yalu Zhang
df7f1090b3 Update package [ dectmngr ]
Synchronise the event process between the host and base station during
the start up.
2021-03-08 14:47:57 +01:00
Omar Kallel
0b3bd71b0c icwmp: 6.5.0-2021-03-05 2021-03-05 16:43:27 +01:00
Anjan Chanda
fa397d90a3 wifimngr: 9.0.1 2021-03-05 15:50:55 +01:00
Anjan Chanda
94d061bb74 easy-soc-libs: 6.1.70 2021-03-05 15:50:26 +01:00
Amin Ben Ramdhane
365f071e9c bbf: 3.7.5 2021-03-05 15:07:44 +01:00
Jani Juvan
e17db02d67 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* b547594 If stats bugfix on fast
* a5bb606 If stats now always presented, even if device missing
-------------------------------------------------------------------------------
commit b5475949442eedcb2781d3c71ea5aacfcce19f34
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-05 13:58:46 +0100

    If stats bugfix on fast

Base directory -> /
 dslmngr.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a5bb6062f5de80422f8c7078d6b90c4643eb147e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-05 12:56:00 +0100

    If stats now always presented, even if device missing

Base directory -> /
 dslmngr.c | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)
-------------------------------------------------------------------------------
2021-03-05 14:09:51 +01:00
vdutta
4a6420b5b4 obuspa: Fix dm thread freeze issue 2021-03-05 18:19:19 +05:30
Jani Juvan
55b85a5fe0 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* a5bb606 If stats now always presented, even if device missing
-------------------------------------------------------------------------------
commit a5bb6062f5de80422f8c7078d6b90c4643eb147e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-05 12:56:00 +0100

    If stats now always presented, even if device missing

Base directory -> /
 dslmngr.c | 40 ++++++++++++++++++++--------------------
 1 file changed, 20 insertions(+), 20 deletions(-)
-------------------------------------------------------------------------------
2021-03-05 12:58:07 +01:00
Yalu Zhang
419eaf87a5 Update package [ dectmngr ]
Make term_id always 1 for all outgoing calls
Set codec between base sation and handset to PCM_LINEAR_NB
2021-03-05 12:18:30 +01:00
Jakob Olsson
f7b842b06a map-controller: 2.4.3 2021-03-05 11:32:26 +01:00
Jakob Olsson
b5dd7861ca map-agent: 3.5.8 2021-03-05 10:10:44 +01:00
Jakob Olsson
680a39cbea map-agent: 3.5.7 2021-03-04 22:51:47 +01:00
Jakob Olsson
5495066a88 map-1905: 0.0.17 2021-03-04 18:18:40 +01:00
Jakob Olsson
796063ea6d ieee1905: 2.1.40 2021-03-04 18:17:07 +01:00
Jakob Olsson
ad7ca90872 map-agent: 3.5.6 2021-03-04 18:16:34 +01:00
Yalu Zhang
563024c9a5 Update package dectmngr
Always ring all active handsets for an incoming call
2021-03-04 16:08:23 +01:00
Jani Juvan
0a8e0ffdec Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* a825f26 If stats
-------------------------------------------------------------------------------
commit a825f26a46318d95e3580054108fb5082a8a59f9
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-03-04 08:11:20 +0000

    If stats

Base directory -> /
 Makefile  |   2 +-
 dslmngr.c | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 105 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
2021-03-04 10:35:57 +01:00
Omar Kallel
755c0d3a3a icwmp: 6.4.8-2021-03-03 2021-03-03 16:58:30 +01:00
vdutta
7c4bd1e415 obuspa: Fix get with empty referenced paths 2021-03-03 17:55:58 +05:30
vdutta
5fff31c8b1 obuspa: build with CONFIG_OPENSSL_NO_DEPRECATED 2021-03-03 16:27:08 +05:30
vdutta
518adb78bc obuspa: Wait for dependent service to start 2021-03-02 16:29:45 +05:30
Anjan Chanda
a5ea97e248 wifimngr: 9.0.0 2021-03-01 21:44:56 +01:00
Anjan Chanda
ba111ca23a easy-soc-libs: 6.1.66 2021-03-01 21:44:11 +01:00
Raphael Derensy
9066a3b852 rulengd: 1.2.1 2021-03-01 16:41:34 +01:00
Amin Ben Ramdhane
da9c130053 bbf: 3.7.4 2021-03-01 15:05:37 +01:00
Sukru Senli
e68b0bdd29 topologyd: remove deprecated package 2021-03-01 13:10:49 +01:00
Jakob Olsson
62afe68988 easy-soc-libs: 6.1.61 2021-03-01 10:19:06 +01:00
Raphael Derensy
32c1ac029d rulengd: 1.2.1 2021-03-01 10:07:11 +01:00
Jakob Olsson
1c26adf945 map-agent: 3.5.5 2021-02-26 16:39:03 +01:00
Jani Juvan
ad1e36bd51 dslmngr: add dependency to libeasy 2021-02-26 15:05:20 +01:00
vdutta
5877112f5e obuspa: Add reference follow in search queries 2021-02-26 15:32:35 +05:30
Anjan Chanda
6e1f635f40 easy-soc-libs: 6.1.60 2021-02-26 07:55:01 +01:00
Sukru Senli
b468a999b9 iop: deselect unused libraries 2021-02-25 20:34:38 +01:00
Anjan Chanda
a845c00b61 easy-soc-libs: 6.1.59 2021-02-25 16:35:44 +01:00
Jakob Olsson
e4f14cde2a map-agent: 3.5.4 2021-02-25 13:35:38 +01:00
Jakob Olsson
9c1d0111c0 map-agent: 3.5.3 2021-02-25 11:57:16 +01:00
Jakob Olsson
51e2dc8996 map-controller: 2.4.2 2021-02-25 11:56:05 +01:00
Jakob Olsson
1583a152a3 map-controller: update init.d script reload trigger 2021-02-25 10:57:32 +01:00
Amin Ben Ramdhane
4b48ec0049 bbf: 3.7.3 2021-02-25 09:30:15 +01:00
vdutta
d10066a1cf obuspa: Optimize time for get of complete dm 2021-02-23 15:42:14 +05:30
Jakob Olsson
93d6848507 ieee1905: 2.1.39 2021-02-23 09:02:18 +01:00
Sukru Senli
c108347db8 netmode: move internet led handling from testnet to ruleng 2021-02-22 22:44:47 +01:00
Anjan Chanda
2619b78b80 easy-soc-libs: 6.1.50 2021-02-22 18:33:24 +01:00
Yalu Zhang
df6f24731e Update package dectmngr
Adjust handset starting number from 2 to 1
2021-02-21 22:00:02 +01:00
Yalu Zhang
9f7bf5d3e0 Update package dectmngr
Configure the number of TDM time slots correctly
2021-02-21 21:16:39 +01:00
Erik Karlsson
06665246e5 Stop all services before unmounting filesystems
K99umount has been moved to K90umount as of OpenWrt 19.07, to make
room for init scripts that may need to run after umount. We need to
stop all services before unmounting the filesystems. The stop()
function is dead code when procd is being used and can be removed.
2021-02-20 15:55:39 +00:00
Sukru Senli
2f51c4fc69 wifimngr: use ruleng for WPS LED handling instead of script 2021-02-20 14:01:49 +01:00
Sukru Senli
262e346eb4 bbf: 3.7.2 2021-02-19 20:31:50 +01:00
vdutta
6eeb07a738 obuspa: Revert duplicate search keys to optimize time 2021-02-19 22:13:16 +05:30
Amin Ben Ramdhane
cda2c6f628 bbf: 3.7.1 2021-02-19 17:42:41 +01:00
Anjan Chanda
89cd93fa45 easy-soc-libs: 6.1.47 2021-02-19 17:30:33 +01:00
Anjan Chanda
1d7f102b55 wfadatad: 3.1.1 2021-02-19 17:23:30 +01:00
Amin Ben Ramdhane
d7dd7e3645 bbf: 3.7.0 2021-02-19 16:49:28 +01:00
Jakob Olsson
ecc67fa3a5 map-agent: 3.5.2 2021-02-19 15:19:18 +01:00
Jakob Olsson
bf06ef8bd4 map-controller: 2.4.1 2021-02-19 14:43:33 +01:00
Jakob Olsson
8271b3b9b8 map-agent: 3.5.1 2021-02-19 14:43:01 +01:00
Jonas Höglund
1bdab0bf97 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* 4763b55 If state is the same as what has already been applied, don't do anything.
* 27b0656 sk9822: Add brightness capability
* 44a458c Add advanced LED indicators for button-press
-------------------------------------------------------------------------------
commit 4763b55173a50c572ef91ae4c9889d37200a3997
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-02-19 13:15:03 +0100

    If state is the same as what has already been applied, don't do anything.

    This is a workaround for a bug in the Broadcom CLED driver which causes
    flickering of LED:s when brightness is repeatedly set.

Base directory -> /
 src/gpio_led.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 27b06566339f22ec0fdc3c71bb9e45c7b22cad86
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:38:07 +0100

    sk9822: Add brightness capability

    When using the sk9822 interface we can set the brightness via an updated
    kernel module.

    This commit adds support for using the updated API.

Base directory -> /
 src/gpio_led.c | 35 ++++++++++++++++++++++++++++++++++-
 1 file changed, 34 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 44a458c77543da8f7b97cc5e7c11fa16b986831e
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:42:27 +0100

    Add advanced LED indicators for button-press

    On some products it's necessary to disable the button indicators for certain
    buttons or only enable a short-press indicator when the long-press event
    occurs.

    This commit adds a third state to solve this as well as options to disable
    the press indicators for a specific button.

Base directory -> /
 src/button.c | 26 ++++++++++++++++++++++++--
 1 file changed, 24 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2021-02-19 13:22:39 +01:00
Jakob Olsson
a0c094b5a1 map-controller: 2.4.0 2021-02-19 12:27:04 +01:00
Jakob Olsson
defab5f8a1 map-agent: 3.5.0 2021-02-19 12:26:29 +01:00
Jakob Olsson
7894d505e4 map-agent: 3.4.7 2021-02-18 18:01:07 +01:00
Jakob Olsson
a7785b1a2d map-controller: update default cfg 2021-02-18 17:42:05 +01:00
Jakob Olsson
ac7dd3ea14 map-agent: 3.4.6 2021-02-18 17:03:43 +01:00
Jakob Olsson
a58a2a95f2 rulengd: libeasy dependency 2021-02-18 14:02:27 +01:00
Jakob Olsson
2e26726bce map-agent: 3.4.5 2021-02-18 13:54:25 +01:00
Raphael Derensy
b46d737152 rulengd: 1.2.0 2021-02-18 13:15:10 +01:00
Jakob Olsson
f78010b8b3 map-agent: 3.4.4 2021-02-18 12:31:35 +01:00
Jakob Olsson
88524fdbc9 map-controller: 2.3.2 2021-02-17 17:29:02 +01:00
Jakob Olsson
1a399a9332 map-agent: 3.4.3 2021-02-17 17:28:28 +01:00
Anjan Chanda
533614b4f4 easy-soc-libs: 6.1.42 2021-02-17 13:04:27 +01:00
Omar Kallel
ada468f63b bbf: 3.6.8 2021-02-16 18:47:57 +01:00
Yalu Zhang
f4dd679f2e dectmngr: disable dectmngr temporarily for the FXS issues
This is a temporary workaround for https://project.iopsys.eu/issues/4141, i.e. DTMF events
can not be detected and silent egress RTP payload for incoming calls.

The latest working version is SMARTHUB3-GFAST-IOPSYS-6.1.0ALPHA0-210112_0249. The problem
starts with SMARTHUB3-GFAST-IOPSYS-6.1.0ALPHA0-210113_0331. Note that this was just a test
result on one SmartHub3 device. It may vary on other devices.

Between these two nightly build versions, there were some dectmngr changes. Simply stopping
dectmngr process by "service dect stop" may cause the bug disappears. Copy dectmngr from the
second firmware to the first one, then the problem happens too.

So it seems that changes in dectmngr causes the FXS issues. Further investigation in dectmngr
will be undertaken.
2021-02-16 16:58:02 +01:00
Anjan Chanda
b9ecd3513d easy-soc-libs: 6.1.40 2021-02-16 15:39:07 +01:00
vdutta
6e1c57dc91 obuspa: Use local mqtt credential for endpointid publish 2021-02-16 19:28:22 +05:30
Vivek Kumar Dutta
f54729e36e Revert "obuspa: Use local mqtt credential for endpointid publish"
This reverts commit afae7a9d3f
2021-02-16 13:56:23 +00:00
vdutta
afae7a9d3f obuspa: Use local mqtt credential for endpointid publish 2021-02-16 19:24:03 +05:30
Anjan Chanda
61ebc2c3a3 wifimngr: 8.5.9 2021-02-16 13:19:19 +01:00
Rahul
4f820cd74c qosmngr: fix bug #4389 on devel
More generic fix to extract port index from port itself.
2021-02-16 15:30:28 +05:30
Rahul
a8e48ca428 qosmngr: fix 4323 on devel
Although no devel panther or FT is not supported as yet but that
might be the case in near future so keeping it same here plus,
bs alias should be replaced with proper bdmf_shell command anyway
so this is done here as well. No regression, no harm.
2021-02-16 13:29:06 +05:30
Jakob Olsson
a92b3c004c map-agent: update default config 2021-02-16 08:47:27 +01:00
Jakob Olsson
b5bb871de5 map-controller: update default config 2021-02-16 08:45:57 +01:00
Amin Ben Ramdhane
c22b03a510 bbf: 3.6.7 2021-02-15 21:25:42 +01:00
Amin Ben Ramdhane
a828ecbd14 BulkData: Align with latest bbf changes 2021-02-15 21:24:30 +01:00
Amin Ben Ramdhane
272f77e46d XMPP: Align with latest bbf changes 2021-02-15 21:24:16 +01:00
Amin Ben Ramdhane
eab05e10a5 TWAMP: Align with latest bbf changes 2021-02-15 21:24:01 +01:00
Amin Ben Ramdhane
08adc4f106 UDPEchoServer: Align with latest bbf changes 2021-02-15 21:23:46 +01:00
Omar Kallel
8a4397b82e icwmp: 6.4.8-2021-02-15 2021-02-15 17:01:12 +01:00
Erik Karlsson
00952364da peripheral_manager: Wait for 'buttons' object
Object was misspelled as 'button' leading to a 2 s delay every boot.
2021-02-15 11:37:24 +00:00
Sukru Senli
cbc988c360 iop: config: select at package 2021-02-14 14:19:00 +01:00
Anjan Chanda
13f34d166e wifimngr: 8.5.8 2021-02-13 13:15:33 +01:00
Anjan Chanda
16a1b5b361 easy-soc-libs: 6.1.38 2021-02-13 13:15:08 +01:00
Omar Kallel
c25f70efc4 icwmp: 6.4.7-2021-02-12 2021-02-12 21:10:08 +01:00
Amin Ben Ramdhane
47dbd02ab4 bbf: 3.6.6 2021-02-12 18:04:44 +01:00
Jakob Olsson
64d5f38931 ieee1905: 2.1.38 2021-02-12 10:10:32 +01:00
Sukru Senli
298a8e8c78 crun: initial port: v0.17
This is a crude port of crun tailored towards Linux kernel 4.19 and disabling 5.4 Linux kernel features

A proper integration should create selectable sub config options
2021-02-11 19:58:47 +01:00
Amin Ben Ramdhane
f8e68aa249 bbf: 3.6.5 2021-02-11 19:27:04 +01:00
Sukru Senli
72de25fb65 iop: deselect rsync 2021-02-11 19:20:39 +01:00
Amin Ben Ramdhane
e38d07407f bbf: add support for all operstate mappings related to Status parameter 2021-02-11 18:37:46 +01:00
Amin Ben Ramdhane
5418076f88 bbf: 3.6.3 2021-02-11 16:23:06 +01:00
Amin Ben Ramdhane
29af99d53e bbf: 3.6.2 2021-02-11 14:17:55 +01:00
Amin Ben Ramdhane
ad0dfafa9e bbf: 3.6.1 2021-02-10 17:39:46 +01:00
vdutta
16df43ccdc obuspa: Fix duplicate unique key search param error 2021-02-10 17:47:18 +05:30
Amin Ben Ramdhane
3e07e3cd0d bbf: Correct UCI mapping for NAT.PortMapping object 2021-02-09 21:56:47 +01:00
Amin Ben Ramdhane
c6be1e0c6b bbf: 3.5.9 2021-02-09 15:55:50 +01:00
Jakob Olsson
606e8e4518 map-agent: 3.4.2 2021-02-09 12:25:12 +01:00
Jakob Olsson
4aaf074694 map-controller: 2.3.1 2021-02-09 12:24:33 +01:00
Sukru Senli
b3716a9f42 iop: generate rootfs tar file 2021-02-09 11:05:34 +01:00
Omar Kallel
bfdb9eda4f icwmp: 6.4.6-2021-02-09 2021-02-09 10:12:35 +01:00
Amin Ben Ramdhane
3a92a09f66 bbf: 3.5.8 2021-02-08 22:54:59 +01:00
Omar Kallel
78a07d7719 icwmp: 6.4.5-2021-02-08 2021-02-08 19:06:10 +01:00
Omar Kallel
255d5ea39e icwmp: 6.4.4-2021-01-08 2021-02-08 16:23:55 +01:00
Amin Ben Ramdhane
d50a164af7 bbf: 3.5.7 2021-02-06 22:28:01 +01:00
Erik Karlsson
5d6c215f23 port-management: Fix failing uci-defaults script
Remove leftover debug printout that was causing uci-defaults script to
fail at first boot due populate_config() returning non-zero.
2021-02-06 10:08:44 +00:00
Jakob Olsson
4de73e9cb0 map-agent: 3.4.1 2021-02-05 11:25:23 +01:00
Amin Ben Ramdhane
bfee02596a bbf: 3.5.6 2021-02-04 22:33:00 +01:00
Jakob Olsson
f52a5fb870 map-controller: add libeasy dependency 2021-02-04 17:21:56 +01:00
Jakob Olsson
4ec5d4ca03 map-agent: add libeasy dependency 2021-02-04 17:21:41 +01:00
Jakob Olsson
fbdfe7493a map-agent: 3.4.0 2021-02-04 16:54:14 +01:00
Jakob Olsson
495dec638a map-controller: 2.3.0 2021-02-04 16:50:28 +01:00
Jakob Olsson
32e44b7b5e map-agent: 3.3.1 2021-02-04 13:53:35 +01:00
Jakob Olsson
21d30f18a7 map-controller: 2.2.2 2021-02-04 13:51:23 +01:00
Jakob Olsson
2617f831a2 ieee1905: 2.1.37 2021-02-04 13:47:17 +01:00
vdutta
130d8c243e obuspa: Publish agent endpointid in local broker 2021-02-04 15:00:28 +05:30
Amin Ben Ramdhane
e4494f9958 bbf: 3.5.5 2021-02-03 21:33:03 +01:00
Jakob Olsson
40228bda04 map-controller: 2.2.1 2021-02-03 13:56:20 +01:00
Anjan Chanda
27e0257e6a wifimngr: 8.5.5 2021-02-02 21:07:47 +01:00
Anjan Chanda
4e812c4e18 easy-soc-libs: 6.1.20 2021-02-02 21:07:10 +01:00
Jakob Olsson
1d6b8e3271 ieee1905: 2.1.36 2021-02-02 16:42:12 +01:00
Amin Ben Ramdhane
8f718e80fd bbf: 3.5.4 2021-02-02 15:08:32 +01:00
Jakob Olsson
6baa72c846 map-agent: 3.3.0 2021-02-02 14:16:54 +01:00
Jakob Olsson
779c964b3f map-controller: 2.2.0 2021-02-02 14:16:05 +01:00
Amin Ben Ramdhane
d120f2e63d bbf: fix a crash in Bridging object 2021-02-01 19:59:18 +01:00
Amin Ben Ramdhane
bc2e7077ec bbf: 3.5.2 2021-02-01 16:00:16 +01:00
Anjan Chanda
924eb2e39c wifimngr: 8.5.3 2021-02-01 15:57:43 +01:00
Anjan Chanda
64ce9b009f easy-soc-libs: 6.1.18 2021-01-29 20:35:44 +01:00
Sukru Senli
50c6a07027 icwmp: remove notify command from init script 2021-01-29 20:20:34 +01:00
Markus Gothe
ac02982008 RM#27829 - RMON statistics not received on request
Everytime we change the target we need to make sure
that easy-soc-libs are rebuilt since different
targets have different definitions of the
structs.

Change-Id: Id973dea4ddb5ffe4e48837650fff56dc67292b8d
2021-01-28 19:33:02 +00:00
jjoseph
69c9f88730 Update package ethmngr : source version 2021-01-28 23:28:56 +05:30
Markus Gothe
cb5c1979e6 gryphon-led-module: add get/set brightness
To be able to dim the LED from user-space
we need to export an API. This is done
like we currently do for setting the color,
a file which handles hexadecimal numbers.

Change-Id: I4636d16e24cdae38ccd6b501e41f71ce7012dbad
2021-01-28 17:05:53 +00:00
Amin Ben Ramdhane
20d31ec7c6 bbf: 3.5.1 2021-01-28 16:54:22 +01:00
Anjan Chanda
f5b8fbb033 easy-soc-libs: 6.1.15 2021-01-28 13:36:56 +01:00
Yalu Zhang
5e01100d14 Update package dectmngr
Handle events CMBS_EV_DSR_TARGET_UP and CMBS_EV_DSR_RECONNECT_REQ properly
2021-01-27 18:33:02 +01:00
vdutta
748e2500f6 obuspa: Reload when schema update available 2021-01-27 19:39:16 +05:30
Yalu Zhang
dc5001c949 Update package dectmngr
Add the callback function for event CMBS_EV_DSR_CORD_CLOSEREG
2021-01-27 14:57:39 +01:00
vdutta
b84fb8e456 uspd: Notify schema updates on usp.raw object 2021-01-27 19:12:28 +05:30
Yalu Zhang
6bbf691df1 Update package dectmngr: disable checksum 2021-01-27 12:18:16 +01:00
jjoseph
ff6fcd8438 Updating package source version 2021-01-27 14:00:49 +05:30
Amin Ben Ramdhane
d454e5eb38 bbf: 3.5.0 2021-01-26 19:03:07 +01:00
Yalu Zhang
9cfeee53e9 Update package dectmngr
Also improve /etc/init.d/dect for service stop
2021-01-26 11:03:20 +01:00
Amin Ben Ramdhane
2b8c0a26ae bbf: 3.4.9 2021-01-25 19:39:18 +01:00
Janusz Dziedzic
d752678875 easy-soc-libs: install qos.h file 2021-01-25 17:02:37 +01:00
Janusz Dziedzic
6df6762cd7 easy-soc-libs: use brcm sdk headers 2021-01-25 13:09:23 +01:00
Anjan Chanda
40d4f72784 easy-soc-libs: refactor package Makefiles 2021-01-25 11:56:59 +01:00
Amin Ben Ramdhane
b7cd1f15f9 bbf: wifi: add support for WPA3 security modes 2021-01-25 09:57:07 +01:00
vdutta
ff2ae72bd2 obuspa: Improve refresh instances logic 2021-01-24 20:22:57 +05:30
Jakob Olsson
93180ac277 easy-soc-libs: 6.1.14 2021-01-22 19:32:34 +01:00
Jakob Olsson
84831d3d95 map-agent: 3.2.3 2021-01-22 17:56:42 +01:00
Jakob Olsson
09de34b98a map-agent: 3.2.2 2021-01-22 14:56:44 +01:00
Sukru Senli
7da60b67cc bbf: 3.4.7
add Device.Firewall.Chain.{i}.Rule.{i}.Log parameter support
2021-01-22 13:51:33 +01:00
Jakob Olsson
ce5541aef8 map-controller: init.d: don't start if enabled is explicitly set to 0 2021-01-22 11:27:01 +01:00
Jakob Olsson
4b564df4c0 map-agent: init.d: don't start if enabled is explicitly set to 0 2021-01-22 11:26:38 +01:00
Amin Ben Ramdhane
5e6580ccf2 bbf: 3.4.6 2021-01-21 21:32:48 +01:00
Anjan Chanda
15a055ffdd ethmngr: 2.0.1 2021-01-21 17:04:09 +01:00
Jakob Olsson
e68fac5e9b map-agent: 3.2.1 2021-01-21 16:33:21 +01:00
Jakob Olsson
df82765a3b map-controller: 2.1.0 2021-01-21 16:16:21 +01:00
Jakob Olsson
f9070e4c3f map-agent: 3.2.0 2021-01-21 14:17:16 +01:00
Anjan Chanda
9d94b7d594 wifimngr: 8.5.2 2021-01-21 12:06:43 +01:00
Anjan Chanda
d1ed021a04 easy-soc-libs: 6.1.13 2021-01-21 12:05:26 +01:00
Sukru Senli
9987882a1c inbd: 1.2.1 2021-01-21 11:12:47 +01:00
Amin Ben Ramdhane
83b6fb7330 bbf: fix crash when adding a static route 2021-01-20 22:00:53 +01:00
Amin Ben Ramdhane
8c3d54ff7d bbf: 3.4.3 2021-01-20 20:50:57 +01:00
Sukru Senli
4e78d1c075 wfadata: get controller enabled option from correct section 2021-01-20 18:50:54 +01:00
Jakob Olsson
2109e5ff4f map-controller: 2.0.7 2021-01-20 17:23:19 +01:00
Jakob Olsson
e417f30841 map-agent: 3.1.14 2021-01-20 17:21:14 +01:00
Jakob Olsson
6610f42769 map-controller: 3.1.13 2021-01-20 14:39:21 +01:00
Jakob Olsson
81cdd1a9ea map-controller: 2.0.6 2021-01-20 14:36:47 +01:00
Jakob Olsson
d69061f95e ieee1905: 3.1.35 2021-01-20 14:33:46 +01:00
Omar Kallel
7f757e9291 icwmp: 6.4.3-2021-01-20 2021-01-20 14:17:32 +01:00
Yalu Zhang
5c4719c6e4 Update package dectmngr
Solves the issue that incoming calls were released by CMBS
2021-01-20 11:07:55 +01:00
Omar Kallel
0ea0df8b82 icwmp: 6.4.2-2021-01-20 2021-01-20 10:10:02 +01:00
Omar Kallel
2dceba94a8 icwmp: 6.4.1-2021-01-19 2021-01-19 17:29:07 +01:00
Anjan Chanda
f34380326f wfadatad: 3.1.0 2021-01-19 16:36:09 +01:00
Anjan Chanda
547a976981 wifimngr: 8.5.0 2021-01-18 17:31:39 +01:00
Anjan Chanda
116d6370ca easy-soc-libs: 6.1.4 2021-01-18 17:29:01 +01:00
Jakob Olsson
6024f034ea map-agent: 3.1.12 2021-01-18 13:01:00 +01:00
Amin Ben Ramdhane
4fb8ec2016 bbf: 3.4.2 2021-01-17 18:55:35 +01:00
Amin Ben Ramdhane
5dfa4996a6 bbf: 3.4.1 2021-01-15 17:49:08 +01:00
Jakob Olsson
eaf990c616 ieee1905: 2.1.34 2021-01-15 15:41:43 +01:00
Jakob Olsson
d6cf5b6dfe ieee1905: 2.1.33 2021-01-15 15:34:42 +01:00
Jakob Olsson
03c62cd618 Revert "ieee1905: 2.1.33"
This reverts commit ba0e921101.
2021-01-15 15:33:53 +01:00
Jakob Olsson
ba0e921101 ieee1905: 2.1.33 2021-01-15 15:25:04 +01:00
Jakob Olsson
8428773a9c map-agent: 3.1.11 2021-01-15 13:58:15 +01:00
Amin Ben Ramdhane
0c33f36c88 bbf: 3.4.0 2021-01-14 21:22:56 +01:00
Amin Ben Ramdhane
1c2b381072 bbf: fix the crash on startup 2021-01-13 18:36:01 +01:00
vdutta
4482e7defd uspd: Change startup sequence 2021-01-13 19:44:50 +05:30
Amin Ben Ramdhane
3740560fd3 bbf: 3.3.8 2021-01-12 22:58:30 +01:00
Yalu Zhang
e4cea887e2 Update package: dectmngr 2021-01-12 18:16:29 +01:00
Yalu Zhang
4e42c07257 endptmngr: replace ubus call uci with libuci API calls directly 2021-01-12 18:15:00 +01:00
Jakob Olsson
26e48a7b83 map-agent: 3.1.10 2021-01-12 17:08:09 +01:00
Jakob Olsson
105dab05d2 map-agent: 2.0.5 2021-01-12 16:12:36 +01:00
Jakob Olsson
40e062550b map-agent: 3.1.9 2021-01-12 16:11:34 +01:00
Jani Juvan
7bc068c0c6 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* 1fa1cee Merge branch 'jani-vendor_id' into 'devel'
* 698eb79 added init of oem parameters
-------------------------------------------------------------------------------
commit 1fa1cee62c52c69c321ddf93399fef9483520996
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2021-01-12 10:31:33 +0000

    Merge branch 'jani-vendor_id' into 'devel'

    dslmngr: add init of oem parameters

    See merge request iopsys/dslmngr!3
Base directory -> /
 dslmngr.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dslmngr.h |  1 +
 main.c    |  1 +
 3 files changed, 69 insertions(+)
-------------------------------------------------------------------------------
commit 698eb796df310797d7eed7d1d7eb590a9990c66c
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-12-18 13:47:20 +0100

    added init of oem parameters

Base directory -> /
 dslmngr.c | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dslmngr.h |  1 +
 main.c    |  1 +
 3 files changed, 69 insertions(+)
-------------------------------------------------------------------------------
2021-01-12 13:42:34 +01:00
Jani Juvan
ae243101f1 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 0c6fab5 libdsl: add support to set oem parameters
-------------------------------------------------------------------------------
commit 0c6fab539a15ec4b9bd7e5e8b1e9257ae4f68398
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-12-17 16:36:17 +0100

    libdsl: add support to set oem parameters

Base directory -> /
 libdsl/broadcom/bcm_dsl_api.c | 29 +++++++++++++++++++++++++++++
 libdsl/xdsl.h                 | 14 ++++++++++++++
 2 files changed, 43 insertions(+)
-------------------------------------------------------------------------------
2021-01-12 13:42:09 +01:00
Shubham Sharma
613ef10273 qosmngr: C daemon for gathering queue stats 2021-01-12 14:17:06 +05:30
Shubham Sharma
06c2d704a9 easy-soc-libs: libqos with APIs for fetching queue stats 2021-01-12 14:17:06 +05:30
Amin Ben Ramdhane
14f7f0d328 bbf: 3.3.7 2021-01-11 21:15:23 +01:00
Jakob Olsson
a0324b3f5e map-agent: bump version 2021-01-10 16:58:57 +01:00
Jakob Olsson
16a9b07497 map-agent: 3.1.8 2021-01-10 16:56:50 +01:00
Jakob Olsson
7c91b86d01 map-agent: 3.1.7
use if_utils easy API
2021-01-08 20:07:50 +01:00
Anjan Chanda
2076e35808 wfadatad: 3.0.5 2021-01-08 19:33:59 +01:00
Sukru Senli
8f04c3e3b3 iop: config: deselect gplv3 wget from default config 2021-01-08 16:45:07 +01:00
Omar Kallel
76b7d03f5e icwmp: 6.4.0-2021-01-08 2021-01-08 16:29:39 +01:00
Anjan Chanda
c3bf9de599 wifimngr: 8.4.0 2021-01-08 12:27:27 +01:00
Anjan Chanda
a3c0948a46 easy-soc-libs: 6.0.4 2021-01-08 10:46:54 +01:00
Omar Kallel
084995366f icwmp: 6.3.9-2021-01-07
add --anyauth to curl as argument for image download
2021-01-07 21:59:24 +01:00
Jakob Olsson
a2468234cd map-agent: 3.1.6 2021-01-07 17:19:33 +01:00
Sukru Senli
39445eaec0 iop: config: select jq 2021-01-07 14:22:33 +01:00
vdutta
898455ceee uspd: Multiple fixes
- Handle SIGSEGV while access libbbf API
 - Logic improvement for result printing
2021-01-07 16:14:16 +05:30
Jakob Olsson
7a422d4244 map-1905: 0.0.16 2021-01-07 08:57:38 +01:00
Amin Ben Ramdhane
cbc1f3b798 bbf: 3.3.6 2021-01-06 23:04:53 +01:00
Amin Ben Ramdhane
7e1d84b6d6 twamp: fixed a crash
The IP.Interface object has been reworked in ticket 2920 without updating twamp accordingly causing this crash
2021-01-06 22:59:20 +01:00
Omar Kallel
9821c3fbac icwmp: 6.3.8-2021-01-06 2021-01-06 11:37:48 +01:00
Omar Kallel
1eb318b09a icwmp: cleanup 2021-01-05 16:00:38 +01:00
Yalu Zhang
b1e3ef111b Install /etc/init.d/dect 2021-01-05 11:26:56 +01:00
Yalu Zhang
e57d5962d1 Add etc/init.d/dect 2021-01-05 11:18:40 +01:00
Omar Kallel
556cd32a18 icwmp: 6.3.6-2021-01-04 2021-01-04 20:04:06 +01:00
Yalu Zhang
61cf78c264 Add package dectmngr 2021-01-04 17:21:18 +01:00
Jakob Olsson
9dfcb15415 map-agent: 3.1.5 2021-01-04 17:18:48 +01:00
Jakob Olsson
1420241d40 map-controller: 2.0.4 2021-01-04 17:18:11 +01:00
Jakob Olsson
530a4b99bd map-agent: 3.1.4 2021-01-04 16:22:47 +01:00
Amin Ben Ramdhane
21b3284b75 bbf: remove cwmp dependency 2021-01-04 10:31:52 +01:00
Omar Kallel
04d13dc7a4 icwmp: 6.3.5-2021-01-04 2021-01-04 09:07:15 +01:00
Omar Kallel
a290ae71ee icwmp: 6.3.4 04-01-2021 2021-01-04 08:24:13 +01:00
Omar Kallel
d45f42427f icwmp: make diagnostics independent from libbbf and remove libbbf dependency 2020-12-31 18:30:58 +01:00
Amin Ben Ramdhane
a230016663 bbf: 3.3.3 2020-12-30 20:57:45 +01:00
Amin Ben Ramdhane
60314e6a42 bbf: 3.3.2 2020-12-29 14:57:27 +01:00
Sukru Senli
38702b44c4 iop: remove reference to unavailable packages 2020-12-28 13:04:44 +01:00
Sukru Senli
75b9f292a0 natalie-dect-h: remove package 2020-12-28 12:59:23 +01:00
Sukru Senli
2fc567be5d tr098: remove package 2020-12-28 11:04:55 +01:00
Omar Kallel
94db04db83 icwmp: Werror flag 2020-12-24 11:24:10 +01:00
Omar Kallel
d9ae8fac97 icwmp: source enhancements 2020-12-23 19:30:27 +01:00
Amin Ben Ramdhane
34dda55644 bbf: 3.3.1 2020-12-23 17:14:02 +01:00
Amin Ben Ramdhane
a6ee4c8122 bbf: 3.3.0 2020-12-23 16:08:12 +01:00
Amin Ben Ramdhane
368ddf1d31 bbf: 3.2.9 2020-12-23 15:37:12 +01:00
Oussama Ghorbel
bcdc8e5dc0 Update feed [ iopsys ] package [ questd ]
-------------------------------------------------------------------------------
* d554541 added Idle support for processs state
* 5ef2891 Questd network module tests
* 435c348 network: increment max client to 256
-------------------------------------------------------------------------------
commit d554541ac6fb8ef14431fcec9a31dbcb52181279
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2020-12-23 15:17:00 +0100

    added Idle support for processs state

Base directory -> /
 system/system.c | 2 ++
 1 file changed, 2 insertions(+)
-------------------------------------------------------------------------------
commit 5ef2891e3ab55e42a5f84af4f678ec5b8e2d6a17
Author: Ozan Tanfener <ozan.tanfener@iopsys.eu>
Date: 2020-09-18 15:11:56 +0200

    Questd network module tests

Base directory -> /
 .gitignore                                    |   3 +-
 .gitlab-ci.yml                                |  40 +-
 CMakeLists.txt                                |   2 +-
 cmake/modules/FindJSON-EDITOR.cmake           |  35 ++
 docs/api/router.network.md                    | 492 +++++++++++++++
 docs/api/router.system.md                     | 823 ++++++++++++++++++++++++++
 docs/functionspec.md                          |  99 ++++
 docs/testspec.md                              | 210 +++++++
 docs/ubus.splash.md                           |   5 +
 gitlab-ci/functional-api-test.sh              |  23 +
 gitlab-ci/functional-test.sh                  |  19 +
 gitlab-ci/install-dependencies.sh             |  40 ++
 gitlab-ci/iopsys-supervisord.conf             |   8 +
 gitlab-ci/setup.sh                            |  45 ++
 network/network.c                             | 274 ++++-----
 schemas/router.network.json                   | 138 +++++
 schemas/router.system.json                    |  22 +-
 supervisord.conf                              |  11 -
 test/CMakeLists.txt                           |  47 --
 test/api/json/router.network.validation.json  |   9 +
 test/cmocka/CMakeLists.txt                    |  44 ++
 test/{ => cmocka}/db-setup.sh                 |   0
 test/cmocka/files/etc/config/dhcp             |  48 ++
 test/cmocka/files/etc/config/network          |  46 ++
 test/cmocka/files/etc/config/wireless         |  55 ++
 test/cmocka/files/etc/wifi.json               |  13 +
 test/cmocka/files/odhcpd                      |   4 +
 test/cmocka/files/var/dhcp.client.options     |   3 +
 test/cmocka/files/var/dhcp.leases             |   3 +
 test/cmocka/network_tests.c                   | 231 ++++++++
 test/cmocka/network_tests.h                   |  16 +
 test/{system-test.c => cmocka/system_tests.c} |   0
 tools.c                                       |   2 +-
 33 files changed, 2594 insertions(+), 216 deletions(-)
-------------------------------------------------------------------------------
commit 435c34859a36ff09813b19f9f7220db3f08c19af
Author: Sukru Senli <sukru.senli@iopsys.eu>
Date: 2020-09-08 16:28:28 +0200

    network: increment max client to 256

Base directory -> /
 network/network.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2020-12-23 15:36:17 +01:00
Yalu Zhang
781f3409ad Remove package natalie-dect 2020-12-23 15:02:49 +01:00
Yalu Zhang
4cc72a2dc6 Remove package dectmngr2 2020-12-23 14:49:09 +01:00
Amin Ben Ramdhane
93dee37808 bbf: 3.2.8 2020-12-23 09:53:17 +01:00
Sukru Senli
42bc8f91ce wifimngr: start WPS in client mode correctly 2020-12-22 16:24:07 +01:00
Sukru Senli
5d16f075ab wifimngr: remove extra file 2020-12-22 16:13:00 +01:00
Sukru Senli
841751d7e2 wifimngr: put all files under correct directory and use a temporary wps-monitor script for LED handling 2020-12-22 15:57:02 +01:00
Yalu Zhang
8bc324c3b4 Update feed: endptmngr 2020-12-22 11:20:55 +01:00
Sukru Senli
20287be7e2 obuspa: install hotplug script 2020-12-22 10:27:35 +01:00
Sukru Senli
6d1e026af4 obuspa: do not reload if data changes with ifupdate 2020-12-22 09:52:57 +01:00
Sukru Senli
2cfabc4eb2 obuspa: use hotplug instead of procd interface trigger 2020-12-22 09:43:17 +01:00
Amin Ben Ramdhane
8f0e98f50b bbf: 3.2.7 2020-12-21 21:00:55 +01:00
Amin Ben Ramdhane
d3cf57ef77 swmodd: 1.1.0 2020-12-21 20:58:43 +01:00
Amin Ben Ramdhane
036e27876a icwmp: 6.3.2-2020-12-21 2020-12-21 20:55:23 +01:00
Omar Kallel
69f8fcb047 icwmp: 6.3.1 memleak fixes 2020-12-21 11:27:19 +01:00
Jakob Olsson
c344fbe2ea map-agent: 3.1.3 2020-12-20 11:58:03 +01:00
Jakob Olsson
0a29c12e09 map-controller: 2.0.3: update cfg file name 2020-12-20 10:54:05 +01:00
Jakob Olsson
68ca5f7fb8 map-agent: 3.1.2: update cfg file name 2020-12-20 10:50:09 +01:00
Jakob Olsson
8cb7c61007 map-agent: 3.1.1 2020-12-20 10:15:39 +01:00
Jakob Olsson
61359cb291 map-controller: disable logging by default 2020-12-18 17:39:09 +01:00
Jakob Olsson
4a439783c8 map-agent: disable logging by default 2020-12-18 17:39:09 +01:00
Jakob Olsson
cd1ad2ec7a map-agent: 3.1.0 2020-12-18 17:39:09 +01:00
Jakob Olsson
9a25147997 map-controller: 2.0.2 2020-12-18 17:39:09 +01:00
Jakob Olsson
ad4c0f5cf1 map-agent: 3.0.4 2020-12-18 17:39:09 +01:00
Jakob Olsson
3f6076369f wifimngr: add reload trigger on wireless config 2020-12-18 17:39:09 +01:00
Jakob Olsson
fbc699524a map-1905: 0.0.15 2020-12-18 17:39:09 +01:00
Jakob Olsson
f7c45760da map-controller: 2.0.0 2020-12-18 17:39:05 +01:00
Jakob Olsson
e03c14ae2b map-agent: 3.0.0 2020-12-18 17:16:45 +01:00
Omar Kallel
355e042820 icwmp: Memory leak fix 2020-12-18 13:33:55 +01:00
Amin Ben Ramdhane
53d2088715 bbf: 3.2.6 2020-12-18 11:33:35 +01:00
Sukru Senli
833c97d216 bulkdata: use correct json get api from libbbf 2020-12-18 08:25:24 +01:00
vdutta
59d2324acd obuspa: Added mqtt test in module test 2020-12-18 11:48:59 +05:30
Omar Kallel
e3cb3586d7 icwmp: json enhancements 2020-12-17 18:34:58 +01:00
Omar Kallel
a5e43567b3 icwmp: jsong and segfault Fixes 2020-12-17 17:19:47 +01:00
vdutta
e03568f9b1 obuspa: Added tests 2020-12-17 17:32:01 +05:30
Omar Kallel
ea23e1489c icwmp: make check_value_change independent from bbf 2020-12-17 12:52:47 +01:00
Amin Ben Ramdhane
32db63deb0 bbf: Added support for FAST object 2020-12-17 11:44:13 +01:00
Jani Juvan
5211a49f67 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* 400cc66 added root object for G.fast
-------------------------------------------------------------------------------
commit 400cc66081f2b10b481d5a745bc505b78af098bd
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-12-16 14:39:24 +0100

    added root object for G.fast

Base directory -> /
 dslmngr.c | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 128 insertions(+), 9 deletions(-)
-------------------------------------------------------------------------------
2020-12-16 17:31:59 +01:00
Jakob Olsson
907f2fc59b easy-soc-libs: 6.0.2 2020-12-16 15:18:43 +01:00
Omar Kallel
cf8571b217 bbf: enhancements 2020-12-16 11:34:54 +01:00
vdutta
86bab4da22 uspd: Multiple fixes
- Uci Schema updated
- Ubus schema updated
- Config option for sock path
- config option for transaction_timeout
- config option to disable uspd
- Align with latest bbf
- Added tests
2020-12-16 15:53:19 +05:30
Amin Ben Ramdhane
3bdf2ba11b bbf: remove tr064 feature and cleanup 2020-12-16 10:17:41 +01:00
Amin Ben Ramdhane
4ee3a92064 icwmp: Align with latest bbf changes 2020-12-16 10:15:06 +01:00
Amin Ben Ramdhane
f1b4cbc520 bulkdata: Align with latest bbf changes 2020-12-16 10:13:34 +01:00
Omar Kallel
dff5045437 icwmp: use usp.raw methods instead of call ubus swmodules 2020-12-15 19:22:06 +01:00
Anjan Chanda
80a057b727 wifimngr: 8.3.0 2020-12-15 17:18:01 +01:00
Anjan Chanda
84a8afe5da easy-soc-libs: 6.0.1 2020-12-15 17:07:17 +01:00
Omar Kallel
609035d250 icwmp: Move and update some bbf functions to icwmp 2020-12-15 15:32:11 +01:00
Sukru Senli
bb0299fe26 tr064: remove package 2020-12-15 10:19:18 +01:00
vdutta
57f6e54646 obuspa: Updated schema and defaults
- Added interface option in global section
- Rebuild persistent db on uci change
- Updated keep.d with db_file
- Updated uci schema and docs
2020-12-14 16:31:26 +05:30
Sukru Senli
859a2af38e icwmp: temporary upgrade fix 2020-12-13 11:50:38 +01:00
Sukru Senli
477284e1a6 obuspa: add interface trigger and update default config 2020-12-13 07:30:24 +01:00
Omar Kallel
a9d10a8642 bbf: 3.1.1 2020-12-12 15:00:48 +01:00
Rahul
01cf113338 qosmngr: fix regression
Changes to resolve bug #4010 and #4011 are moved to devel as well.

Test: regression run on dg400prime devel, all test pass now
2020-12-12 16:23:58 +05:30
Sukru Senli
7da94735b5 icwmp: temporary fix for image verification
cwmp upgrade still does not work reliably on bcm
2020-12-11 21:40:34 +01:00
vdutta
baccd9ad56 obuspa: Fix log_level error in init script 2020-12-12 00:18:53 +05:30
vdutta
1642841acd obuspa: Added transaction id in transactions 2020-12-11 16:22:45 +05:30
vdutta
c3157ef44e uspd: Enhancement in transaction APIs 2020-12-11 16:15:17 +05:30
Omar Kallel
127f732831 icwmp: transaction_id 2020-12-11 11:32:23 +01:00
vdutta
be91f797dc obsupa: Updated uci for easy setup 2020-12-10 21:04:35 +05:30
vdutta
ae7a3e329f obsupa: Reduce number of groups 2020-12-10 19:43:37 +05:30
Jani Juvan
ef37f8d9c1 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* db2ced9 libdsl improvements for Broadcom platform
* 6d26413 libwifi: handle radio oper std for only STA iface
* fe5ba89 libwifi: mtk: add single/multi_ap mode
-------------------------------------------------------------------------------
commit db2ced904ddbd6ab936403ae193b2e343845fdf1
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-12-10 11:00:40 +0000

    libdsl improvements for Broadcom platform

    - Report supported profiles based on current config in DSL driver
    - Replace deprecated StandardsSupported and StandardUsed with XTSE and
    XTSUsed

Base directory -> /
 libdsl/broadcom/bcm_dsl_api.c | 260 +++++++++++++++++++++++++++++++++---------
 libdsl/xdsl.h                 |   1 +
 2 files changed, 210 insertions(+), 51 deletions(-)
-------------------------------------------------------------------------------
commit 6d26413522242a352715fafc1e9fc62626fc61f9
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-11-27 18:30:47 +0000

    libwifi: handle radio oper std for only STA iface

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c  | 13 ++++++++-----
 libwifi/wpactrl_util.c | 27 ++++++++++++++++-----------
 libwifi/wpactrl_util.h |  1 +
 3 files changed, 25 insertions(+), 16 deletions(-)
-------------------------------------------------------------------------------
commit fe5ba89b8479ba5574fe8cf6e38904125f6aa9fb
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-30 18:32:43 +0100

    libwifi: mtk: add single/multi_ap mode

    Extend wifi API with wps multi_ap parameter.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/wifi.h         | 9 +++++----
 libwifi/wpactrl_util.c | 2 +-
 2 files changed, 6 insertions(+), 5 deletions(-)
-------------------------------------------------------------------------------
2020-12-10 12:17:45 +01:00
vdutta
07ca78f548 uspd: Multiple fixes
- Initialise and commit dmmap on startup
- Fix transaction_ api related issues
- Configure socket buf size as per blob len
- Added option to register with named ubus sockets
- list_notify: Added method to list notification params
- Fix usp.raw schema and tests
2020-12-09 18:21:52 +05:30
Amin Ben Ramdhane
10a11f0cb8 BulkData & XMPP & TWAMP: align with latest bbf changes 2020-12-07 22:47:29 +01:00
Amin Ben Ramdhane
4c11cdac89 bbf: 3.1.0 2020-12-07 22:45:13 +01:00
Omar Kallel
8b51e8c03b icwmp: fix transactions 2020-12-07 16:19:12 +01:00
Sukru Senli
2d9f03d6ab iop: select mosquitto packages 2020-12-07 15:47:41 +01:00
Amin Ben Ramdhane
e19674ea70 Align BulkData & XMPP & TWAMP with latest bbf changes 2020-12-06 22:49:29 +01:00
Amin Ben Ramdhane
0af09b123c bbf: improve and cleanup the code 2020-12-06 22:47:40 +01:00
Amin Ben Ramdhane
6e6f7289ad bbf: init context before commit cwmp changes 2020-12-04 14:43:22 +01:00
Jakob Olsson
25f6109691 ieee1905: 2.1.32 2020-12-04 14:32:15 +01:00
Amin Ben Ramdhane
7e0fe946cd bbf: Multiple fixes in DHCPv4 object 2020-12-04 11:46:09 +01:00
Omar Kallel
c831c34a94 icwmp: Fix GPV issue 2020-12-04 10:25:55 +01:00
Amin Ben Ramdhane
a9180d3a2b bbf: commit cwmp changes without restarting its service 2020-12-03 21:40:56 +01:00
vdutta
3ad8ef4b40 uspd: Apply changes only if no fault for cwmp proto 2020-12-04 00:00:12 +05:30
Rahul
17fd0ab28a qosmngr: update default config
Precedence value update to map with tr181 in default config,
now goes from 1 to 8, 8 meaning queue has lowest priority and 1
meaning that the queue has highest priority.

The broadcom script takes care of reversing this and mapping this
to 0 to 7 before configuring actual queues.
2020-12-03 17:50:45 +01:00
Omar Kallel
8ae15aa39b icwmp: Fix GPA issue 2020-12-03 16:03:39 +01:00
Vivek Dutta
1ed5f0c0f6 uspd: update to transaction support 2020-12-03 16:01:47 +01:00
Amin Ben Ramdhane
939ff109c2 bbf: update libbbf to support transactions 2020-12-03 15:50:30 +01:00
Sukru Senli
5c9469589c icwmp: sync files 2020-12-03 12:42:20 +01:00
Sukru Senli
d6dae7cd0b icwmp: make wait for service ubus object based 2020-12-02 19:42:23 +01:00
Omar Kallel
0872d45d63 icwmp: Fix fails returned by CD-Router 2020-12-02 15:14:02 +01:00
Rahul
14e54fbf04 qosmngr: fix regression
latest patch to resolve precedence issue causes regression.
Bug: queues for any port not configured at boot
fix: create the folders which store queue precedence
2020-12-02 19:10:16 +05:30
vdutta
105edbfada obuspa: Align with uspd 2020-12-02 17:13:48 +05:30
vdutta
a77deb3f36 uspd: Transaction support and setm_values improvements 2020-12-02 17:09:18 +05:30
jjoseph
38f737fa20 qosmngr: Bug #3822: TR-181: Some Device.QoS.Queue parameters are returning invalid values 2020-12-02 06:26:48 +00:00
Amin Ben Ramdhane
600209795d bbf: 3.0.4 2020-12-01 19:27:52 +01:00
Omar Kallel
6819ccef9c icwmp: use transactions 2020-12-01 18:38:37 +01:00
Amin Ben Ramdhane
8d257729ef bbf: wifi: adapt OperatingChannelBandwidth get value to WiFi6 2020-11-30 19:35:29 +01:00
Amin Ben Ramdhane
78c84db435 bbf: 3.0.3 2020-11-29 23:12:38 +01:00
Sukru Senli
1b1e071b1b iop: deselect miniupnpc by default 2020-11-29 15:18:51 +01:00
vdutta
38bf0e3c89 obuspa: Free cached data and fix init script 2020-11-28 20:03:15 +05:30
Sukru Senli
2506c9874a obuspa: set db_file explicitly in uci until init script is fixed 2020-11-28 14:08:21 +01:00
Jani Juvan
ee486af38b Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 44ecccf libdsl: fixed missing test stub updates
* 7b299da libwifi: mtk: correct non-existing include
* 79ba626 libwifi: mtk: fix oper_std when no ap iface
* 905c729 libwifi: update phy to netdev with type parameter
* 9094176 libwifi: simplify get_assoclist
* bda31e8 bwifi: mtk: Add time to station and backhaul status
* b50dd79 libwifi: mtk: include staging_dir mac header instead of kernel
-------------------------------------------------------------------------------
commit 44ecccf9892e4b1a80d98964d67050026035eb2b
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-27 18:21:41 +0100

    libdsl: fixed missing test stub updates

Base directory -> /
 libdsl/test_stub/stub.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 7b299da891065b3a02f8e07bd9a835d0b0c74912
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-24 19:47:00 +0100

    libwifi: mtk: correct non-existing include

    nl80211.h does not exist in staging dir while esl is built. Copy of
    nl80211.h must be stored in esl.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/copy_nl80211.h | 6930 ++++++++++++++++++++++++++++++++++++++++
 libwifi/modules/nlwifi.c       |    2 +-
 2 files changed, 6931 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 79ba626ecdd15175c6375364e8eecac77c2193b1
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-11-18 12:17:19 +0000

    libwifi: mtk: fix oper_std when no ap iface

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 63 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
commit 905c729efe237f2dc2088d00d4fac9b301dd52d7
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-11-23 14:58:22 +0000

    libwifi: update phy to netdev with type parameter

    Introduce nlwifi_phy_to_netdev_with_type function which allows to get netdev
    from phy wiyh requested type. Possible options are:
    -NLWIFI_MODE_AP,
    -NLWIFI_MODE_STA,
    -NLWIFI_MODE_AP_STA,
    -NLWIFI_MODE_ANY.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 40 ++++++++++++++++++++++++++++++++--------
 libwifi/modules/nlwifi.h |  6 ++++++
 2 files changed, 38 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit 909417616eea5e4ecc3059ae766fc8a55c21a6b1
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-11-24 11:02:32 +0000

    libwifi: simplify get_assoclist

    Use only one hostapd_cli command list_sta in order to collect assoctiated
    stations.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/wpactrl_util.c | 63 +++++++++-----------------------------------------
 1 file changed, 11 insertions(+), 52 deletions(-)
-------------------------------------------------------------------------------
commit bda31e8fa970f7eb5c5077fc17a64c3ca07fc1b6
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-24 08:28:34 +0100

    bwifi: mtk: Add time to station and backhaul status

    Numbers taken from station dump: iw dev wlan1_1 station dump | egrep
    "inactive time|connected time| duration" idle 		-> inactive
    time:	450 ms in_network 	-> connected time:	2949 seconds
    tx_airtime	-> tx duration:		57214 us rx_airtime	-> rx duration:
    1117926 us

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
-------------------------------------------------------------------------------
commit b50dd79423dcdf9c9eace5945c29641d849876db
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-24 08:25:02 +0100

    libwifi: mtk: include staging_dir mac header instead of kernel

    nl80211.h header in linux-4.14.195 not contain TX_DURATION define in status
    enum. Fixed by including staging header from mac80211.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
2020-11-27 18:26:51 +01:00
Sukru Senli
bf871111a5 iop: config: select uledd 2020-11-27 16:54:45 +01:00
vdutta
1388b566bc obsupa: Change debug level 2020-11-27 20:54:08 +05:30
vdutta
a63295be52 obsupa: Integrate 3.0.0 release
- Optimise uci to support configuration of multiple controllers
- Optimise init script to support MQTT proto
2020-11-27 20:47:16 +05:30
Amin Ben Ramdhane
450b9eaee9 Align XMPP & UDPEchoserver & TWAMP with latest bbf changes 2020-11-27 10:52:16 +01:00
Sukru Senli
e22a60c637 bulkdata: adapt to updated libbbf api 2020-11-27 08:43:08 +01:00
Hemlata Bhatt
32817656e1 bbf : Fix 3847 2020-11-26 12:20:19 +01:00
Jakob Olsson
da017f98e2 ieee1905: 2.1.31 2020-11-25 10:49:58 +01:00
Jakob Olsson
1e3c338abb Revert "ieee1905: 2.1.31"
This reverts commit 034f69408a.
2020-11-24 14:45:28 +01:00
Jakob Olsson
034f69408a ieee1905: 2.1.31 2020-11-24 14:43:05 +01:00
vdutta
d86e277461 obuspa: Align with transaction_* APIs 2020-11-24 17:14:12 +05:30
vdutta
2f333148b2 uspd: Multiple fixes
- 'transaction_*' apis with usp.raw object
 - new method 'setm_values' to set multiple values at once
 - 'dump_schema' with usp specific proto
 - Fix multiple output in 'getm_*' methods
 - Generate fault when set/add/del operations called without transaction
   using usp.raw object
 - Generate fault when set/add/del operation called using usp object and
   another transaction is in progress
2020-11-24 16:58:14 +05:30
Ronny Nilsson
8a275944e3 endptmngr: add a file necessary for build. 2020-11-24 11:29:48 +01:00
Ronny Nilsson
76d40e2e1e Update feed [ iopsys ] package [ endptmngr ]
-------------------------------------------------------------------------------
* c1d337a Fix a crash when endptmngr runs in Iopsys 6 with Broadcom 5.04.
-------------------------------------------------------------------------------
commit c1d337a584b42b5872fb3f3d043d487299d4f826
Author: Ronny Nilsson <ronny.nilsson@iopsys.eu>
Date: 2020-11-23 16:41:10 +0100

    Fix a crash when endptmngr runs in Iopsys 6 with Broadcom 5.04.

Base directory -> /
 src/Makefile              |  1 +
 src/brcm-504-workaround.c | 78 +++++++++++++++++++++++++++++++++++++++++++++++
 src/line.c                |  2 ++
 src/main.c                |  2 ++
 4 files changed, 83 insertions(+)
-------------------------------------------------------------------------------
2020-11-23 21:36:31 +01:00
Sukru Senli
e00394f158 iop: sync config 2020-11-23 12:31:00 +01:00
sverma
64944425f5 wfadatad: Change UBUS object name to 'wifi.dataelements'. 2020-11-23 16:22:46 +05:30
Omar Kallel
9d996bdf9e icwmp: remove the use of forced_inform and force_notifications uci sections 2020-11-23 11:16:39 +01:00
Amin Ben Ramdhane
5c8e7cb740 bbf: 3.0.2 2020-11-20 21:47:49 +01:00
vdutta
201fb45c6c obuspa: Align with uspd 2020-11-20 23:24:47 +05:30
vdutta
7e2cdb88fb uspd: Fix getm_ method and pretty print 2020-11-20 23:11:14 +05:30
Jani Juvan
f750ab67d7 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* 6d32414 fixes for G.fast support
-------------------------------------------------------------------------------
commit 6d32414514842b70fae1ee96069d0712b900151e
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-18 18:03:52 +0100

    fixes for G.fast support

Base directory -> /
 dslmngr.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2020-11-20 13:35:22 +01:00
Jani Juvan
1ba812351d Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* bb551b4 libdsl: add G.fast support
-------------------------------------------------------------------------------
commit bb551b434ac9de31581e905cf5516644c12a877c
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-06 16:01:47 +0100

    libdsl: add G.fast support

Base directory -> /
 libdsl/broadcom/bcm_dsl_api.c | 241 +++++++++++++++++++++++++++++++++++++++++-
 libdsl/utils.c                |   3 +
 libdsl/xdsl.h                 |  12 ++-
 3 files changed, 249 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2020-11-20 13:35:02 +01:00
Jani Juvan
efc11f8c6d dslmngr: update minor version number for adding G.fast support 2020-11-20 13:13:24 +01:00
Ronny Nilsson
69cf19cc8e TaaS: added boostrap support.
Nice to have feature which wipes the flash in a
remote lab DUT and writes the localy built image.
Note: no testing of the image is done.
2020-11-19 22:30:13 +01:00
Ronny Nilsson
085ec84436 taas: we have EX600 too in the dev remote lab. 2020-11-19 22:30:13 +01:00
Ronny Nilsson
faec0f002a taas: prerequisite check has been moved to a common lib. 2020-11-19 22:30:13 +01:00
Amin Ben Ramdhane
436a57f8d6 bbf: Fix some parameters that have invalid values 2020-11-19 20:54:53 +01:00
Janusz Dziedzic
e3d0362d1f Update feed [ iopsys ] package [ easy-soc-libs ]
1cb7c8 libwifi: bcm: get assoclist from hostap
eb0c403 libwifi: bcm: use wl command for neighbors
80c1a24 libwifi: wpactrl: fix neighbor handling
a2c17f7 libwifi: bcm: use reload_config
2020-11-19 18:12:01 +01:00
Jani Juvan
3135ad4865 Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* 97e29e3 fixup for variable mixup in previous commit
-------------------------------------------------------------------------------
commit 97e29e3bb7bece10f728b09f8031b26b61b1debe
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-19 14:55:57 +0100

    fixup for variable mixup in previous commit

Base directory -> /
 dslmngr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2020-11-19 14:56:48 +01:00
Jani Juvan
12f4a5380b Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* a81fc07 added missing index updates for stats
-------------------------------------------------------------------------------
commit a81fc073f54ba0d0c46685fff26bf074b40dc690
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-19 14:18:23 +0100

    added missing index updates for stats

Base directory -> /
 dslmngr.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2020-11-19 14:27:31 +01:00
Jani Juvan
3887bab7f7 dslmngr: update minor version for index change 2020-11-19 14:26:22 +01:00
vdutta
a6a54316e8 uspd: Multiple fixes
- instance_mode parameter in usp ubus object methods
 - Remove list_inform to align with latest bbf changes
 - transaction related usp.raw methods
 - Segregate usp and usp.raw object methods
 - Support of percent escaped double quote in unique key search
 - set: Show end_session_flag for cwmp proto
 - Parallel processing support for operate and get commands
 - unique_keys in 'dump_schema' method
 - In/Out parameters in 'list_operate' method
 - Performance optimizations
2020-11-19 18:04:07 +05:30
Amin Ben Ramdhane
0273969b9c icwmp: 6.0-2020-10-19 2020-11-19 13:20:24 +01:00
Andreas Gnau
0781d5620d natalie-dect: Change open SDK download URL to https 2020-11-19 13:18:03 +01:00
Andreas Gnau
d8d42400b1 endptmngr: Change open SDK download URL to https 2020-11-19 13:18:03 +01:00
Amin Ben Ramdhane
c3ee0a2d8a Align BulkData & XMPP & UDPEchoserver & TWAMP with latest bbf changes
- remove unnecessary arguments from object/parameter definition
2020-11-19 13:16:47 +01:00
Amin Ben Ramdhane
d66c3c0bbf bbf: 3.0-2020-11-19 2020-11-19 13:15:55 +01:00
Andreas Gnau
a57d03d7e9 iop: config: Change CONFIG_LOCALMIRROR to https 2020-11-19 13:11:42 +01:00
Jani Juvan
ec35396ffc Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* c04da97 ubus indexes for line and channel starting from 1
-------------------------------------------------------------------------------
commit c04da9743198041de1fbaa05600d997a4f71c174
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-18 10:10:06 +0100

    ubus indexes for line and channel starting from 1

Base directory -> /
 dslmngr.c | 27 ++++++++++++++++++++-------
 1 file changed, 20 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
2020-11-18 13:22:41 +01:00
Jani Juvan
7e9a109466 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 656dc78 libwifi: mtk: add SCAN_ABORT event
-------------------------------------------------------------------------------
commit 656dc782fda897559d5e3b336cab571162daee5f
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-16 11:46:52 +0100

    libwifi: mtk: add SCAN_ABORT event

    Add SCAN_ABORT event for radio interface.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 3 +++
 libwifi/wifi.h           | 1 +
 2 files changed, 4 insertions(+)
-------------------------------------------------------------------------------
2020-11-18 13:22:27 +01:00
Omar Kallel
21c9d13b7a cwmp: get forced inform and froced notifications from cwmp uci config instead of bbf 2020-11-18 10:16:16 +01:00
Jani Juvan
f467f2a90f Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* db4be52 fix for handling negative uints
-------------------------------------------------------------------------------
commit db4be520b7d03cfa576a95850ea44e59b41381ec
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-17 16:30:17 +0100

    fix for handling negative uints

Base directory -> /
 dslmngr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
2020-11-17 16:39:27 +01:00
Sukru Senli
8ffe458009 remove reference to non-existing parameters 2020-11-17 13:22:09 +01:00
Sukru Senli
a9122f9909 cifsd, cifsd-tools: replaced by ksmbd and ksmbd-tools 2020-11-17 13:21:16 +01:00
Sukru Senli
cea453c91c correct copyright headers in package Makefiles 2020-11-17 13:14:22 +01:00
Rahul
4b707a26f4 Fix Bug #3822: BurstSize default value updated
The default value of burst size in config is set to -1 which is one
part of the problem. The other part of the problem is that the check
in tr181 is not good enough to disallow negative values. That will
be fixed in a seprate patch.
2020-11-17 16:32:29 +05:30
Amin Ben Ramdhane
81a39308cc bbf: 2.9-2020-11-16 2020-11-16 22:07:04 +01:00
Jani Juvan
73d7e51afa Update feed [ iopsys ] package [ dslmngr ]
-------------------------------------------------------------------------------
* 2da1a3f clean-up json-files api-testing
* 21b0119 fixed invalid json
* 549a924 Fix a compilation error in testing
* c06c317 moved dependencies to shell-script instead of having them in docker file
-------------------------------------------------------------------------------
commit 2da1a3fc3d7ba2babfd88032af05c0e226e89008
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-12 17:14:11 +0200

    clean-up json-files api-testing

Base directory -> /
 test/api/json/atm.link.validation.json    | 12 ------------
 test/api/json/dsl.channel.validation.json |  2 +-
 test/api/json/dsl.line.validation.json    | 13 -------------
 3 files changed, 1 insertion(+), 26 deletions(-)
-------------------------------------------------------------------------------
commit 21b0119c090832da9f8a3e4882876649f747ed22
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-12 08:45:15 +0200

    fixed invalid json

Base directory -> /
 test/api/json/atm.link.validation.json | 3 ---
 1 file changed, 3 deletions(-)
-------------------------------------------------------------------------------
commit 549a924c5f3d48db43f02b469e7261feec10c47e
Author: Yalu Zhang <yalu.zhang@iopsys.eu>
Date: 2020-08-10 12:39:18 +0200

    Fix a compilation error in testing

Base directory -> /
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit c06c31728555a091f2807e64ddf7849829c57fef
Author: Suru Dissanaike <suru.dissanaike@iopsys.eu>
Date: 2020-08-05 15:15:41 +0200

    moved dependencies to shell-script instead of having them in docker file

Base directory -> /
 .gitlab-ci.yml                    |  9 ++++++---
 gitlab-ci/install-dependencies.sh | 22 ++++++++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
2020-11-16 15:49:31 +01:00
Jani Juvan
557f2693d3 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 03a776e libdsl: dsl line and channel parameter corrections
* 1a0d70d libdsl: add support for gfast in makefile
* 82dd72a libwifi: mtk: Fix survey dump
* 6c0ba2a libwifi: mtk: nlwifi_phy_to_netdev correct name and behaviour
* f04cd96 libwifi: mtk: fill ifaces field in wifi_radio
-------------------------------------------------------------------------------
commit 03a776e8af7399e11d1405b351df0dafa3b9ae33
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-12 11:58:31 +0100

    libdsl: dsl line and channel parameter corrections

Base directory -> /
 libdsl/broadcom/bcm_dsl_api.c | 56 ++++++++++++++++++++++++++-----------------
 libdsl/xdsl.h                 |  4 ++--
 2 files changed, 36 insertions(+), 24 deletions(-)
-------------------------------------------------------------------------------
commit 1a0d70dddb5dbf8f23d902024ffbb7526e0fcf52
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-16 13:51:45 +0100

    libdsl: add support for gfast in makefile

Base directory -> /
 libdsl/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 82dd72a5b989b3a57d829c00100b89a1f53a908a
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-10 11:34:04 +0100

    libwifi: mtk: Fix survey dump

    nlwifi_phy_to_netdev commit introduce the bug in survey dump fetching.
    Variable name corrected here.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 6c0ba2ae1b35298ea93b85fb3989d084b20fb113
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-09 13:20:52 +0100

    libwifi: mtk: nlwifi_phy_to_netdev correct name and behaviour

    phy_to_netdev -> nlwifi_phy_to_netdev This function does not depend on
    carrier any more. It uses get_ifstatus instead

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    | 16 +++++++--------
 libwifi/modules/nlwifi.c | 51 +++++++++++++++++++-----------------------------
 libwifi/modules/nlwifi.h |  2 +-
 3 files changed, 29 insertions(+), 40 deletions(-)
-------------------------------------------------------------------------------
commit f04cd96dd16136b66f58be6e21d34bdd34f25294
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-11-06 21:55:04 +0100

    libwifi: mtk: fill ifaces field in wifi_radio

    ifaces will be listed for given phy.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
-------------------------------------------------------------------------------
2020-11-16 15:48:24 +01:00
Sukru Senli
c9b2973ac8 qosmngr: correct cpu_model check 2020-11-13 22:51:13 +01:00
Sukru Senli
6f15e7ff27 qos: skip policer config for BCM6755 2020-11-13 22:37:38 +01:00
Sukru Senli
f431a3ddf5 icwmp: remove icwmp-tr098 subpackage 2020-11-13 21:51:08 +01:00
Anjan Chanda
4ce6578aa7 ieee1905-2.1.30 2020-11-13 21:45:44 +01:00
Amin Ben Ramdhane
39ab8e9282 bbf: 2.9-2020-11-13 2020-11-13 17:10:38 +01:00
Jani Juvan
e5694c1429 easy-soc-lib: Fix Makefile to pass correct broadcom chip config 2020-11-13 15:36:07 +01:00
Andreas Gnau
0c998dbb66 endptmngr: Renaming and clean-up of config-options
* Don't pass unused config options to Makefile
* Account for rename TARGET_NO_VOICE => !BCM_VOICE
2020-11-11 21:15:40 +01:00
Amin Ben Ramdhane
d8b5f3e1f0 bbf: 2.8-2020-11-11 2020-11-11 20:34:43 +01:00
Ronny Nilsson
0b39626067 Update feed [ iopsys ] package [ libpicoevent ]
-------------------------------------------------------------------------------
* f446f18 LICENSE: GPLv2 -> LGPLv2.1
-------------------------------------------------------------------------------
commit f446f186102539cceedaa15a95a33547ac3c1fd7
Author: Sukru Senli <sukru.senli@iopsys.eu>
Date: 2020-04-27 14:38:26 +0200

    LICENSE: GPLv2 -> LGPLv2.1

Base directory -> /
 LICENSE | 631 +++++++++++++++++++++++++++++++++++++++++-----------------------
 1 file changed, 406 insertions(+), 225 deletions(-)
-------------------------------------------------------------------------------
2020-11-11 20:07:31 +01:00
Ronny Nilsson
5665076321 endptmngr: restore autostart of endptmngr at boot. 2020-11-11 16:26:44 +01:00
Anjan Chanda
db5c1613f5 wfadatad: 3.0.0 2020-11-11 12:33:51 +01:00
Benjamin Larsson
c82cf9ebb0 Update feed [ iopsys ] package [ peripheral_manager ]
-------------------------------------------------------------------------------
* dd4a72a Dimmed LEDs should light up when press indicator is used.
* 68606f4 Remove test/include/mock_board.h
* c7e50cb Update path for IOP6.
* 5e2a45b Fully implement Linux GPIO and remove Broadcom ioctl().
* aff6aaf Update README.md
* 4dd33de Each button object needs to change lowercase, otherwise the button object will report error in ubus call.
-------------------------------------------------------------------------------
commit dd4a72aca663bf3c9a57f20e889e43a55d3da1b3
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2020-10-06 10:06:15 +0200

    Dimmed LEDs should light up when press indicator is used.

    When having dimmed LEDs and press indicator event occurs, we do want to them
    to temporarily light up 100%.

Base directory -> /
 src/led.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
-------------------------------------------------------------------------------
commit 68606f4dd3dbfe03d4256cd256e797f035d36c51
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2020-10-09 14:58:55 +0200

    Remove test/include/mock_board.h

    The file 'mock_board.h' serves no purpose and should be removed.

    This commit removes it.

Base directory -> /
 test/include/mock_board.h | 109 ----------------------------------------------
 1 file changed, 109 deletions(-)
-------------------------------------------------------------------------------
commit c7e50cb16c2f583e842ccb0622631e7e03dc3079
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2020-10-09 14:40:42 +0200

    Update path for IOP6.

    The paths have changed on IOP6, this change reflects the current paths.

Base directory -> /
 src/peripheral_manager.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 5e2a45b15b231da37764d00469137609471ae4c6
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2020-10-09 14:38:12 +0200

    Fully implement Linux GPIO and remove Broadcom ioctl().

    This also removes the obsolete use of sprintf() and correctly initializes
    the variables (with cacheline alignment).

    What needs further testing is bit-banging via the /sys/class/gpio-interface.
    My initial testing on the EX600 showed however that this is possible.

Base directory -> /
 CMakeLists.txt            | 15 +------------
 src/eco_bug.c             |  4 +---
 src/gpio.c                | 56 -----------------------------------------------
 src/gpio.h                | 42 ++++++++---------------------------
 src/gpio_button.c         | 15 -------------
 src/gpio_led.c            |  7 ------
 src/gpio_linux.c          | 52 +++++++++++++++++++++----------------------
 src/gpio_test.c           | 13 ++++-------
 src/led.c                 |  4 ++--
 src/prox_px3220.c         |  2 +-
 src/touch_sx9512.c        | 23 +++++--------------
 test/include/mock_board.h |  1 -
 12 files changed, 48 insertions(+), 186 deletions(-)
-------------------------------------------------------------------------------
commit aff6aafa04d908dca48852babe7dc0b0fa900aa8
Author: Andreas Jonson <andreas.jonson@iopsys.eu>
Date: 2020-09-09 11:09:44 +0200

    Update README.md

Base directory -> /
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 4dd33de8f7b023c5260dc493ed37337fb2c2dc31
Author: pitchaiah prakash <pitchaiah.murugan@iopsys.eu>
Date: 2020-07-08 20:29:24 +0200

    Each button object needs to change lowercase, otherwise the button object
    will report error in ubus call.

Base directory -> /
 src/button.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
2020-11-10 15:34:17 +01:00
Ronny Nilsson
1f7565536d endptmngr: Adaptions for working with Broadcom 5.04L.02 2020-11-10 15:01:51 +01:00
Ronny Nilsson
1922fa2560 iop: TaaS need the trickle application too. 2020-11-08 01:12:27 +01:00
Ronny Nilsson
fe86ade858 iop: Refactor, extract to separate function. 2020-11-08 01:11:10 +01:00
Ronny Nilsson
f49c4f4a64 Rename due to several remote lab TaaS commands will be added to same file. 2020-11-08 00:35:51 +01:00
Jani Juvan
ac7491c010 Update feed [ iopsys ] package [ easy-soc-libs ]
-------------------------------------------------------------------------------
* 92f1e5a libdsl: broadcom header fixup
* 4c72c1f libwifi: mtk: use reload_config
* e1f9fb9 libwifi: refactor ap_info call
* 321445d libwifi: nlwifi: fill survey in channels_info
* c723e0a libwifi: nlwifi: add channels_info
* f3368e4 libwifi: nlwifi: get vendor/product id
* 24dca3f libwifi: wifi: add channels_info callback
* 012de6c libwifi: mtk: add req_btm
* b900276 libwifi: mtk: add oper_std indication for backhaul
* 2deb863 libwifi: mtk: get_param - empty outupt buffer
* 89cd623 libwifi: iterate wildcard SSID IE correctly
* 6f508cb libwifi: introduce IE defines
* 4b582a3 libwifi: nlwifi: get channel correctly
* 22d94bb libwifi: nlwifi: introduce nlwifi_get_survey()
* 3ca5d99 libwifi: nlwifi: check max for supp channels
* 846cf76 libwifi: nlwifi: move phy_to_netdev()
* ef7c9c6 libwifi: wifi: use u64 for radio diagnostic
* 78b05b3 libwifi: nlwifi: get noise level
* 3e356a9 libwifi: nlwifi: use nlwifi_cmd() for scan
* 57b7659 libwifi: nlwifi: use nlwifi_cmd()
* 9a9fedf libwifi: nlwifi: use nlwifi_cmd()
* af18d6d libwifi: nlwifi: unlock phy commands
* b63aa97 libwifi: nlwifi: prepare for DFS
* 38e0638 libwifi: nlwifi: introduce nlwifi_cmd()
* 96eb796 libwifi: mtk: implement get_beacon_ies
-------------------------------------------------------------------------------
commit 92f1e5a99226bd18897b1832e1879555e9953751
Author: Jani Juvan <jani.juvan@iopsys.eu>
Date: 2020-11-05 15:55:05 +0100

    libdsl: broadcom header fixup

Base directory -> /
 libdsl/Makefile              |  2 +-
 libdsl/broadcom/AdslMibDef.h | 53 +++++++++++++++++++++++++++-----------------
 libdsl/broadcom/bcmadsl.h    | 31 ++++++++++++++++++--------
 3 files changed, 56 insertions(+), 30 deletions(-)
-------------------------------------------------------------------------------
commit 4c72c1ff3c7e1d45d2007f68b6eb867e583b9bb7
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-28 10:24:41 +0100

    libwifi: mtk: use reload_config

    Use reload_config command when add/remove interfaces.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit e1f9fb9f62876029f83be79e51a9ccdce706edb5
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-10-12 10:05:57 +0000

    libwifi: refactor ap_info call

    Use beacon ie in ap_info call to collect information about AP. Use size_t
    instead of int to pass size arguments. Add some generic functions to parse
    ies content. Move generic functions from wpactrl_util to util.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c  |  31 +-----
 libwifi/util.c         | 114 ++++++++++++++++++++++
 libwifi/util.h         |   3 +
 libwifi/wpactrl_util.c | 256 ++++++++++++++++---------------------------------
 libwifi/wpactrl_util.h |  17 +++-
 5 files changed, 216 insertions(+), 205 deletions(-)
-------------------------------------------------------------------------------
commit 321445d0a8edfb171400cada477e15d154cb1c61
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-20 20:49:58 +0200

    libwifi: nlwifi: fill survey in channels_info

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 104 +++++++++++++++++++++++++++++++++++++++++++----
 1 file changed, 96 insertions(+), 8 deletions(-)
-------------------------------------------------------------------------------
commit c723e0ae1224212ec352161cf02cd328bcc2c07a
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-20 14:42:35 +0200

    libwifi: nlwifi: add channels_info

    Add implementation for channels_info. Fill DFS related params.

    We still need to add survey data.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    |  1 +
 libwifi/modules/nlwifi.c | 90 ++++++++++++++++++++++++++++++++++++++++++------
 libwifi/modules/nlwifi.h |  1 +
 3 files changed, 81 insertions(+), 11 deletions(-)
-------------------------------------------------------------------------------
commit f3368e44b69287499bde0206dca312c22ea2f73e
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-20 12:03:53 +0200

    libwifi: nlwifi: get vendor/product id

    Fill driver info vendor/product id.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    |  1 +
 libwifi/modules/nlwifi.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++
 libwifi/modules/nlwifi.h |  1 +
 3 files changed, 76 insertions(+)
-------------------------------------------------------------------------------
commit 24dca3f513087668117bd3d9127eab4051148380
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-23 15:50:41 +0200

    libwifi: wifi: add channels_info callback

    Will be used to get information about channels, like:
    - dfs
    - dfs state
    - busy percent
    - our busy_tx/busy_rx percent
    - noise flour
    - CAC time
    - left NOP time

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/wifi.c | 11 +++++++++++
 libwifi/wifi.h | 37 ++++++++++++++++++++++++++++++++++++-
 2 files changed, 47 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 012de6c2776f745d4578fa34c7489ddbdb862515
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-15 16:27:37 +0200

    libwifi: mtk: add req_btm

    Add implementation for req_btm()

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    | 23 +++++++++++++++++++++++
 libwifi/modules/nlwifi.c |  2 +-
 libwifi/wpactrl_util.c   |  3 +++
 libwifi/wpactrl_util.h   |  2 ++
 4 files changed, 29 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit b9002767a83303d2a833948e9086bd85cd306d96
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-10-15 08:51:50 +0200

    libwifi: mtk: add oper_std indication for backhaul

    oper_std will return the information about link standard. 5GHz: a/n/ac are
    supported separatelly 2,4GHz: b/g or n are supported.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c  |  8 +++++-
 libwifi/wpactrl_util.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++-
 libwifi/wpactrl_util.h |  3 +++
 3 files changed, 75 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 2deb86307a763a288eb8735b390ad7953f56ff01
Author: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
Date: 2020-10-14 12:39:23 +0200

    libwifi: mtk: get_param - empty outupt buffer

    get_param function called multiple times, might not refresh output buffer.
    Clear buffer before filling up with new data.

    Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>

Base directory -> /
 libwifi/wpactrl_util.c | 1 +
 1 file changed, 1 insertion(+)
-------------------------------------------------------------------------------
commit 89cd6237ba90346101f62721424408202785e1c8
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-10-14 10:36:32 +0000

    libwifi: iterate wildcard SSID IE correctly

    For wildcard SSID lenght of information element is zero, change macro
    wifi_foreach_ie to handle also this case.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/wifi.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 6f508cbe6d958cdfc5f60c6827ce9b0cf939e53e
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-10-05 20:53:50 +0000

    libwifi: introduce IE defines

    Replace raw IE ids with more redable defines like:
    "0" -> IE_SSID

    It will be usefull in IE's composition/decomposition.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/bcm.c    | 14 +++++++-------
 libwifi/modules/intel.c  | 14 +++++++-------
 libwifi/modules/nlwifi.c | 22 +++++++++++-----------
 libwifi/util.c           | 12 ++++++------
 libwifi/wifi.h           | 15 +++++++++++++++
 5 files changed, 46 insertions(+), 31 deletions(-)
-------------------------------------------------------------------------------
commit 4b582a3b69b7196ed7784d1f23b93523e49d0e1a
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-06 14:33:32 +0200

    libwifi: nlwifi: get channel correctly

    In case we don't have netdev, get channel from supported channels.

    In other case upper layer could show band incorrectly.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    |  7 ++-----
 libwifi/modules/nlwifi.c | 50 ++++++++++++++++++++++++++++++++++++++++--------
 2 files changed, 44 insertions(+), 13 deletions(-)
-------------------------------------------------------------------------------
commit 22d94bb33d7a876ef8a6c588ba7f91b0c56e11a7
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-06 14:31:44 +0200

    libwifi: nlwifi: introduce nlwifi_get_survey()

    Get survey and fill radio diagnostic counters.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 76 +++++++++++++++++++++++++++++++++++++++---------
 1 file changed, 62 insertions(+), 14 deletions(-)
-------------------------------------------------------------------------------
commit 3ca5d99a6d56699fdb0f5c7ee3d7690c49f110e7
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-06 14:26:17 +0200

    libwifi: nlwifi: check max for supp channels

    Check max for supported channels.

    This is important while we are using NLM_F_DUMP - so cb() could be called
    multiple times.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 846cf765afec559effe2fcb3598f4f88f1c2bbd4
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-06 14:07:23 +0200

    libwifi: nlwifi: move phy_to_netdev()

    Move phy_to_netdev() to nlwifi, while this is specyfic for opensource wifi
    stack.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    | 35 -----------------------------------
 libwifi/modules/nlwifi.c | 36 ++++++++++++++++++++++++++++++++++++
 libwifi/modules/nlwifi.h |  1 +
 3 files changed, 37 insertions(+), 35 deletions(-)
-------------------------------------------------------------------------------
commit ef7c9c6a90cc5b85ce1c6ad1300aeddbda260ca8
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-06 14:03:51 +0200

    libwifi: wifi: use u64 for radio diagnostic

    Use larger type for radio diagnostic counters.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/wifi.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
commit 78b05b31fb07e5daefd3052a00e3dc1693772892
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-10-01 16:51:13 +0200

    libwifi: nlwifi: get noise level

    Get noise level for the current channel.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 64 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit 3e356a934396ae8b354c3096f97c01c90689d6ec
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 19:06:16 +0200

    libwifi: nlwifi: use nlwifi_cmd() for scan

    Use it also for NL80211_CMD_GET_SCAN.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 42 +++++++++++-------------------------------
 1 file changed, 11 insertions(+), 31 deletions(-)
-------------------------------------------------------------------------------
commit 57b7659c33b6a90963f95e251a8ab0b58b151861
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 18:42:22 +0200

    libwifi: nlwifi: use nlwifi_cmd()

    Use it for NL80211_CMD_GET_STATION command.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 168 +++++++++++------------------------------------
 1 file changed, 38 insertions(+), 130 deletions(-)
-------------------------------------------------------------------------------
commit 9a9fedf0317820ad193ab457000a2cec193b4877
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 17:13:30 +0200

    libwifi: nlwifi: use nlwifi_cmd()

    Use it for NL80211_CMD_GET_INTERFACE.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 257 ++++++++++-------------------------------------
 1 file changed, 52 insertions(+), 205 deletions(-)
-------------------------------------------------------------------------------
commit af18d6dcb14b8e643cc5a51655b9bedff3f033ba
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 12:13:30 +0200

    libwifi: nlwifi: unlock phy commands

    Before we allow only netdev commands.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c    | 45 ++++++++++++++++-----------------------------
 libwifi/modules/nlwifi.c | 44 +++++++++++++++++++++++++++++++++++++++-----
 2 files changed, 55 insertions(+), 34 deletions(-)
-------------------------------------------------------------------------------
commit b63aa970233edb3ab75c8e5b48021669928ad410
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 11:56:00 +0200

    libwifi: nlwifi: prepare for DFS

    Request and show DFS channel state. This is preparation for real
    implementation.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 32 +++++++++++++++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 38e063868ba27f6bea61b5f4fb905bd5480bc41c
Author: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>
Date: 2020-09-30 08:44:21 +0200

    libwifi: nlwifi: introduce nlwifi_cmd()

    Intruduce function that will send NL commands. As example use this command
    for all calls that using NL80211_CMD_GET_WIPHY.

    Signed-off-by: Janusz Dziedzic <janusz.dziedzic@iopsys.eu>

Base directory -> /
 libwifi/modules/nlwifi.c | 274 +++++++++++++++++++----------------------------
 1 file changed, 108 insertions(+), 166 deletions(-)
-------------------------------------------------------------------------------
commit 96eb796d35f53a540ed93b2a2a3c7f4575573021
Author: Marek Puzyniak <marek.puzyniak@iopsys.eu>
Date: 2020-09-29 19:24:45 +0000

    libwifi: mtk: implement get_beacon_ies

    Beacon IEs are taken from hostapd via new hostapd_cli command "get_beacon
    ies". IEs from hex string format are converted to binary array.

    Signed-off-by: Marek Puzyniak <marek.puzyniak@iopsys.eu>

Base directory -> /
 libwifi/modules/mtk.c  |  7 +++++++
 libwifi/wpactrl_util.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
 libwifi/wpactrl_util.h |  2 ++
 3 files changed, 57 insertions(+)
-------------------------------------------------------------------------------
2020-11-06 08:37:44 +01:00
Jani Juvan
63db10eb1f easy-soc-lib: Fix Makefile to pass broadcom chip id properly 2020-11-06 08:35:41 +01:00
vdutta
651ad4ce22 map-1905: Add validate function in plugin 2020-11-06 10:14:22 +05:30
vdutta
51a3b0ad35 uspd: Added ubus methods to list_inform and init_notify 2020-11-05 15:50:09 +05:30
Oskar Viljasaar
0c8b1ea046 iop: genconfig: add iopsys-bcm2711 (rpi-4) support 2020-11-02 17:33:21 +01:00
Oskar Viljasaar
104805a36e feeds_update: add support for iopsys-bcm27xx 2020-11-02 17:32:25 +01:00
Oskar Viljasaar
a1bfb1b568 iop: genconfig_min: add iopsys-bcm2711 (rpi-4) support 2020-11-02 17:31:41 +01:00
Sukru Senli
5c744f71e3 remove reference to iopsys_brcm63xx_mips target 2020-11-01 10:42:32 +01:00
Sukru Senli
20ca483d80 iop: genconfig: change juci theme directory 2020-10-31 12:28:24 +01:00
Sukru Senli
7a466c989c iop: do not select loop-detector 2020-10-31 12:14:53 +01:00
Kenneth Johansson
ff63939e84 ssh_upgrade: Add handling for config option.
can now handle no reboot and keep config options.
2020-10-30 19:06:22 +01:00
Kenneth Johansson
3b283b8f3a iop: ssh_upgrade: use sysupgrade as default.
sysupgrade is now more functional than iopu so use that instead.
2020-10-29 18:33:00 +01:00
Jakob Olsson
d93d72587e ieee1905: 20.0.30 2020-10-29 13:51:52 +01:00
Ronny Nilsson
b098ef3dc2 Add support for TaaS smoketesting of images.
For developers and Jenkins etc. A short hand command for
testing the just built image on real hardware. To be
used before pushing commits and nightly images to public.
2020-10-28 16:11:26 +01:00
Simon Tate
8c69fc062a bulkdata: Bulkdata fails to build on x86
To get bulkdata to build on x86, added limitation on the asprintf %.*s
to use integer type (as per the programming manual).
2020-10-27 13:05:24 +01:00
Amin Ben Ramdhane
8ad4f32786 bbf: 2.7-2020-10-23 2020-10-23 18:08:30 +01:00
vdutta
71b66376f0 uspd: Fix fault codes
- Generate fault for add_object/del_object if path is invalid
 - Generate fault in case of add_object/del_object/operate/set if the search query is failed
 - Fix set_attribute method to apply the attribute changes
2020-10-23 11:15:14 +05:30
Amin Ben Ramdhane
48525b051a icwmp: 5.2-2020-10-19 2020-10-19 23:44:00 +01:00
Amin Ben Ramdhane
753e894b69 bbf: 2.6-2020-10-19 2020-10-19 23:40:23 +01:00
Amin Ben Ramdhane
ce701702c5 XMPP,BulkData,UDPecho,TWAMP: Fixed invalid int && unsignedInt && hexBinary parameter values 2020-10-19 23:37:01 +01:00
Omar Kallel
11550d140a Add new notification feature & delete icwmp_notifd
(cherry picked from commit 37865ab486)
2020-10-18 11:31:14 +02:00
Sukru Senli
f622a96054 icwmp: keep cwmp session backup xml file over upgrade
(cherry picked from commit 2284fcabbd)
2020-10-18 11:29:55 +02:00
Jakob Olsson
3f19a43df2 map-1905: 0.0.13 2020-10-15 12:31:24 +02:00
Amin Ben Ramdhane
d2fedc407a icwmp: 5.1-2020-10-09 2020-10-15 07:28:50 +01:00
Amin Ben Ramdhane
783fd44680 uspd: Fix compilation issue 2020-10-14 17:15:36 +01:00
Amin Ben Ramdhane
614774cb8b bbf: 2.5-2020-10-14 2020-10-14 17:14:57 +01:00
Amin Ben Ramdhane
84521942ca XMPP, BulkData, TWAMP: add unique keys 2020-10-14 17:07:02 +01:00
Rahul
bbbbdf9650 qosmngr: add log
Syslog added to log non-availability of traffic policing on the wan
port on 63138, this is a chip level limitation.
2020-10-14 15:13:50 +05:30
Rahul
98071d157d qosmngr: add support for dhcp options as classification params
DHCP option value 60, 61 and 77 can now be used to identify lan
clients. Details of UCI as follows:

config classify
    option src_vendor_class_id 'abc' // DHCP option 60.
    option dst_vendor_class_id 'abc' // DHCP option 60.
    option src_client_id 'xyz'       // DHCP option 61
    option dst_client_id 'xyz'       // DHCP option 61
    option src_user_class_id 'dfg'   // DHCP option 77
    option dst_user_class_id 'dfg'   // DHCP option 77
2020-10-14 11:31:48 +05:30
Kenneth Johansson
d829f00e07 iop: ssh_upgrade: remove debug printout 2020-10-13 21:56:33 +02:00
Kenneth Johansson
640535a2ef iop: ssh_upgrade now defaults to use the last.pkgtb file. 2020-10-13 21:46:30 +02:00
Amin Ben Ramdhane
7837417219 bbf: 2.4-2020-10-13 2020-10-13 13:00:10 +01:00
Amin Ben Ramdhane
269cbe364e udpecho: Fix invalid dateTime parameter values 2020-10-13 12:57:33 +01:00
Rahul
54cc458a2d qosmngr: add support for upstream policing on dg400prime 2020-10-12 22:32:39 +05:30
Sukru Senli
fdc882b6e0 iop: select icwmp instead of icwmp-curl 2020-10-11 15:15:20 +02:00
vdutta
346eaf0414 map-1905: Fix parsing of channel preference tlv 2020-10-08 17:29:10 +05:30
nevadita.chatterjee
d946f11c32 map-topology:Added version 2020-10-07 17:48:53 +05:30
Sukru Senli
c0957a425a icwmp: remove unnecessary parts from init script 2020-10-07 13:58:05 +02:00
vdutta
8015a503ac ieee1905: Fix crash in ex400 2020-10-07 16:37:49 +05:30
vdutta
a7d09f5ede map-1905: Multiple fixes
- Change structure for countrycode in CAC capability
 - Fix segfault in timestamp tlv
2020-10-07 16:34:18 +05:30
Amin Ben Ramdhane
8a5b49d585 icwmp: 5.0-2020-09-29 2020-10-01 22:59:32 +01:00
Amin Ben Ramdhane
ac69ea616e bbf: 2.3-2020-09-29 2020-10-01 22:58:13 +01:00
Amin Ben Ramdhane
f358d6338d Update XMPP & BulkData & UDPEcho to the latest version of bbf 2020-10-01 22:57:00 +01:00
Jakob Olsson
c514903145 wifimngr: 8.2.9 2020-10-01 15:36:45 +02:00
Anjan Chanda
dd69c371ae wifimngr: 8.2.8 2020-09-30 07:36:40 +02:00
Anjan Chanda
4a1ab17bd4 easy-soc-libs: 5.3.14 2020-09-30 07:33:41 +02:00
Rahul
208b2cc8e5 qosmngr: add support for traffic policing
Support for traffic policing added to allow configuration of
ingress rate limiting.

Test (on panther):
- ingress rate limiting on per lan port basis for US traffic.
- ingress rate limiting on wan port for DS traffic.
- when ingress rate limiting is applied on traffic in one direction,
  then traffic in other direction remains un-affected, that is, if
  ingress rate limiting is applied in DS, then US traffic on the port
  is unaffected

Note: Autotest are ready and will be merge for now with the tag not_ready.
Once devel is ready or if we decide to merge this to release-5.3, the same
can be tagged ready and executed as part of nightly suite.
2020-09-29 19:36:03 +05:30
vdutta
2e934a7169 uspd: B#3272 improvements in resolving paths 2020-09-24 13:38:38 +05:30
Anjan Chanda
b06980688a map-topology: 1.5.5 - notify topology change event 2020-09-24 09:41:28 +02:00
Amin Ben Ramdhane
29b9605e02 icwmp: 5.0-2020-09-15 2020-09-23 19:26:53 +01:00
Amin Ben Ramdhane
0afa721bca bbf: 2.2-2020-09-21 2020-09-23 19:24:18 +01:00
Amin Ben Ramdhane
3c0de388d1 Ticket refs #3228: QEMU - ICWMP is segfaulting
Fix missing objects
2020-09-23 19:19:04 +01:00
vdutta
aa1741e87a ieee1905: Get auth mode from bss.security 2020-09-23 18:59:24 +05:30
Anjan Chanda
3040359e85 map-controller: 1.0.3-internal 2020-09-23 14:58:20 +02:00
Anjan Chanda
237286f42d map-agent: 2.0.3-internal 2020-09-23 14:57:50 +02:00
vdutta
7758b30397 ieee1905: Remove redundant info from ubus objects 2020-09-22 19:54:22 +05:30
Sukru Senli
7b0dce915c iop: genconfig: comment out mediatek open parts 2020-09-22 12:33:23 +02:00
Grzegorz Sluja
b6fdd0115a wifimngr: Add support of local source build
If You want to build wifimngr from Your local sources downloaded into
~/git, the following actions are needed:

1) set LOCAL_DEV=1 in wifimngr/Makefile

2) clean and compile wifimngr with command:
make V=s package/feeds/iopsys/wifimngr/{clean,compile}

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2020-09-22 11:34:31 +02:00
Kenneth Johansson
392e08e2fc genconfig: rename variable.
just to make it clear what config path this is.
2020-09-21 18:18:56 +02:00
Jakob Olsson
2ae2110799 rearrange start orders for topology and ieee1905 2020-09-21 16:16:15 +02:00
Jakob Olsson
773e7af7f6 wfadatad: use service_running hook to wait for ieee1905 object 2020-09-21 09:13:51 +02:00
Jakob Olsson
75e9a5360f ieee1905: config trigger to reload 2020-09-21 09:13:51 +02:00
Jakob Olsson
db5e42434e ieee1905: change start order from 99 to 13 2020-09-21 09:13:51 +02:00
Jakob Olsson
00fd7efa3b wfadatad: wait up to 2 seconds if ieee1905 is not up before start 2020-09-21 09:13:51 +02:00
Jakob Olsson
34f495f0a5 map-topology: iterate til ieee1905 object is up 2020-09-18 16:14:30 +02:00
Anjan Chanda
e3b7c9c238 ieee1905d: enable map plugin in default config 2020-09-18 15:16:56 +02:00
Anjan Chanda
e3f2e715c1 wfadatad: 2.3.0 2020-09-18 15:12:37 +02:00
Anjan Chanda
4c149ff680 map-topology: 1.5.1 2020-09-17 21:29:07 +02:00
Anjan Chanda
959b0546bc wifimngr: 8.2.3 2020-09-17 21:28:28 +02:00
Anjan Chanda
e39430ceaf easy-soc-libs: 5.3.3 2020-09-17 21:27:45 +02:00
Amin Ben Ramdhane
6ea9942320 xmpp, udpecho, twamp: compile with fPIC 2020-09-17 18:12:03 +01:00
Amin Ben Ramdhane
a5e812f785 bbf: 2.1-2020-09-17 2020-09-17 10:20:34 +01:00
vdutta
a604987a3e uspd: Optimize to reduce cpu usages 2020-09-17 11:12:52 +05:30
Anjan Chanda
7b2d8edacf map-topology: 1.5.0 2020-09-17 07:40:40 +02:00
Jakob Olsson
47b2b4fc51 map-topology: include mdns changes 2020-09-16 18:24:01 +02:00
Jakob Olsson
6b3e6bcd11 map-topology: add dependency on libavahi-nodbus-support 2020-09-16 16:30:09 +02:00
Anjan Chanda
52726289cc wifimngr: 8.1.0 2020-09-16 16:07:37 +02:00
Anjan Chanda
6c2aac5db5 easy-soc-libs: 5.0.3 2020-09-16 16:07:15 +02:00
Sukru Senli
bfc2b17a72 bulkdata: compile with fPIC 2020-09-16 10:03:12 +02:00
Sukru Senli
e98422f81e icwmp: set userid empty in cwmp config; it will be filled by uci-default 2020-09-16 08:22:26 +02:00
Sukru Senli
841a76a7e6 move tr-069 packages out of trx69 folder 2020-09-15 16:20:11 +02:00
Grzegorz Sluja
1760ea526c wifimngr: Set default debug level to ERR
When wifimngr debugging is enabled debug level is set to ERR only
by default.

Signed-off-by: Grzegorz Sluja <grzegorz.sluja@iopsys.eu>
2020-09-15 10:50:01 +02:00
Yalu Zhang
b5a493e540 Update package bbf
TR-104: add some missing parameters
2020-09-15 09:56:45 +02:00
Omar Kallel
7f00d0419f Add the file /lib/upgrade/keep.d/icwmp when installing icwmp 2020-09-14 17:32:42 +01:00
Markus Gothe
64da6686af Fix gryphon LED module crash.
Update gryphon LED module to work with Linux 4.1
and not to crash when 'gpiod_get_index()' fails.

Change-Id: I27fcbe3ad9dbc755eabdd3f2120544b171b07885
2020-09-14 16:18:01 +02:00
Amin Ben Ramdhane
8cc1877efd bbf: 2.0-2020-09-12 2020-09-12 15:44:13 +01:00
Roman Azarenko
6673a85a21 iop: generate_tarballs: bcmkernel: add symlink if missing, partially fix shellcheck warnings 2020-09-11 19:01:53 +02:00
nevadita.chatterjee
3e07ea7f8d map-topology: Config file change 2020-09-11 19:28:47 +05:30
sverma
8b4ef46681 wfadatad: Changes UBUS objects name 2020-09-11 18:54:27 +05:30
Anjan Chanda
f35e41cc0c wifimngr: 8.0.4 2020-09-11 13:14:57 +02:00
Anjan Chanda
0aff258e29 easy-soc-libs: 4.9.1 2020-09-11 13:14:11 +02:00
Amin Ben Ramdhane
d919f4440e icwmp: 5.0-2020-09-10 2020-09-11 10:13:42 +01:00
Kenneth Johansson
9d20839041 make ./iop ssh_upgrade work on sdk504
./iop ssh_upgrade will now install latest image on broadcom boards.
2020-09-10 19:54:59 +02:00
Kenneth Johansson
36ec134e33 genconfig: make sure there is an empty line.
when concatenating configurations there has to be an empty line at
the end otherwise the last line could be combined with the next
configuration option.
2020-09-10 17:32:31 +02:00
Amin Ben Ramdhane
ea57418313 Ticket #2910: Separate BBF packages to their own packages with their own config files 2020-09-10 10:59:47 +01:00
Omar Kallel
c61aa804ce icwmp: 09-09-2020 2020-09-09 15:37:22 +01:00
Omar Kallel
19bbb87682 icwmp: Active notification 08/09/2020 2020-09-08 17:42:40 +01:00
Amin Ben Ramdhane
3ee01927b1 bbf: 2.0-2020-09-08 2020-09-08 12:29:00 +01:00
Roman Azarenko
d9f6b37bd7 questd: 5.2.1 2020-09-08 11:42:30 +02:00
Ronny Nilsson
c3dd0a996b base-files: move db to etc
Due to read only rootfs the /lib/db will move into /etc.
2020-09-07 12:27:43 +02:00
599 changed files with 11406 additions and 364012 deletions

View File

@@ -24,6 +24,7 @@ PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/mediatek/ated.git
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)

View File

@@ -1,27 +1,27 @@
if PACKAGE_libbbfdm
config LIBBBFDM_VENDOR_PREFIX
string "Vendor Prefix"
default "X_IOPSYS_EU_"
config BBF_TR181
bool "Compile with tr181 device features"
config BBF_VENDOR_EXTENSION
bool "Enable Vendor Extension"
default y
config BBF_VENDOR_LIST
string "Vendor List"
default "iopsys"
config BBF_VENDOR_PREFIX
string "Vendor Prefix"
default "X_IOPSYS_EU_"
config BBF_TR104
bool "Compile with tr104 voice features"
bool "Enable TR-104 Data Model Support"
default y
config BBF_TR143
bool "Compile with tr143 diagnostics features"
bool "Enable TR-143 Data Model Support"
default y
config BBF_TR157
bool "Compile with tr157 bulkdata collector features"
config BBFDM_ENABLE_JSON_PLUGIN
bool "Enable json plugin to extend datamodel"
default y
config BBF_TR064
bool "Compile with tr064 features"
default n
endif
config BBFDM_ENABLE_DOTSO_PLUGIN
bool "Enable shared library plugin to extend datamodel"
default y

View File

@@ -1,38 +1,69 @@
#
# Copyright (C) 2019 IOPSYS
# Copyright (C) 2022 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libbbfdm
PKG_VERSION:=2.5-2020-10-26
PKG_FIXUP:=autoreconf
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=b0cd55880850efc7995f8cb82ac6dd55e75c7b97
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_VERSION:=6.6.36
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bbf.git
PKG_SOURCE_VERSION:=180119192418dbac64713c3e5efe761a1f8e871e
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE_FILES:=LICENSE
PKG_FIXUP:=autoreconf
include $(INCLUDE_DIR)/package.mk
define Package/libbbf_api
SECTION:=libs
CATEGORY:=Libraries
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=Library for libbbfdm API
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c
endef
define Package/libbbfdm/default
SECTION:=utils
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=Library for broadband forum data model support
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libtrace +libcurl
endef
define Package/libbbfdm
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Library for broadband-forum data model
DEPENDS:=+libuci +libubox +libubus +libblobmsg-json +libjson-c +libtrace +libbbf_api +libopenssl +libmbedtls
$(Package/libbbfdm/default)
TITLE += (internal)
VARIANT:=internal
endef
define Package/libbbfdm-mbedtls
$(Package/libbbfdm/default)
TITLE += (mbedtls)
DEPENDS += +PACKAGE_libbbfdm-mbedtls:libmbedtls
VARIANT:=mbedtls
DEFAULT_VARIANT:=1
endef
define Package/libbbfdm-openssl
$(Package/libbbfdm/default)
TITLE += (openssl)
DEPENDS += +PACKAGE_libbbfdm-openssl:libopenssl
CONFLICTS := libbbfdm-mbedtls
VARIANT:=openssl
endef
define Package/libbbfdm-wolfssl
$(Package/libbbfdm/default)
TITLE += (wolfssl)
DEPENDS += +PACKAGE_libbbfdm-wolfssl:libwolfssl
CONFLICTS := libbbfdm-mbedtls libbbfdm-openssl
VARIANT:=wolfssl
endef
define Package/libbbfdm/config
@@ -44,7 +75,7 @@ define Package/libbbf_api/description
endef
define Package/libbbfdm/description
Library contains the data model tree. It includes TR181, TR104, TR143, TR157 and TR064 data models
Library contains the data model tree. It includes TR181, TR104 and TR143 data models
endef
USE_LOCAL=$(shell ls ./src/ 2>/dev/null >/dev/null && echo 1)
@@ -54,15 +85,12 @@ define Build/Prepare
endef
endif
TARGET_CFLAGS += -DCUSTOM_PREFIX=\\\"$(CONFIG_LIBBBFDM_VENDOR_PREFIX)\\\"
TARGET_CFLAGS += \
-D_GNU_SOURCE -D_AADJ
-D_GNU_SOURCE \
-Wall -Werror \
ifeq ($(CONFIG_BBF_TR181),y)
CONFIGURE_ARGS += \
--enable-tr181
endif
ifeq ($(CONFIG_BBF_TR104),y)
CONFIGURE_ARGS += \
@@ -74,53 +102,84 @@ CONFIGURE_ARGS += \
--enable-tr143
endif
ifeq ($(CONFIG_BBF_TR157),y)
ifeq ($(CONFIG_BBF_VENDOR_EXTENSION),y)
CONFIGURE_ARGS += \
--enable-tr157
--enable-vendor-extension
CONFIGURE_ARGS += \
BBF_VENDOR_LIST="$(CONFIG_BBF_VENDOR_LIST)" \
BBF_VENDOR_PREFIX="$(CONFIG_BBF_VENDOR_PREFIX)"
endif ##CONFIG_BBF_VENDOR_EXTENSION
ifeq ($(CONFIG_BBFDM_ENABLE_JSON_PLUGIN),y)
CONFIGURE_ARGS += \
--enable-json-plugin
endif
ifeq ($(CONFIG_BBF_TR064),y)
ifeq ($(CONFIG_BBFDM_ENABLE_DOTSO_PLUGIN),y)
CONFIGURE_ARGS += \
--enable-tr064
--enable-shared-library
endif
ifeq ($(CONFIG_PACKAGE_libopenssl),y)
CONFIGURE_ARGS += \
--enable-libopenssl
ifeq ($(BUILD_VARIANT),openssl)
CONFIGURE_ARGS += --enable-libopenssl
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/
endif
ifeq ($(CONFIG_PACKAGE_libmbedtls),y)
CONFIGURE_ARGS += \
--enable-libmbedtls
ifeq ($(BUILD_VARIANT),wolfssl)
CONFIGURE_ARGS += --enable-libwolfssl
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/wolfssl
endif
ifeq ($(BUILD_VARIANT),mbedtls)
CONFIGURE_ARGS += --enable-libmbedtls
TARGET_CFLAGS += -I$(STAGING_DIR)/usr/include/
endif
define Package/libbbf_api/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.so* $(1)/lib/
endef
define Package/libbbfdm/install
define Package/libbbfdm/default/install
$(INSTALL_DIR) $(1)/lib
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.so* $(1)/lib/
$(INSTALL_DIR) $(1)/etc/bbfdm
$(INSTALL_DIR) $(1)/etc/bbfdm/json
$(INSTALL_CONF) $(PKG_BUILD_DIR)/config/dmmap $(1)/etc/bbfdm
$(INSTALL_DIR) $(1)/usr/share/bbfdm
$(CP) $(PKG_BUILD_DIR)/scripts/functions $(1)/usr/share/bbfdm
$(INSTALL_DIR) $(1)/etc/bbfdm
$(INSTALL_DIR) $(1)/etc/bbfdm/dmmap
$(INSTALL_DIR) $(1)/etc/bbfdm/json
$(INSTALL_DIR) $(1)/usr/lib/bbfdm
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.so* $(1)/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/scripts/* $(1)/usr/share/bbfdm
endef
define Package/libbbfdm/default/prerm
#!/bin/sh
rm -rf /etc/bbfdm/dmmap/*
exit 0
endef
Package/libbbfdm-openssl/prerm = $(Package/libbbfdm/default/prerm)
Package/libbbfdm-wolfssl/prerm = $(Package/libbbfdm/default/prerm)
Package/libbbfdm-mbedtls/prerm = $(Package/libbbfdm/default/prerm)
Package/libbbfdm-openssl/install = $(Package/libbbfdm/default/install)
Package/libbbfdm-wolfssl/install = $(Package/libbbfdm/default/install)
Package/libbbfdm-mbedtls/install = $(Package/libbbfdm/default/install)
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/include/libbbfdm
$(INSTALL_DIR) $(1)/usr/include/libbbf_api
$(CP) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libbbfdm/
$(CP) $(PKG_BUILD_DIR)/dmtree/tr181/*.h $(1)/usr/include/libbbfdm/
$(CP) $(PKG_BUILD_DIR)/dmtree/tr157/*.h $(1)/usr/include/libbbfdm/
$(CP) $(PKG_BUILD_DIR)/libbbf_api/*.h $(1)/usr/include/libbbf_api/
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DATA) $(PKG_BUILD_DIR)/include/*.h $(1)/usr/include/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/*.h $(1)/usr/include/libbbfdm/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/libbbf_api/*.h $(1)/usr/include/libbbf_api/
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbfdm.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/bin/.libs/libbbf_api.{a,so*} $(1)/usr/lib/
touch $(1)/usr/lib/libbbf_api.so
endef
$(eval $(call BuildPackage,libbbf_api))
$(eval $(call BuildPackage,libbbfdm))
$(eval $(call BuildPackage,libbbfdm-openssl))
$(eval $(call BuildPackage,libbbfdm-wolfssl))
$(eval $(call BuildPackage,libbbfdm-mbedtls))

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2020 iopsys Software Solutions AB
# Copyright (C) 2022 iopsys Software Solutions AB
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -8,10 +8,25 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bulkdata
PKG_VERSION:=1.0.0
PKG_VERSION:=2.0.3
LOCAL_DEV:=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/bulkdata.git
PKG_SOURCE_VERSION:=85d7486a21a9eb0e0f345b587b3ac506edcb72fe
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
endif
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_LICENSE:=GPL-2.0-only
PKG_LICENSE_FILES:=LICENSE
PKG_BUILD_DEPENDS:=bbf
include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
@@ -19,26 +34,25 @@ define Package/$(PKG_NAME)
CATEGORY:=Utilities
SUBMENU:=TRx69
TITLE:=BBF BulkData Collection
DEPENDS:=+libubus +libuci +libubox +libjson-c +libcurl +curl +libblobmsg-json +libbbfdm +libbbf_api
endef
define Package/$(PKG_NAME)/description
BBF BulkData Collection
endef
define Build/Prepare
$(CP) ./src/* $(PKG_BUILD_DIR)/
DEPENDS:=+libubus +libuci +libubox +libjson-c +libcurl +libblobmsg-json
endef
TARGET_CFLAGS += \
-D_GNU_SOURCE
-D_GNU_SOURCE \
-Wall -Werror
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -rf ~/git/bulkdata/* $(PKG_BUILD_DIR)/
endef
endif
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bulkdatad $(1)/usr/sbin/
$(INSTALL_DIR) $(1)/usr/lib/bbfdm
$(INSTALL_BIN) $(PKG_BUILD_DIR)/*.so $(1)/usr/lib/bbfdm
$(INSTALL_BIN) $(PKG_BUILD_DIR)/bbf_plugin/*.so $(1)/usr/lib/bbfdm
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))
$(eval $(call BuildPackage,$(PKG_NAME)))

View File

@@ -1,43 +1,6 @@
config bulkdata 'bulkdata'
option enable '0'
#Log levels: Critical=0, Warning=1, Notice=2, Info=3, Debug=4
#Log levels: Error=1, Warning=2, Info=3, Debug=4
option log_level '3'
config profile
option profile_id '1'
option enable '0'
option name ''
option nbre_of_retained_failed_reports '0'
option protocol 'http'
option encoding_type ''
option reporting_interval '86400'
option time_reference '0'
option csv_encoding_field_separator ','
option csv_encoding_row_separator '&#10;'
option csv_encoding_escape_character '&quot;'
option csv_encoding_report_format 'column'
option csv_encoding_row_time_stamp 'unix'
option json_encoding_report_format 'objecthierarchy'
option json_encoding_report_time_stamp 'unix'
option http_url ''
option http_username ''
option http_password ''
option http_compression 'none'
option http_method 'post'
option http_use_date_header '1'
option http_retry_enable '0'
option http_retry_minimum_wait_interval '5'
option http_retry_interval_multiplier '2000'
option http_persist_across_reboot '0'
config profile_parameter
option profile_id '1'
option name ''
option reference ''
config profile_http_request_uri_parameter
option profile_id '1'
option name ''
option reference ''

View File

@@ -1,7 +1,4 @@
#!/bin/sh /etc/rc.common
# Bulkdata Software
# Copyright (C) 2020 iopsys Software Solutions AB
# Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
START=99
STOP=10
@@ -10,13 +7,16 @@ USE_PROCD=1
PROG="/usr/sbin/bulkdatad"
start_service() {
local bulkdata_enable=`uci -q get bulkdata.bulkdata.enable`
if [ "$bulkdata_enable" = "1" ]; then
procd_open_instance
procd_set_param command "$PROG"
procd_set_param respawn "3" "7" "0"
procd_close_instance
fi
local enable=$(uci -q get bulkdata.bulkdata.enable)
[ "$enable" != "1" ] && {
return 0
}
procd_open_instance
procd_set_param command "$PROG"
procd_set_param respawn "3" "7" "0"
procd_close_instance
}
boot() {

View File

@@ -0,0 +1,75 @@
#!/bin/sh
. /lib/functions.sh
PROFILE_COUNT=1
get_next_count()
{
local config="$1"
local default_name="${2}"
local count=${3}
local found=0
if [ -z "$count" ]; then
count=1
fi
while [ "${found}" -ne 1 ]; do
uci -q get ${config}.${default_name}_${count} >/dev/null
if [ $? -eq 0 ]; then
count=$((count + 1))
else
found=1;
fi
done
echo "${default_name}_${count}"
}
translate_profile_id_to_profile_name() {
local section="${1}"
local profile_id="${2}"
local profile_name="${3}"
local curr_profile_id
config_get curr_profile_id "${section}" profile_id
[ -n "${curr_profile_id}" ] || return
[ "${curr_profile_id}" != "${profile_id}" ] && return
uci -q set bulkdata.${section}.profile_name="${profile_name}"
uci -q set bulkdata.${section}.profile_id=""
}
update_profile_sections() {
local section="${1}"
local default="${2}"
local profile_name
config_get profile_id "${section}" profile_id
[ -n "${profile_id}" ] || return
case "${section}" in
"cfg"*)
profile_name="$(get_next_count bulkdata ${default} ${PROFILE_COUNT})"
uci_rename bulkdata "${section}" "${profile_name}"
;;
esac
PROFILE_COUNT=$((PROFILE_COUNT + 1))
[ -n "$profile_name" ] && section="${profile_name}"
uci -q set bulkdata.${section}.profile_id=""
config_foreach translate_profile_id_to_profile_name profile_parameter "${profile_id}" "${profile_name}"
config_foreach translate_profile_id_to_profile_name profile_http_request_uri_parameter "${profile_id}" "${profile_name}"
}
config_load bulkdata
config_foreach update_profile_sections profile profile
uci commit bulkdata
exit 0

View File

@@ -1,23 +0,0 @@
PROG = bulkdatad
LIB = libbulkdata.so
PROG_OBJS = bulkdata.o common.o config.o http.o log.o report.o times.o buci.o
LIB_OBJS = datamodel.o
PROG_CFLAGS = $(CFLAGS) -Wall -Werror -fPIC
PROG_LDFLAGS = $(LDFLAGS) -lubus -luci -lubox -ljson-c -lcurl -lblobmsg_json -lbbfdm
LIB_LDFLAGS = $(LDFLAGS) -lbbf_api
%.o: %.c
$(CC) $(PROG_CFLAGS) $(FPIC) -c -o $@ $<
all: $(PROG) $(LIB)
$(PROG): $(PROG_OBJS)
$(CC) $(PROG_CFLAGS) -o $@ $^ $(PROG_LDFLAGS)
$(LIB): $(LIB_OBJS)
$(CC) $(PROG_CFLAGS) $(LIB_LDFLAGS) -shared -o $@ $^
clean:
rm -f *.o $(PROG) $(LIB)

View File

@@ -1,265 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <errno.h>
#include <unistd.h>
#include <ctype.h>
#include "buci.h"
struct uci_context *uci_ctx = NULL;
int buci_init(void)
{
uci_ctx = uci_alloc_context();
if (!uci_ctx) {
return -1;
}
return 0;
}
int buci_fini(void)
{
if (uci_ctx) {
uci_free_context(uci_ctx);
}
return 0;
}
static bool buci_validate_section(const char *str)
{
if (!*str)
return false;
for (; *str; str++) {
unsigned char c = *str;
if (isalnum(c) || c == '_')
continue;
return false;
}
return true;
}
static int buci_init_ptr(struct uci_context *ctx, struct uci_ptr *ptr, char *package, char *section, char *option, char *value)
{
memset(ptr, 0, sizeof(struct uci_ptr));
/* value */
if (value) {
ptr->value = value;
}
ptr->package = package;
if (!ptr->package)
goto error;
ptr->section = section;
if (!ptr->section) {
ptr->target = UCI_TYPE_PACKAGE;
goto lastval;
}
ptr->option = option;
if (!ptr->option) {
ptr->target = UCI_TYPE_SECTION;
goto lastval;
} else {
ptr->target = UCI_TYPE_OPTION;
}
lastval:
if (ptr->section && !buci_validate_section(ptr->section))
ptr->flags |= UCI_LOOKUP_EXTENDED;
return 0;
error:
return -1;
}
struct uci_section *buci_walk_section(char *package, char *section_type, struct uci_section *prev_section)
{
struct uci_ptr ptr;
struct uci_element *e;
struct uci_section *next_section;
if (section_type == NULL) {
if (prev_section) {
e = &prev_section->e;
if (e->list.next == &prev_section->package->sections)
return NULL;
e = container_of(e->list.next, struct uci_element, list);
next_section = uci_to_section(e);
return next_section;
}
else {
if (buci_init_ptr(uci_ctx, &ptr, package, NULL, NULL, NULL)) {
return NULL;
}
if (uci_lookup_ptr(uci_ctx, &ptr, NULL, true) != UCI_OK) {
return NULL;
}
if (ptr.p->sections.next == &ptr.p->sections)
return NULL;
e = container_of(ptr.p->sections.next, struct uci_element, list);
next_section = uci_to_section(e);
return next_section;
}
}
else {
struct uci_list *ul, *shead = NULL;
if (prev_section) {
ul = &prev_section->e.list;
shead = &prev_section->package->sections;
}
else {
if (buci_init_ptr(uci_ctx, &ptr, package, NULL, NULL, NULL)) {
return NULL;
}
if (uci_lookup_ptr(uci_ctx, &ptr, NULL, true) != UCI_OK) {
return NULL;
}
ul = &ptr.p->sections;
shead = &ptr.p->sections;
}
while (ul->next != shead) {
e = container_of(ul->next, struct uci_element, list);
next_section = uci_to_section(e);
if (strcmp(next_section->type, section_type) == 0)
return next_section;
ul = ul->next;
}
return NULL;
}
return NULL;
}
void buci_print_list(struct uci_list *uh, char **val, char *delimiter)
{
struct uci_element *e;
static char buffer[512];
char *buf = buffer;
*buf = '\0';
uci_foreach_element(uh, e) {
if (*buf) {
strcat(buf, delimiter);
strcat(buf, e->name);
}
else {
strcpy(buf, e->name);
}
}
*val = buf;
}
struct uci_element *buci_lookup_list(struct uci_list *list, const char *name)
{
struct uci_element *e;
uci_foreach_element(list, e) {
if (!strcmp(e->name, name))
return e;
}
return NULL;
}
int uci_lookup_ptr_bysection(struct uci_context *ctx, struct uci_ptr *ptr, struct uci_section *section, char *option, char *value)
{
struct uci_element *e;
memset(ptr, 0, sizeof(struct uci_ptr));
ptr->package = section->package->e.name;
ptr->section = section->e.name;
ptr->option = option;
ptr->value = value;
ptr->flags |= UCI_LOOKUP_DONE;
ptr->p = section->package;
ptr->s = section;
if (ptr->option) {
e = buci_lookup_list(&ptr->s->options, ptr->option);
if (!e)
return UCI_OK;
ptr->o = uci_to_option(e);
ptr->last = e;
ptr->target = UCI_TYPE_OPTION;
}
else {
ptr->last = &ptr->s->e;
ptr->target = UCI_TYPE_SECTION;
}
ptr->flags |= UCI_LOOKUP_COMPLETE;
return UCI_OK;
}
char *buci_get_value_bysection(struct uci_section *section, char *option)
{
struct uci_ptr ptr;
char *val = "";
if (uci_lookup_ptr_bysection(uci_ctx, &ptr, section, option, NULL) != UCI_OK) {
return val;
}
if (!ptr.o)
return val;
if(ptr.o->type == UCI_TYPE_LIST) {
buci_print_list(&ptr.o->v.list, &val, " ");
return val;
}
if (ptr.o->v.string)
return ptr.o->v.string;
else
return val;
}
char *buci_get_value(char *package, char *section, char *option)
{
struct uci_ptr ptr;
char *val = "";
if (!section || !option)
return val;
if (buci_init_ptr(uci_ctx, &ptr, package, section, option, NULL)) {
return val;
}
if (uci_lookup_ptr(uci_ctx, &ptr, NULL, true) != UCI_OK) {
return val;
}
if (!ptr.o)
return val;
if(ptr.o->type == UCI_TYPE_LIST) {
buci_print_list(&ptr.o->v.list, &val, " ");
return val;
}
if (ptr.o->v.string)
return ptr.o->v.string;
else
return val;
}

View File

@@ -1,31 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __BUCI_H
#define __BUCI_H
#include <uci.h>
int buci_init(void);
int buci_fini(void);
struct uci_section *buci_walk_section(char *package, char *section_type, struct uci_section *prev_section);
void buci_print_list(struct uci_list *uh, char **val, char *delimiter);
struct uci_element *buci_lookup_list(struct uci_list *list, const char *name);
int uci_lookup_ptr_bysection(struct uci_context *ctx, struct uci_ptr *ptr, struct uci_section *section, char *option, char *value);
char *buci_get_value_bysection(struct uci_section *section, char *option);
char *buci_get_value(char *package, char *section, char *option);
#define buci_foreach_section(package, section_type, section) \
for (section = buci_walk_section(package, section_type, NULL); \
section != NULL; \
section = buci_walk_section(package, section_type, section))
#endif //__BUCI_H

View File

@@ -1,144 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Omar Kallel <omar.kallel@pivasoftware.com>
*/
#include <stdio.h>
#include <string.h>
#include <libubox/uloop.h>
#include "http.h"
#include "config.h"
#include "log.h"
#include "common.h"
#include "report.h"
#include "times.h"
#include "bulkdata.h"
struct bulkdata bulkdata_main = {0};
int profiles_number = 0;
void bulkdata_profile_cb(struct uloop_timeout *timeout);
int get_retry_period(int min)
{
srand(time(NULL));
return rand()%min + min;
}
static void bulkdata_run_profiles(struct bulkdata *bulkdata)
{
unsigned int next_period;
int i = 0;
for (i = 0; i < profiles_number; i++) {
bulkdata->profile[i].utimer.cb = bulkdata_profile_cb;
LIST_HEAD(failedreports);
bulkdata->profile[i].failed_reports = &failedreports;
next_period = get_next_period(bulkdata->profile[i].time_reference, bulkdata->profile[i].reporting_interval);
bulkdata_log(SINFO, "The session of profile_id %d will be start in %d sec", bulkdata->profile[i].profile_id, next_period);
uloop_timeout_set(&bulkdata->profile[i].utimer, next_period * 1000);
}
}
int http_send_report(struct profile *profile, char *report)
{
char *msg_in = NULL;
int http_code;
http_client_init(profile);
bulkdata_log(SINFO, "Send the report of profile_id %d to Bulkdata Collector", profile->profile_id);
http_code = http_send_message(profile, report, strlen(report), &msg_in);
http_client_exit();
return http_code;
}
void bulkdata_profile_cb(struct uloop_timeout *timeout)
{
struct profile *profile;
unsigned int http_code, retry_period;
char *report = NULL;
profile = container_of(timeout, struct profile, utimer);
time_t now = time(NULL);
bulkdata_log(SINFO, "New session of profile_id %d started", profile->profile_id);
if(profile->retry_count == 0 || profile->next_retry > now || !profile->http_retry_enable) //Perdiodic execution
create_encoding_bulkdata_report(profile, &report);
else
create_failed_report(profile, &report);
bulkdata_log(SDEBUG, "The content of the profile_id report %d is :\n==========\n%s\n==========\n", profile->profile_id, report);
http_code= http_send_report(profile, report);
if(http_code != 200){
if(profile->retry_count == 0 || profile->next_retry > now || !profile->http_retry_enable) { //Perdiodic execution
retry_period = get_retry_period(profile->http_retry_minimum_wait_interval);
profile->next_period = now + profile->reporting_interval;
profile->next_retry = now + retry_period;
profile->retry_count = 1;
profile->min_retry = profile->http_retry_minimum_wait_interval * 2;
if((profile->next_retry < profile->next_period) && profile->http_retry_enable) {
bulkdata_log(SINFO, "Retry session of profile_id %d in %d sec", profile->profile_id, retry_period);
uloop_timeout_set(timeout, 1000 * retry_period);
}
else {
bulkdata_log(SINFO, "Start New session of profile_id %d in %d sec", profile->profile_id, profile->reporting_interval);
uloop_timeout_set(timeout, 1000 * profile->reporting_interval);
}
} else { //Retry execution
retry_period= get_retry_period(profile->min_retry);
profile->min_retry*=2;
profile->next_retry+=retry_period;
profile->retry_count++;
if(profile->next_retry < profile->next_period) {
bulkdata_log(SINFO, "Retry session of profile_id %d in %d sec", profile->profile_id, retry_period);
uloop_timeout_set(timeout, 1000 * retry_period);
}
else {
bulkdata_log(SINFO, "Retry session of profile_id %d in %d sec", profile->profile_id, (profile->next_period-profile->next_retry+retry_period));
uloop_timeout_set(timeout, 1000 * (profile->next_period-profile->next_retry+retry_period));
}
}
if(profile->new_report){
bulkdata_add_failed_report(profile, profile->new_report);
FREE(profile->new_report);
}
FREE(report);
} else {
if(profile->retry_count == 0 || profile->next_retry > now || !profile->http_retry_enable) {
bulkdata_log(SINFO, "Start New session of profile_id %d in %d sec", profile->profile_id, profile->reporting_interval);
uloop_timeout_set(timeout, 1000 * profile->reporting_interval);
}
else {
bulkdata_log(SINFO, "Retry session of profile_id %d in %d sec", profile->profile_id, (profile->next_period-profile->next_retry));
uloop_timeout_set(timeout, 1000 * (profile->next_period-profile->next_retry));
}
FREE(profile->new_report);
FREE(report);
empty_failed_reports_list(profile);
profile->retry_count= 0;
}
}
int main(void)
{
struct bulkdata *bulkdata = &bulkdata_main;
if (bulkdata_config_init(bulkdata) == -1)
return -1;
bulkdata_log(SINFO, "Start bulkdatad daemon");
uloop_init();
bulkdata_run_profiles(bulkdata);
uloop_run();
uloop_done();
bulkdata_config_fini(bulkdata);
bulkdata_log(SINFO, "Stop bulkdatad daemon");
return 0;
}

View File

@@ -1,18 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __BULKDATA_H
#define __BULKDATA_H
extern struct bulkdata bulkdata_main;
extern int profiles_number;
#endif /* __BULKDATA_H */

View File

@@ -1,105 +0,0 @@
# README #
bulkdatad is an implementation of The HTTP bulk data collection mechanism which is an extended feature of CPE and other agents implementing TR-069(CWMP) or TR-369(USP), defined by the Broadband Forum. It provides a means by which an Auto-Configuration Server (ACS), or USP Controller, can configure an agent to periodically send a JSON or CSV formatted set of Device information to an HTTP server running a data collection application.
## Configuration File ##
The bulkdatad UCI configuration is located in **'/etc/config/bulkdata'**, and contains 4 sections: **bulkdata**, **profile**, **profile\_parameter** and **profile\_http\_request\_uri\_parameter**.
```
config bulkdata 'bulkdata'
option enable '0'
option log_level '3'
config profile
option profile_id '1'
option enable '0'
option csv_encoding_row_time_stamp 'unix'
option json_encoding_report_time_stamp 'unix'
option http_retry_minimum_wait_interval '5'
option http_retry_interval_multiplier '2000'
config profile_parameter
option profile_id '1'
option name ''
option reference ''
config profile_http_request_uri_parameter
option profile_id '1'
option name ''
option reference ''
```
### bulkdata section ###
It defines **bulkdata configuration**: enable and log\_level.
| Name | Type | Description |
| ----------- | ------- | ----------------------------------------------------------------------------------------------- |
| `enable` | boolean | Enables the BulkData feature if set to **1**. |
| `log_level` | integer | Specifies the log type to use, by default **'INFO'**. The possible types are **'EMERG', 'ALERT', 'CRITIC' ,'ERROR', 'WARNING', 'NOTICE', 'INFO' and 'DEBUG'**. |
### profile section ###
It defines **the profile section configuration**: enable, name,... The possible options for **profile** section are listed below:
| Name | Type | Description |
| ---------------------------------- | ------- | ---------------------------------------------- |
| `profile_id` | integer | The profile id to use. |
| `enable` | boolean | If set to **1**, enables the bulkdata profile. |
| `name` | string | The name of the profile. |
| `nbre_of_retained_failed_reports` | integer | The number of failed reports to be retained and transmitted at the end of the current reporting interval. |
| `protocol` | string | The protocol used for the collection profile. |
| `encoding_type` | string | The encoding type used for the collection profile. |
| `reporting_interval` | integer | The reporting interval in seconds. |
| `time_reference` | integer | The time reference to determine when the profile will be transmitted to the ACS collector. |
| `csv_encoding_field_separator` | string | The field separator to use when encoding CSV data. |
| `csv_encoding_row_separator` | string | The row separator to use when encoding CSV data. |
| `csv_encoding_escape_character` | string | The escape character to use when encoding CSV data. |
| `csv_encoding_report_format` | string | Describes how reports will be formatted. Two possible formats are supported: **'ParameterPerRow' and 'ParameterPerColumn'**. |
| `csv_encoding_row_time_stamp` | string | The format of the timestamp to use for data inserted into the row. The row time stamp supported are **'Unix-Epoch', 'ISO-8601' and 'None'**. |
| `json_encoding_report_format` | string | Describes the report format. The supported report formats are **'ObjectHierarchy' and 'NameValuePair'**. |
| `json_encoding_report_time_stamp` | string | The format of the timestamp to use for the JSON Object named "CollectionTime". The supported timestamp are **'Unix-Epoch', 'ISO-8601' and 'None'**. |
| `http_url` | string | The URL of the collection server. |
| `http_username` | string | The username of the collection server. |
| `http_password` | string | The password of the collection server. |
| `http_compression` | string | The HTTP Compression mechanism used by the collection server. The supported compression mechanism are **'GZIP', 'Compress' and 'Deflate'**. |
| `http_method` | string | The HTTP method used by the collection server. Two methods are supported: **'POST' and 'PUT'**. |
| `http_use_date_header` | boolean | If set to **1**, the CPE encodes the HTTP Date Header. |
| `http_retry_enable` | boolean | If set to **1**, the CPE retries unsuccessful attempts to transfer data. |
| `http_retry_minimum_wait_interval` | integer | The data transfer retry wait interval. |
| `http_retry_interval_multiplier` | integer | The retry interval multiplier. |
| `http_persist_across_reboot` | boolean | If set to **1**, failed data transfers must be persisted across reboots. |
### profile_parameter section ###
It defines **the profile\_parameter section configuration**: profile\_id, name, reference.
| Name | Type | Description |
| ------------ | ------- | --------------------------------------- |
| `profile_id` | integer | The id of the used profile. |
| `name` | string | The name of the profile parameter. |
| `reference` | string | The reference of the profile parameter. |
### profile_http_request_uri_parameter section ###
It defines **the profile\_http\_request\_uri\_parameter section configuration**: profile\_id, name, reference.
| Name | Type | Description |
| ------------ | ------- | --------------------------------------- |
| `profile_id` | integer | The id of the used profile. |
| `name` | string | The name of the Request-URI parameter. |
| `reference` | string | The reference of the profile parameter. |
## Dependencies ##
To successfully build bulkdatad, the following libraries are needed:
| Dependency | Link | License |
| ----------- | ------------------------------------------- | -------------- |
| libuci | https://git.openwrt.org/project/uci.git | LGPL 2.1 |
| libubox | https://git.openwrt.org/project/libubox.git | BSD |
| libjson-c | https://s3.amazonaws.com/json-c_releases | MIT |
| libcurl | https://dl.uxnr.de/mirror/curl | MIT |
| libbbfdm | https://dev.iopsys.eu/iopsys/bbf.git | LGPL 2.1 |

View File

@@ -1,450 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Omar Kallel <omar.kallel@pivasoftware.com>
*/
#include "common.h"
static pathnode *head = NULL;
static pathnode *temphead = NULL;
int bulkdata_dm_ctx_init(struct dmctx *ctx)
{
struct bulkdata *bulkdata = &bulkdata_main;
dm_ctx_init(ctx, DM_CWMP, bulkdata->amd_version, bulkdata->instance_mode);
return 0;
}
int bulkdata_dm_ctx_clean(struct dmctx *ctx)
{
dm_ctx_clean(ctx);
return 0;
}
static char **str_split(const char* str, const char* delim, size_t* numtokens)
{
char *s = strdup(str);
size_t tokens_alloc = 1;
size_t tokens_used = 0;
char **tokens = calloc(tokens_alloc, sizeof(char*));
char *token, *strtok_ctx;
for (token = strtok_r(s, delim, &strtok_ctx); token != NULL; token = strtok_r(NULL, delim, &strtok_ctx)) {
if (tokens_used == tokens_alloc) {
tokens_alloc *= 2;
tokens = realloc(tokens, tokens_alloc * sizeof(char*));
}
tokens[tokens_used++] = strdup(token);
}
// cleanup
if (tokens_used == 0) {
FREE(tokens);
} else {
tokens = realloc(tokens, tokens_used * sizeof(char*));
}
*numtokens = tokens_used;
FREE(s);
return tokens;
}
static bool bulkdata_match(const char *string, const char *pattern)
{
regex_t re;
if (regcomp(&re, pattern, REG_EXTENDED) != 0) return 0;
int status = regexec(&re, string, 0, NULL, 0);
regfree(&re);
if (status != 0) return false;
return true;
}
static bool is_res_required(char *str, int *start, int *len)
{
char temp_char[NAME_MAX] = {'\0'};
if (bulkdata_match(str, GLOB_CHAR)) {
int s_len = strlen(str);
int b_len = s_len, p_len = s_len;
char *star = strchr(str, '*');
if(star)
s_len = star - str;
*start = MIN(MIN(s_len, p_len), b_len);
if (*start == s_len)
*len = 1;
strncpy(temp_char, str+*start, *len);
if (bulkdata_match(temp_char, "[*+]+"))
return true;
}
*start = strlen(str);
return false;
}
static void insert(char *data, bool active)
{
pathnode *link = (pathnode*) calloc(1, sizeof(pathnode));
if(!link) {
return;
}
link->ref_path = data;
if(active) {
link->next = head;
head = link;
} else {
link->next = temphead;
temphead = link;
}
}
static void swap_heads(void)
{
pathnode *temp = head;
head = temphead;
temphead = temp;
}
static void deleteList(void)
{
pathnode *ptr = head, *temp;
while(ptr != NULL) {
temp = ptr;
free(ptr->ref_path);
if(ptr->next != NULL) {
ptr = ptr->next;
} else {
ptr = NULL;
}
free(temp);
}
head = NULL;
swap_heads();
}
void bulkdata_add_data_to_list(struct list_head *dup_list, char *name, char *value, char *type)
{
struct resultsnode *link;
link = calloc(1, sizeof(struct resultsnode));
list_add_tail(&link->list, dup_list);
link->name = strdup(name);
link->data = strdup(value);
link->type = strdup(type);
}
void bulkdata_delete_data_from_list(struct resultsnode *link)
{
list_del(&link->list);
FREE(link->name);
FREE(link->data);
FREE(link->type);
FREE(link);
}
void bulkdata_free_data_from_list(struct list_head *dup_list)
{
struct resultsnode *link;
while (dup_list->next != dup_list) {
link = list_entry(dup_list->next, struct resultsnode, list);
bulkdata_delete_data_from_list(link);
}
}
static bool bulkdata_get(int operation, char *path, struct dmctx *dm_ctx)
{
int fault = 0;
switch(operation) {
case CMD_GET_NAME:
fault = dm_entry_param_method(dm_ctx, CMD_GET_NAME, path, "true", NULL);
break;
case CMD_GET_VALUE:
fault = dm_entry_param_method(dm_ctx, CMD_GET_VALUE, path, NULL, NULL);
break;
default:
return false;
}
if (dm_ctx->list_fault_param.next != &dm_ctx->list_fault_param) {
return false;
}
if (fault) {
return false;
}
return true;
}
char *bulkdata_get_value_param(char *path)
{
struct dmctx ctx = {0};
struct dm_parameter *n;
char *value = NULL;
bulkdata_dm_ctx_init(&ctx);
if(bulkdata_get(CMD_GET_VALUE, path, &ctx)) {
list_for_each_entry(n, &ctx.list_parameter, list) {
value = strdup(n->data);
break;
}
}
bulkdata_dm_ctx_clean(&ctx);
return value;
}
void bulkdata_get_value(char *path, struct list_head *list)
{
struct dmctx ctx = {0};
struct dm_parameter *n;
bulkdata_dm_ctx_init(&ctx);
if(bulkdata_get(CMD_GET_VALUE, path, &ctx)) {
list_for_each_entry(n, &ctx.list_parameter, list) {
bulkdata_add_data_to_list(list, n->name, n->data, n->type);
}
}
bulkdata_dm_ctx_clean(&ctx);
}
bool bulkdata_get_name(char *path)
{
struct dmctx ctx = {0};
struct dm_parameter *n;
bool ret = false;
bulkdata_dm_ctx_init(&ctx);
if(bulkdata_get(CMD_GET_NAME, path, &ctx)) {
list_for_each_entry(n, &ctx.list_parameter, list) {
insert(strdup(n->name), false);
}
ret = true;
}
bulkdata_dm_ctx_clean(&ctx);
return ret;
}
static void fill_node_path(void)
{
pathnode *p=head;
while(p!=NULL) {
bulkdata_get_name(p->ref_path);
p=p->next;
}
deleteList();
}
static void bulkdata_filter_results(char *path, int start, int end)
{
int startpos = start, m_index = 0, m_len = 0;
char *pp = path + startpos;
char exp[NAME_MAX] = {'\0'};
if(start >= end) {
return;
}
if(!is_res_required(pp, &m_index, &m_len)) {
//append rest of the path to the final list
if(pp == path ) {
insert(strdup(pp), true);
return;
}
pathnode *p = head;
while(p != NULL) {
char name[NAME_MAX] = {'\0'};
strcpy(name, p->ref_path);
strcat(name, pp);
insert(strdup(name), false);
p = p->next;
}
deleteList();
return;
}
// Get the string before the match
char name[NAME_MAX]={'\0'};
strncpy(name, pp, m_index);
pathnode *p = head;
if(p == NULL) {
insert(strdup(name), false);
}
while(p != NULL) {
char ref_name[NAME_MAX] = {'\0'};
sprintf(ref_name, "%s%s", p->ref_path, name);
insert(strdup(ref_name), false);
p = p->next;
}
deleteList();
startpos += m_index;
strncpy(exp, pp+m_index, m_len);
pp = path + startpos;
fill_node_path();
startpos += 2;
bulkdata_filter_results(path, startpos, end);
}
static void bulkdata_parse_results(struct list_head *list)
{
pathnode *p = head;
while(p != NULL) {
bulkdata_get_value(p->ref_path, list);
p = p->next;
}
deleteList();
}
void bulkdata_get_value_results(char *path, struct list_head *list)
{
bulkdata_filter_results(path, 0, strlen(path));
bulkdata_parse_results(list);
}
char *create_request_url(struct profile *profile)
{
int i = 0, http_uri_number = profile->profile_http_request_uri_parameter_number;
char *value, *uri_param = NULL, *uri_tmp = NULL, *http_url = NULL;
for (i = 0; i < http_uri_number; i++)
{
if((profile->profile_http_uri_parameter[i].reference == NULL) || (profile->profile_http_uri_parameter[i].name == NULL))
continue;
value = bulkdata_get_value_param(profile->profile_http_uri_parameter[i].reference);
if(!uri_param) {
asprintf(&uri_param, "&%s=%s", profile->profile_http_uri_parameter[i].name, value);
free(value);
}
else {
uri_tmp = strdup(uri_param);
free(uri_param);
asprintf(&uri_param, "%s&%s=%s", uri_tmp, profile->profile_http_uri_parameter[i].name, value);
free(value);
free(uri_tmp);
}
}
if(uri_param) {
asprintf(&http_url, "%s%s", profile->http_url, uri_param);
free(uri_param);
} else {
asprintf(&http_url, "%s", profile->http_url);
}
return http_url;
}
char *get_bulkdata_profile_parameter_name(char *paramref, char *paramname, char *param)
{
char **paramarr, *idx1 = NULL, *idx2 = NULL, *res = NULL, *instance = NULL, *tmp = NULL, *retparam = NULL, *s = NULL;
int i, j = 0;
size_t length;
if(paramname == NULL || strlen(paramname) <= 0)
return strdup(param);
paramarr = str_split(paramref, "*", &length);
res = strdup(paramname);
for(i = 0; i < length; i++) {
if(i == length - 1)
break;
j++;
idx1 = strstr(param, paramarr[i]);
idx2 = strstr(param, paramarr[i+1]);
instance = (char*)calloc(idx2 - idx1 - strlen(paramarr[i]) + 1, sizeof(char));
memcpy(instance, idx1 + strlen(paramarr[i]), idx2 - idx1 - strlen(paramarr[i]));
tmp = strdup(res);
FREE(res);
asprintf(&res, "%s.%s", tmp, instance);
FREE(tmp);
FREE(instance);
}
if ((s = strstr(param,paramarr[j]) ) != NULL && strlen(s) == strlen(paramarr[j]))
asprintf(&retparam, "%s", res);
else
asprintf(&retparam, "%s.%s", res, strstr(param, paramarr[j]) + strlen(paramarr[j]));
FREE(res);
for(int k = 0; k < length; k++)
FREE(paramarr[k]);
FREE(paramarr);
return retparam;
}
void append_string_to_string(char *strappend, char **target)
{
char *tmp = NULL;
if(strappend == NULL || strlen(strappend) <= 0)
return;
if(*target == NULL || strlen(*target) <= 0) {
*target = strdup(strappend);
return;
} else {
tmp = strdup(*target);
FREE(*target);
}
asprintf(target, "%s%s", tmp, strappend);
FREE(tmp);
}
void bulkdata_add_failed_report(struct profile *profile, char *freport)
{
struct failed_reports *report, *retreport, *rtmp;
if(profile->nbre_failed_reports < profile->nbre_of_retained_failed_reports || profile->nbre_of_retained_failed_reports < 0) {
profile->nbre_failed_reports++;
} else {
list_for_each_entry_safe(retreport, rtmp, profile->failed_reports, list) {
bulkdata_delete_failed_report(retreport);
break;
}
}
report = calloc(1, sizeof(struct failed_reports));
list_add_tail(&report->list, profile->failed_reports);
report->freport= strdup(freport);
}
void bulkdata_delete_failed_report(struct failed_reports *report)
{
if(report != NULL) {
list_del(&report->list);
FREE(report->freport);
FREE(report);
}
}
struct failed_reports* empty_failed_reports_list(struct profile *profile)
{
struct failed_reports *report, *rtmp;
if(list_empty(profile->failed_reports))
return NULL;
list_for_each_entry_safe(report, rtmp, profile->failed_reports, list) {
list_del(&report->list);
FREE(report->freport);
FREE(report);
}
return NULL;
}
void add_failed_reports_to_report_csv(struct profile *profile, char **report, int isnext)
{
struct failed_reports *retreport = NULL;
int j = 0;
if(list_empty(profile->failed_reports))
return;
list_for_each_entry(retreport, profile->failed_reports, list) {
if(!j && isnext) {
j = 1;
continue;
}
append_string_to_string(retreport->freport, report);
}
}

View File

@@ -1,69 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __COMMON_H
#define __COMMON_H
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <regex.h>
#include <sys/param.h>
#include <libubox/blobmsg.h>
#include <libubox/blobmsg_json.h>
#include <libubox/utils.h>
#include <libubus.h>
#include <libbbfdm/dmentry.h>
#include <libbbfdm/dmbbfcommon.h>
#include "config.h"
#include "log.h"
#include "bulkdata.h"
typedef struct pathnode {
char *ref_path;
struct pathnode *next;
} pathnode;
typedef struct resultsnode {
struct list_head list;
char *name;
char *data;
char *type;
} resultsnode;
struct failed_reports {
struct list_head list;
char *freport;
};
#define GLOB_CHAR "[[+*]+"
int bulkdata_dm_ctx_init(struct dmctx *ctx);
int bulkdata_dm_ctx_clean(struct dmctx *ctx);
char *bulkdata_get_value_param(char *path);
void bulkdata_get_value(char *path, struct list_head *list);
void bulkdata_free_data_from_list(struct list_head *dup_list);
void bulkdata_get_value_results(char *path, struct list_head *list);
char *create_request_url(struct profile *profile);
char *get_bulkdata_profile_parameter_name(char *paramref, char *paramname, char *param);
void append_string_to_string(char *strappend, char **target);
void bulkdata_add_failed_report(struct profile *profile, char *freport);
void bulkdata_delete_failed_report(struct failed_reports *report);
struct failed_reports *empty_failed_reports_list(struct profile *profile);
void add_failed_reports_to_report_csv(struct profile *profile, char **report, int isnext);
#endif //__COMMON_H

View File

@@ -1,524 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Omar Kallel <omar.kallel@pivasoftware.com>
*/
#include <stdio.h>
#include <strings.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <libbbfdm/deviceinfo.h>
#include "log.h"
#include "config.h"
#include "buci.h"
#include "common.h"
#include "bulkdata.h"
int get_log_level_config(struct bulkdata *bulkdata)
{
char *value = NULL;
buci_init();
value = buci_get_value("bulkdata", "bulkdata", "log_level");
if(value != NULL && *value != '\0')
bulkdata->log_level = atoi(value);
else
bulkdata->log_level = DEFAULT_LOGLEVEL;
bulkdata_log(SDEBUG,"Log Level of Bulkdata is : %d", bulkdata->log_level);
buci_fini();
return 0;
}
int get_amd_version_config(struct bulkdata *bulkdata)
{
char *value = NULL;
buci_init();
value = buci_get_value("cwmp", "cpe", "amd_version");
if(value != NULL && *value != '\0')
bulkdata->amd_version = atoi(value);
else
bulkdata->amd_version = DEFAULT_AMD_VERSION;
bulkdata_log(SDEBUG,"CWMP Amendment Version is : %d", bulkdata->amd_version);
buci_fini();
return 0;
}
int get_instance_mode_config(struct bulkdata *bulkdata)
{
char *value = NULL;
buci_init();
value = buci_get_value("cwmp", "cpe", "instance_mode");
if(value != NULL && *value != '\0') {
if(!strcmp(value, "InstanceNumber"))
bulkdata->instance_mode = INSTANCE_MODE_NUMBER;
else
bulkdata->instance_mode = INSTANCE_MODE_ALIAS;
}
else
bulkdata->instance_mode = DEFAULT_INSTANCE_MODE;
bulkdata_log(SDEBUG,"CWMP Instance Mode is : %d", bulkdata->instance_mode);
buci_fini();
return 0;
}
int get_device_id_config(struct bulkdata *bulkdata)
{
struct dmctx dmctx = {0};
bulkdata_dm_ctx_init(&dmctx);
bulkdata->device_id.manufacturer_oui = strdup(get_deviceid_manufactureroui());
bulkdata->device_id.product_class = strdup(get_deviceid_productclass());
bulkdata->device_id.serial_number = strdup(get_deviceid_serialnumber());
bulkdata_dm_ctx_clean(&dmctx);
return 0;
}
int load_profile_config(struct bulkdata *bulkdata, struct uci_section *s, int i)
{
char *value = NULL;
value = buci_get_value_bysection(s, "profile_id");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].profile_id = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The profile_id of profile_id %d is : %d", i, bulkdata->profile[i].profile_id);
} else
return -1;
value = buci_get_value_bysection(s, "nbre_of_retained_failed_reports");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].nbre_of_retained_failed_reports = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The nombre of retained failed reports of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].nbre_of_retained_failed_reports);
}
value = buci_get_value_bysection(s, "protocol");
if(value != NULL && *value != '\0' && strcasecmp(value, "http")==0) {
bulkdata->profile[i].protocol = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The protocol of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].protocol);
} else
return -1;
value = buci_get_value_bysection(s, "encoding_type");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].encoding_type = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The encoding type of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].encoding_type);
} else
return -1;
value = buci_get_value_bysection(s, "reporting_interval");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].reporting_interval = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The reporting interval of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].reporting_interval);
} else
return -1;
value = buci_get_value_bysection(s, "time_reference");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].time_reference = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The time reference of profile_id %d is : %ld", bulkdata->profile[i].profile_id, bulkdata->profile[i].time_reference);
} else
return -1;
value = buci_get_value_bysection(s, "csv_encoding_field_separator");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].csv_encoding_field_separator = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The csv encoding field separator of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].csv_encoding_field_separator);
} else
return -1;
value = buci_get_value_bysection(s, "csv_encoding_row_separator");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].csv_encoding_row_separator = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The csv encoding row separator of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].csv_encoding_row_separator);
} else
return -1;
value = buci_get_value_bysection(s, "csv_encoding_escape_character");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].csv_encoding_escape_character = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The csv encoding escape character of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].csv_encoding_escape_character);
}
value = buci_get_value_bysection(s, "csv_encoding_report_format");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].csv_encoding_report_format = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The csv encoding report format of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].csv_encoding_report_format);
} else
return -1;
value = buci_get_value_bysection(s, "csv_encoding_row_time_stamp");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].csv_encoding_row_time_stamp = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The csv encoding row time stamp of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].csv_encoding_row_time_stamp);
} else
return -1;
value = buci_get_value_bysection(s, "json_encoding_report_format");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].json_encoding_report_format = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The json encoding report format of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].json_encoding_report_format);
} else
return -1;
value = buci_get_value_bysection(s, "json_encoding_report_time_stamp");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].json_encoding_report_time_stamp = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The json encoding report time stamp of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].json_encoding_report_time_stamp);
} else
return -1;
value = buci_get_value_bysection(s, "http_url");
if(value != NULL && *value != '\0') {
char *url = NULL;
asprintf(&url, "%s?oui=%s&pc=%s&sn=%s", value, bulkdata->device_id.manufacturer_oui, bulkdata->device_id.serial_number, bulkdata->device_id.serial_number);
bulkdata->profile[i].http_url = strdup(url);
free(url);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP url of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_url);
} else
return -1;
value = buci_get_value_bysection(s, "http_username");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_username = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP username of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_username);
} else {
bulkdata->profile[i].http_username = NULL;
}
value = buci_get_value_bysection(s, "http_password");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_password = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP password of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_password);
} else {
bulkdata->profile[i].http_password = NULL;
}
value = buci_get_value_bysection(s, "http_compression");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_compression = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP compression of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_compression);
} else
return -1;
value = buci_get_value_bysection(s, "http_method");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_method = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP method of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_method);
} else
return -1;
value = buci_get_value_bysection(s, "http_use_date_header");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_use_date_header = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP use date header of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_use_date_header);
}
value = buci_get_value_bysection(s, "http_retry_enable");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_retry_enable = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP retry enable of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_retry_enable);
} else
return -1;
value = buci_get_value_bysection(s, "http_retry_minimum_wait_interval");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_retry_minimum_wait_interval = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP retry minimum wait interval of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_retry_minimum_wait_interval);
}
value = buci_get_value_bysection(s, "http_retry_interval_multiplier");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_retry_interval_multiplier = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP retry interval multiplier of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_retry_interval_multiplier);
}
value = buci_get_value_bysection(s, "http_persist_across_reboot");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_persist_across_reboot = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP persist across reboot of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_persist_across_reboot);
} else
return -1;
value = buci_get_value_bysection(s, "http_ssl_capath");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_ssl_capath = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP ssl capath of profile_id %d is : %s", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_ssl_capath);
} else {
bulkdata->profile[i].http_ssl_capath = NULL;
}
value = buci_get_value_bysection(s, "http_insecure_enable");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].http_insecure_enable = atoi(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP insecure enable of profile_id %d is : %d", bulkdata->profile[i].profile_id, bulkdata->profile[i].http_insecure_enable);
}
bulkdata->profile[i].retry_count = 0;
bulkdata->profile[i].nbre_failed_reports = 0;
return 0;
}
int get_profiles_enable(struct bulkdata *bulkdata)
{
struct uci_section *s;
char *enable;
int i = 0, nbr_profiles = 0;
buci_init();
buci_foreach_section("bulkdata", "profile", s) {
enable = buci_get_value_bysection(s, "enable");
if(strcmp(enable, "1") == 0) {
nbr_profiles++;
}
}
if(nbr_profiles != 0)
bulkdata->profile = calloc(2, sizeof(struct profile));
buci_foreach_section("bulkdata", "profile", s) {
enable = buci_get_value_bysection(s, "enable");
if(strcmp(enable, "1") == 0) {
if(load_profile_config(bulkdata, s, i) == -1) {
bulkdata_log(SCRIT,"Not able to start bulkdata: some required bulkdata configurations in profile must be set");
return -1;
}
i++;
}
}
profiles_number = nbr_profiles;
buci_fini();
return 0;
}
int load_profile_parameter_config(struct bulkdata *bulkdata, struct uci_section *s, int i, int j)
{
char *value = NULL;
value = buci_get_value_bysection(s, "name");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].profile_parameter[j].name = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The parameter name %d of profile_id %d is : %s", j+1, bulkdata->profile[i].profile_id, bulkdata->profile[i].profile_parameter[j].name);
} else {
bulkdata->profile[i].profile_parameter[j].name = NULL;
}
value = buci_get_value_bysection(s, "reference");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].profile_parameter[j].reference = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The parameter reference %d of profile_id %d is : %s", j+1, bulkdata->profile[i].profile_id, bulkdata->profile[i].profile_parameter[j].reference);
} else
return -1;
return 0;
}
int get_profiles_parameters(struct bulkdata *bulkdata)
{
struct uci_section *s;
char *profile_id;
int i, j, nbr_profile_parameters;
buci_init();
for (i = 0; i < profiles_number; i++) {
j = 0;
nbr_profile_parameters = 0;
buci_foreach_section("bulkdata", "profile_parameter", s) {
profile_id = buci_get_value_bysection(s, "profile_id");
if(bulkdata->profile[i].profile_id != atoi(profile_id))
continue;
nbr_profile_parameters++;
if(nbr_profile_parameters == 1) {
bulkdata->profile[i].profile_parameter = calloc(1, sizeof(struct profile_parameter));
} else {
bulkdata->profile[i].profile_parameter = realloc(bulkdata->profile[i].profile_parameter, nbr_profile_parameters * sizeof(struct profile_parameter));
}
if(load_profile_parameter_config(bulkdata, s, i, j) == -1) {
bulkdata_log(SCRIT,"Not able to start bulkdata: some required bulkdata configurations in profile_parameter must be set");
return -1;
}
j++;
}
bulkdata->profile[i].profile_parameter_number = nbr_profile_parameters;
}
buci_fini();
return 0;
}
int load_profile_http_request_uri_parameter_config(struct bulkdata *bulkdata, struct uci_section *s, int i, int j)
{
char *value = NULL;
value = buci_get_value_bysection(s, "name");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].profile_http_uri_parameter[j].name = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP resuest URI parameter name %d of profile_id %d is : %s", j+1, bulkdata->profile[i].profile_id, bulkdata->profile[i].profile_http_uri_parameter[j].name);
} else
return -1;
value = buci_get_value_bysection(s, "reference");
if(value != NULL && *value != '\0') {
bulkdata->profile[i].profile_http_uri_parameter[j].reference = strdup(value);
value = NULL;
bulkdata_log(SDEBUG,"The HTTP resuest URI parameter reference %d of profile_id %d is : %s", j+1, bulkdata->profile[i].profile_id, bulkdata->profile[i].profile_http_uri_parameter[j].reference);
} else
return -1;
return 0;
}
int get_profile_http_request_uri_parameter(struct bulkdata *bulkdata)
{
struct uci_section *s;
char *profile_id;
int i, j, nbr_profile_http_request_uri_parameter;
buci_init();
for (i = 0; i < profiles_number; i++) {
j = 0;
nbr_profile_http_request_uri_parameter = 0;
buci_foreach_section("bulkdata", "profile_http_request_uri_parameter", s) {
profile_id = buci_get_value_bysection(s, "profile_id");
if(bulkdata->profile[i].profile_id != atoi(profile_id))
continue;
nbr_profile_http_request_uri_parameter++;
if(nbr_profile_http_request_uri_parameter == 1) {
bulkdata->profile[i].profile_http_uri_parameter = calloc(1, sizeof(struct profile_http_request_uri_parameter));
} else {
bulkdata->profile[i].profile_http_uri_parameter = realloc(bulkdata->profile[i].profile_http_uri_parameter, nbr_profile_http_request_uri_parameter * sizeof(struct profile_http_request_uri_parameter));
}
if(load_profile_http_request_uri_parameter_config(bulkdata, s, i, j)== -1) {
bulkdata_log(SCRIT,"Not able to start bulkdata: some required bulkdata configurations in profile_http_request_uri_parameter must be set");
return -1;
}
j++;
}
bulkdata->profile[i].profile_http_request_uri_parameter_number = nbr_profile_http_request_uri_parameter;
}
buci_fini();
return 0;
}
int bulkdata_config_init(struct bulkdata *bulkdata)
{
get_log_level_config(bulkdata);
get_amd_version_config(bulkdata);
get_instance_mode_config(bulkdata);
get_device_id_config(bulkdata);
if (get_profiles_enable(bulkdata) == -1)
return -1;
if (get_profiles_parameters(bulkdata) == -1)
return -1;
if (get_profile_http_request_uri_parameter(bulkdata) == -1)
return -1;
return 0;
}
int free_device_id_config(struct bulkdata *bulkdata)
{
FREE(bulkdata->device_id.manufacturer_oui);
FREE(bulkdata->device_id.product_class);
FREE(bulkdata->device_id.serial_number);
return 0;
}
int free_profiles_enable(struct bulkdata *bulkdata)
{
for(int i = 0; i < profiles_number; i++) {
FREE(bulkdata->profile[i].protocol);
FREE(bulkdata->profile[i].encoding_type);
FREE(bulkdata->profile[i].csv_encoding_field_separator);
FREE(bulkdata->profile[i].csv_encoding_row_separator);
FREE(bulkdata->profile[i].csv_encoding_escape_character);
FREE(bulkdata->profile[i].csv_encoding_report_format);
FREE(bulkdata->profile[i].csv_encoding_row_time_stamp);
FREE(bulkdata->profile[i].json_encoding_report_format);
FREE(bulkdata->profile[i].json_encoding_report_time_stamp);
FREE(bulkdata->profile[i].http_url);
FREE(bulkdata->profile[i].http_username);
FREE(bulkdata->profile[i].http_password);
FREE(bulkdata->profile[i].http_compression);
FREE(bulkdata->profile[i].http_method);
FREE(bulkdata->profile[i].http_ssl_capath);
}
FREE(bulkdata->profile);
return 0;
}
int free_profiles_parameters(struct bulkdata *bulkdata)
{
for(int i = 0; i < profiles_number; i++) {
for(int j = 0; j < bulkdata->profile[i].profile_parameter_number; j++) {
FREE(bulkdata->profile[i].profile_parameter[j].name);
FREE(bulkdata->profile[i].profile_parameter[j].reference);
}
FREE(bulkdata->profile[i].profile_parameter);
}
return 0;
}
int free_profile_http_request_uri_parameter(struct bulkdata *bulkdata)
{
for(int i = 0; i < profiles_number; i++) {
for(int j = 0; j < bulkdata->profile[i].profile_http_request_uri_parameter_number; j++) {
FREE(bulkdata->profile[i].profile_http_uri_parameter[j].name);
FREE(bulkdata->profile[i].profile_http_uri_parameter[j].reference);
}
FREE(bulkdata->profile[i].profile_http_uri_parameter);
}
return 0;
}
int bulkdata_config_fini(struct bulkdata *bulkdata)
{
free_device_id_config(bulkdata);
free_profiles_parameters(bulkdata);
free_profile_http_request_uri_parameter(bulkdata);
free_profiles_enable(bulkdata);
return 0;
}

View File

@@ -1,103 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __CONFIG_H
#define __CONFIG_H
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <time.h>
#include <libubox/uloop.h>
#define DEFAULT_AMD_VERSION 2
#define DEFAULT_INSTANCE_MODE 0
typedef struct device_id {
char *manufacturer_oui;
char *product_class;
char *serial_number;
} device_id;
typedef struct profile_parameter {
int profile_id;
char *name;
char *reference;
} profile_parameter;
typedef struct profile_http_request_uri_parameter {
int profile_id;
char *name;
char *reference;
} profile_http_request_uri_parameter;
typedef struct profile {
struct uloop_timeout utimer;
int profile_id;
int nbre_of_retained_failed_reports;
int nbre_failed_reports;
int reporting_interval;
int profile_parameter_number;
int profile_http_request_uri_parameter_number;
int http_retry_minimum_wait_interval;
int http_retry_interval_multiplier;
int min_retry;
int retry_count;
char *protocol;
char *encoding_type;
char *csv_encoding_field_separator;
char *csv_encoding_row_separator;
char *csv_encoding_escape_character;
char *csv_encoding_report_format;
char *csv_encoding_row_time_stamp;
char *json_encoding_report_format;
char *json_encoding_report_time_stamp;
char *http_url;
char *http_username;
char *http_password;
char *http_compression;
char *http_method;
char *http_ssl_capath;
char *new_report;
time_t time_reference;
time_t next_retry;
time_t next_period;
bool http_persist_across_reboot;
bool http_insecure_enable;
bool enable;
bool http_use_date_header;
bool http_retry_enable;
struct profile_parameter *profile_parameter;
struct profile_http_request_uri_parameter *profile_http_uri_parameter;
struct list_head *failed_reports;
} profile;
typedef struct bulkdata {
struct device_id device_id;
struct profile *profile;
int log_level;
int amd_version;
unsigned int instance_mode;
} bulkdata;
int bulkdata_config_init(struct bulkdata *bulkdata);
int bulkdata_config_fini(struct bulkdata *bulkdata);
#ifndef FREE
#define FREE(x) do { if(x) {free(x); x = NULL;} } while (0)
#endif
#endif //__CONFIG_H

File diff suppressed because it is too large Load Diff

View File

@@ -1,29 +0,0 @@
/*
* Copyright (C) 2020 iopsys Software Solutions AB
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation
*
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*/
#ifndef _BULKDATA_H_
#define _BULKDATA_H_
#include <libbbf_api/dmcommon.h>
extern DMOBJ tDeviceBulkDataObj[];
extern DMOBJ tBulkDataObj[];
extern DMLEAF tBulkDataParams[];
extern DMOBJ tBulkDataProfileObj[];
extern DMLEAF tBulkDataProfileParams[];
extern DMLEAF tBulkDataProfileParameterParams[];
extern DMLEAF tBulkDataProfileCSVEncodingParams[];
extern DMLEAF tBulkDataProfileJSONEncodingParams[];
extern DMOBJ tBulkDataProfileHTTPObj[];
extern DMLEAF tBulkDataProfileHTTPParams[];
extern DMLEAF tBulkDataProfileHTTPRequestURIParameterParams[];
#endif //__BULKDATA_H_

View File

@@ -1,196 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Omar Kallel <omar.kallel@pivasoftware.com>
*/
#include "http.h"
static struct http_client http_c;
static CURL *curl;
int http_client_init(struct profile *profile)
{
char *url = create_request_url(profile);
if(url) {
asprintf(&http_c.url, "%s", url);
free(url);
}
bulkdata_log(SINFO, "ACS url: %s", http_c.url);
curl_global_init(CURL_GLOBAL_SSL);
curl = curl_easy_init();
if (!curl) return -1;
return 0;
}
void http_client_exit(void)
{
FREE(http_c.url);
if (http_c.header_list) {
curl_slist_free_all(http_c.header_list);
http_c.header_list = NULL;
}
curl_easy_cleanup(curl);
curl_global_cleanup();
}
static size_t http_get_response(void *buffer, size_t size, size_t rxed, char **msg_in)
{
char *c;
if (asprintf(&c, "%s%.*s", *msg_in, size * rxed, (char *)buffer) == -1) {
FREE(*msg_in);
return -1;
}
free(*msg_in);
*msg_in = c;
return size * rxed;
}
int http_send_message(struct profile *profile, char *msg_out, int msg_out_len, char **msg_in)
{
CURLcode res;
long http_code = 0;
char errbuf[CURL_ERROR_SIZE];
http_c.header_list = NULL;
http_c.header_list = curl_slist_append(http_c.header_list, "User-Agent: iopsys-bulkdata");
if (!http_c.header_list) return -1;
if (profile->http_use_date_header) {
if (bulkdata_get_time() != NULL) {
http_c.header_list = curl_slist_append(http_c.header_list, bulkdata_get_time());
if (!http_c.header_list) return -1;
}
}
if (strcmp(profile->encoding_type, "json") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "Content-Type: application/json; charset=\"utf-8\"");
if (!http_c.header_list) return -1;
if(strcmp (profile->json_encoding_report_format, "objecthierarchy") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "BBF-Report-Format: \"ObjectHierarchy\"");
if (!http_c.header_list) return -1;
} else if(strcmp(profile->json_encoding_report_format, "namevaluepair") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "BBF-Report-Format: \"NameValuePair\"");
if (!http_c.header_list) return -1;
}
} else if(strcmp(profile->encoding_type, "csv") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "Content-Type: text/csv; charset=\"utf-8\"");
if (!http_c.header_list) return -1;
if(strcmp (profile->csv_encoding_report_format, "row") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "BBF-Report-Format: \"ParameterPerRow\"");
if (!http_c.header_list) return -1;
} else if(strcmp (profile->csv_encoding_report_format, "column") == 0) {
http_c.header_list = curl_slist_append(http_c.header_list, "BBF-Report-Format: \"ParameterPerColumn\"");
if (!http_c.header_list) return -1;
}
}
curl_easy_setopt(curl, CURLOPT_URL, http_c.url);
curl_easy_setopt(curl, CURLOPT_USERNAME, profile->http_username);
curl_easy_setopt(curl, CURLOPT_PASSWORD, profile->http_password);
curl_easy_setopt(curl, CURLOPT_HTTPAUTH, CURLAUTH_BASIC|CURLAUTH_DIGEST);
curl_easy_setopt(curl, CURLOPT_TIMEOUT, HTTP_TIMEOUT);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HTTP_TIMEOUT);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
curl_easy_setopt(curl, CURLOPT_POSTREDIR, CURL_REDIR_POST_ALL);
curl_easy_setopt(curl, CURLOPT_NOBODY, 0);
if(strcasecmp(profile->http_compression, "gzip") == 0) {
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "gzip");
http_c.header_list = curl_slist_append(http_c.header_list, "Content-Encoding: gzip");
} else if(strcasecmp(profile->http_compression, "compress") == 0) {
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "compress");
http_c.header_list = curl_slist_append(http_c.header_list, "Content-Encoding: compress");
} else if(strcasecmp(profile->http_compression, "deflate") == 0) {
curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "deflate");
http_c.header_list = curl_slist_append(http_c.header_list, "Content-Encoding: deflate");
}
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, http_c.header_list);
if(strcasecmp(profile->http_method, "put") == 0)
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "PUT");
curl_easy_setopt(curl, CURLOPT_POSTFIELDS, msg_out);
if (msg_out)
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, (long) msg_out_len);
else
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_get_response);
curl_easy_setopt(curl, CURLOPT_WRITEDATA, msg_in);
curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errbuf);
if (profile->http_ssl_capath)
curl_easy_setopt(curl, CURLOPT_CAPATH, profile->http_ssl_capath);
if (profile->http_insecure_enable) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, false);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0);
}
*msg_in = (char *) calloc (1, sizeof(char));
res = curl_easy_perform(curl);
if(res != CURLE_OK) {
size_t len = strlen(errbuf);
if(len) {
if (errbuf[len - 1] == '\n') errbuf[len - 1] = '\0';
bulkdata_log(SCRIT, "libcurl: (%d) %s", res, errbuf);
} else {
bulkdata_log(SCRIT, "libcurl: (%d) %s", res, curl_easy_strerror(res));
}
}
if (!strlen(*msg_in))
FREE(*msg_in);
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code);
if(http_code == 200)
bulkdata_log(SINFO, "Receive HTTP 200 OK from Bulkdata Collector");
else if(http_code == 401)
bulkdata_log(SINFO, "Receive HTTP 401 Unauthorized from Bulkdata Collector");
else if(http_code == 204)
bulkdata_log(SINFO, "Receive HTTP 204 No Content from Bulkdata Collector");
else
bulkdata_log(SINFO, "Receive HTTP %d from Bulkdata Collector", http_code);
if(http_code == 415)
{
strcpy(profile->http_compression, "None");
goto error;
}
if (http_code != 200 && http_code != 204)
goto error;
curl_easy_reset(curl);
if (http_c.header_list) {
curl_slist_free_all(http_c.header_list);
http_c.header_list = NULL;
}
if (res) goto error;
return http_code;
error:
FREE(*msg_in);
if (http_c.header_list) {
curl_slist_free_all(http_c.header_list);
http_c.header_list = NULL;
}
return -1;
}

View File

@@ -1,37 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __HTTP_H
#define __HTTP_H
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <curl/curl.h>
#include "config.h"
#include "log.h"
#include "times.h"
#include "common.h"
#define HTTP_TIMEOUT 30
struct http_client
{
struct curl_slist *header_list;
char *url;
};
int http_client_init(struct profile *profile);
void http_client_exit(void);
int http_send_message(struct profile *profile, char *msg_out, int msg_out_len, char **msg_in);
#endif //__HTTP_H

View File

@@ -1,57 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <syslog.h>
#include <time.h>
#include "bulkdata.h"
#include "config.h"
#include "log.h"
static const int log_syslogmap[] = {
[SCRIT] = LOG_CRIT,
[SWARNING] = LOG_WARNING,
[SNOTICE] = LOG_NOTICE,
[SINFO] = LOG_INFO,
[SDEBUG] = LOG_DEBUG
};
static const char* log_str[] = {
[SCRIT] = "CRITICAL",
[SWARNING] = "WARNING",
[SNOTICE] = "NOTICE",
[SINFO] = "INFO",
[SDEBUG] = "DEBUG"
};
void bulkdata_log(int priority, const char *format, ...)
{
va_list vl;
if (priority <= bulkdata_main.log_level) {
time_t t = time(NULL);
struct tm tm = *localtime(&t);
va_start(vl, format);
printf("%d-%02d-%02d %02d:%02d:%02d [bulkdata] %s - ", tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, log_str[priority]);
vprintf(format, vl);
va_end(vl);
printf("\n");
openlog("bulkdata", 0, LOG_DAEMON);
va_start(vl, format);
vsyslog(log_syslogmap[priority], format, vl);
va_end(vl);
closelog();
}
}

View File

@@ -1,28 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __LOG_H
#define __LOG_H
#define DEFAULT_LOGLEVEL SINFO
enum bulkdata_log_level_enum {
SCRIT,
SWARNING,
SNOTICE,
SINFO,
SDEBUG,
__MAX_SLOG
};
void bulkdata_log(int priority, const char *format, ...);
#endif //__LOG_H

View File

@@ -1,336 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Author: Omar Kallel <omar.kallel@pivasoftware.com>
*
*/
#include "report.h"
static void add_new_json_obj(json_object *json_obj, char *name, char *data, char *type)
{
json_object *jobj;
if(strstr(type, "unsignedInt") || strstr(type, "int") || strstr(type, "long"))
jobj = json_object_new_int64(atoi(data));
else if(strstr(type, "bool"))
jobj = json_object_new_boolean(atoi(data));
else
jobj = json_object_new_string(data);
json_object_object_add(json_obj, name, jobj);
}
static void create_json_bulkdata_report_object_hierarchy(struct profile *profile, char **report)
{
struct json_object *json_obj, *json_obj1, *json_obj2;
struct resultsnode *p;
int i, j, profile_param_number = profile->profile_parameter_number;
char *param_name, *result, *pch, *pchr, *collection_time = NULL;
char buf[1024] = {0};
json_obj = json_object_new_object();
get_time_stamp(profile->json_encoding_report_time_stamp, &collection_time);
if(collection_time) {
if(strcmp(profile->json_encoding_report_time_stamp, "iso8601") == 0)
json_object_object_add(json_obj, "CollectionTime", json_object_new_string(collection_time));
else
json_object_object_add(json_obj, "CollectionTime", json_object_new_int64(atoi(collection_time)));
free(collection_time);
}
json_obj2 = json_obj;
for (i = 0; i < profile_param_number; i++) {
LIST_HEAD(results_list);
bulkdata_get_value_results(profile->profile_parameter[i].reference, &results_list);
list_for_each_entry(p, &results_list, list) {
char *argv[128] = {0};
j = 0;
param_name = get_bulkdata_profile_parameter_name(profile->profile_parameter[i].reference, profile->profile_parameter[i].name, p->name);
strcpy(buf, param_name);
for (pch = strtok_r(buf, ".", &pchr); pch != NULL; pch = strtok_r(NULL, ".", &pchr)) {
argv[j] = pch;
json_obj1 = (json_object *)dmjson_select_obj(json_obj, argv);
if (json_obj1)
json_obj2 = json_obj1;
else {
if (pchr != NULL && *pchr != '\0') {
json_object *new_obj = json_object_new_object();
json_object_object_add(json_obj2, pch, new_obj);
json_obj2 = new_obj;
}
else
add_new_json_obj(json_obj2, pch, p->data, p->type);
}
j++;
}
}
bulkdata_free_data_from_list(&results_list);
FREE(param_name);
}
result = (char *)json_object_to_json_string_ext(json_obj, JSON_C_TO_STRING_PRETTY);
*report = strdup(result);
json_object_put(json_obj);
}
static void create_json_bulkdata_report_name_value_pair(struct profile *profile, char **report)
{
struct json_object *json_obj;
struct resultsnode *p;
char *param_name, *result, *collection_time = NULL;
int i = 0, profile_param_number = profile->profile_parameter_number;
json_obj = json_object_new_object();
get_time_stamp(profile->json_encoding_report_time_stamp, &collection_time);
if(collection_time) {
if(strcmp(profile->json_encoding_report_time_stamp, "iso8601") == 0)
json_object_object_add(json_obj, "CollectionTime", json_object_new_string(collection_time));
else
json_object_object_add(json_obj, "CollectionTime", json_object_new_int64(atoi(collection_time)));
free(collection_time);
}
for (i = 0; i < profile_param_number; i++) {
LIST_HEAD(results_list);
bulkdata_get_value_results(profile->profile_parameter[i].reference, &results_list);
list_for_each_entry(p, &results_list, list) {
param_name = get_bulkdata_profile_parameter_name(profile->profile_parameter[i].reference, profile->profile_parameter[i].name, p->name);
add_new_json_obj(json_obj, param_name, p->data, p->type);
FREE(param_name);
}
bulkdata_free_data_from_list(&results_list);
}
result = (char *)json_object_to_json_string_ext(json_obj, JSON_C_TO_STRING_PRETTY);
*report = strdup(result);
json_object_put(json_obj);
}
static void add_failed_reports_to_report_json(struct profile *profile, char *new_report, char **report, int isnext)
{
json_object *json_obj, *json_array, *json_string;
struct failed_reports *retreport = NULL;
char *msgout = NULL;
int j = 0;
json_obj = json_object_new_object();
json_array = json_object_new_array();
json_object_object_add(json_obj,"Report", json_array);
if(list_empty(profile->failed_reports))
goto new_report;
list_for_each_entry(retreport, profile->failed_reports, list) {
if(!j && isnext) {
j = 1;
continue;
}
json_string = json_tokener_parse(retreport->freport);
json_object_array_add(json_array, json_string);
}
new_report :
if(new_report) {
json_string = json_tokener_parse(new_report);
json_object_array_add(json_array, json_string);
}
msgout = (char *)json_object_to_json_string_ext(json_obj, JSON_C_TO_STRING_PRETTY);
*report = strdup(msgout);
json_object_put(json_obj);
}
static void create_report_json(char *new_report, char **report)
{
json_object *json_obj, *json_array, *json_string;
char *msgout = NULL;
json_obj = json_object_new_object();
json_array = json_object_new_array();
json_object_object_add(json_obj,"Report", json_array);
if(new_report) {
json_string = json_tokener_parse(new_report);
json_object_array_add(json_array, json_string);
}
msgout = (char *)json_object_to_json_string_ext(json_obj, JSON_C_TO_STRING_PRETTY);
*report = strdup(msgout);
json_object_put(json_obj);
}
int create_json_bulkdata_report(struct profile *profile, char **report)
{
/*
* create json msg of current report
* parse failed reports list and add it to the report
* then add new report to the report
*/
char *msgout;
profile->new_report = NULL;
if(strcmp(profile->json_encoding_report_format, "objecthierarchy") == 0) {
create_json_bulkdata_report_object_hierarchy(profile, &msgout);
} else if(strcmp(profile->json_encoding_report_format, "namevaluepair") == 0) {
create_json_bulkdata_report_name_value_pair(profile, &msgout);
}
if(profile->nbre_of_retained_failed_reports != 0) {
if(profile->nbre_failed_reports >= profile->nbre_of_retained_failed_reports && profile->nbre_of_retained_failed_reports > 0)
add_failed_reports_to_report_json(profile, msgout, report, 1);
else
add_failed_reports_to_report_json(profile, msgout, report, 0);
} else {
create_report_json(msgout, report);
}
append_string_to_string(msgout, &profile->new_report);
FREE(msgout);
return 0;
}
int create_csv_bulkdata_report(struct profile *profile, char **report)
{
/*
* create csv msg of current report
* parse failed reports list and add it to the report
*/
int i;
struct resultsnode *p;
char *str1 = NULL, *str2 = NULL, *str = NULL, *paramprofilename, *timestamp = NULL, *type = NULL, rowseparator = '\0', separator = '\0';
if(strcmp(profile->csv_encoding_row_separator, "&#10;") == 0)
rowseparator = '\n';
else if(strcmp(profile->csv_encoding_row_separator, "&#13;") == 0)
rowseparator = '\r';
if(profile->csv_encoding_field_separator)
separator = profile->csv_encoding_field_separator[0];
get_time_stamp(profile->csv_encoding_row_time_stamp, &timestamp);
/*
* Create header ReportTimestamp,ParameterName,ParameterValue,ParameterType in case of ParameterPerRow
*/
if(strcmp(profile->csv_encoding_report_format, "row") == 0) {
if(timestamp == NULL)
asprintf(&str, "ParameterName%cParameterValue%cParameterType%c", separator, separator, rowseparator);
else
asprintf(&str, "ReportTimestamp%cParameterName%cParameterValue%cParameterType%c", separator, separator, separator, rowseparator);
append_string_to_string(str, report);
FREE(str);
if(profile->nbre_of_retained_failed_reports != 0) {
if(profile->nbre_failed_reports >= profile->nbre_of_retained_failed_reports && profile->nbre_of_retained_failed_reports > 0)
add_failed_reports_to_report_csv(profile, report, 1);
else
add_failed_reports_to_report_csv(profile, report, 0);
}
}
if(strcmp(profile->csv_encoding_report_format, "column") == 0 && timestamp != NULL) {
if(profile->nbre_of_retained_failed_reports != 0) {
if(profile->nbre_failed_reports >= profile->nbre_of_retained_failed_reports && profile->nbre_of_retained_failed_reports > 0)
add_failed_reports_to_report_csv(profile, report, 1);
else
add_failed_reports_to_report_csv(profile, report, 0);
}
append_string_to_string("ReportTimestamp", &str1);
append_string_to_string(timestamp, &str2);
}
/*
* Add New reports
*/
profile->new_report = NULL;
for(i = 0; i < profile->profile_parameter_number; i++) {
LIST_HEAD(results_list);
bulkdata_get_value_results(profile->profile_parameter[i].reference, &results_list);
list_for_each_entry(p, &results_list, list) {
paramprofilename = get_bulkdata_profile_parameter_name(profile->profile_parameter[i].reference, profile->profile_parameter[i].name, p->name);
if(strcmp(profile->csv_encoding_report_format, "row") == 0) {
type = strstr(p->type, ":");
if(timestamp == NULL)
asprintf(&str, "%s%c%s%c%s%c", paramprofilename, separator, p->data, separator, type+1, rowseparator);
else
asprintf(&str, "%s%c%s%c%s%c%s%c", timestamp, separator, paramprofilename, separator, p->data, separator, type+1, rowseparator);
append_string_to_string(str, report);
append_string_to_string(str, &profile->new_report);
FREE(str);
} else if(strcmp(profile->csv_encoding_report_format, "column") == 0) {
if(str1 == NULL || strlen(str1) <= 0)
asprintf(&str, "%s", paramprofilename);
else
asprintf(&str, "%c%s", separator, paramprofilename);
append_string_to_string(str, &str1);
FREE(str);
if(str2 == NULL || strlen(str2) <= 0)
asprintf(&str, "%s", p->data);
else
asprintf(&str, "%c%s", separator, p->data);
append_string_to_string(str, &str2);
FREE(str);
}
FREE(paramprofilename);
}
bulkdata_free_data_from_list(&results_list);
}
if(strcmp(profile->csv_encoding_report_format, "column") == 0) {
asprintf(&str, "%c", rowseparator);
append_string_to_string(str, &str1);
append_string_to_string(str, &str2);
append_string_to_string(str1, report);
append_string_to_string(str2, report);
append_string_to_string(str1, &profile->new_report);
append_string_to_string(str2, &profile->new_report);
}
FREE(str);
FREE(str1);
FREE(str2);
FREE(timestamp);
return 0;
}
static void create_json_failed_report(struct profile *profile, char **report)
{
add_failed_reports_to_report_json(profile, NULL, report, 0);
}
static void create_csv_failed_report(struct profile *profile, char **report)
{
char rowseparator = '\0', separator = '\0', *timestamp = NULL;
if(strcmp(profile->csv_encoding_row_separator, "&#10;") == 0) {
rowseparator = '\n';
} else if(strcmp(profile->csv_encoding_row_separator, "&#13;") == 0) {
rowseparator = '\r';
}
if(profile->csv_encoding_field_separator)
separator = profile->csv_encoding_field_separator[0];
get_time_stamp(profile->csv_encoding_row_time_stamp, &timestamp);
if(strcmp(profile->csv_encoding_report_format, "row") == 0) {
if(timestamp == NULL)
asprintf(report, "ParameterName%cParameterValue%cParameterType%c", separator, separator, rowseparator);
else
asprintf(report, "ReportTimestamp%cParameterName%cParameterValue%cParameterType%c", separator, separator, separator, rowseparator);
}
add_failed_reports_to_report_csv(profile, report, 0);
}
void create_encoding_bulkdata_report(struct profile *profile, char **report)
{
if(strcasecmp(profile->encoding_type, "json") == 0) {
create_json_bulkdata_report(profile, report);
} else if(strcasecmp(profile->encoding_type, "csv") == 0) {
create_csv_bulkdata_report(profile, report);
}
}
void create_failed_report(struct profile *profile, char **report)
{
if(strcasecmp(profile->encoding_type, "json") == 0) {
create_json_failed_report(profile, report);
} else if(strcasecmp(profile->encoding_type, "csv") == 0) {
create_csv_failed_report(profile, report);
}
}

View File

@@ -1,24 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
* Author: Omar Kallel <omar.kallel@pivasoftware.com>
*
*/
#ifndef __REPORT_H_
#define __REPORT_H_
#include <json-c/json.h>
#include "common.h"
#include "times.h"
#include "config.h"
void create_encoding_bulkdata_report(struct profile *profile, char **report);
void create_failed_report(struct profile *profile, char **report);
#endif /* __REPORT_H_ */

View File

@@ -1,62 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "times.h"
const char *bulkdata_get_time(void)
{
static char local_time[64];
time_t t_time = time(NULL);
struct tm *t_tm = localtime(&t_time);
if (t_tm == NULL)
return NULL;
if (strftime(local_time, sizeof(local_time),"Date: %a, %d %b %Y %X%z GMT", t_tm) == 0)
return NULL;
return local_time;
}
void get_time_stamp(const char *format, char **timestamp)
{
time_t now = time(NULL);
if (strcmp(format, "unix") == 0) {
asprintf(timestamp, "%ld", now);
} else if (strcmp(format, "iso8601") == 0) {
char buf[32] = {0};
struct tm *ts = localtime(&now);
strftime(buf, sizeof(buf), "%Y-%m-%dT%H:%M:%S%Z", ts);
asprintf(timestamp, "%s", buf);
} else
timestamp = NULL;
}
unsigned int get_next_period(time_t time_reference, int reporting_interval)
{
unsigned int next_period;
time_t now = time(NULL);
if (now > time_reference)
next_period = reporting_interval - ((now - time_reference) % reporting_interval);
else
next_period = (time_reference - now) % reporting_interval;
if (next_period == 0)
next_period = reporting_interval;
return next_period;
}

View File

@@ -1,19 +0,0 @@
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* Copyright (C) 2020 iopsys Software Solutions AB
* Author: Amin Ben Ramdhane <amin.benramdhane@pivasoftware.com>
*
*/
#ifndef __TIMES_H
#define __TIMES_H
const char *bulkdata_get_time(void);
void get_time_stamp(const char *format, char **timestamp);
unsigned int get_next_period(time_t time_reference, int reporting_interval);
#endif /* __TIMES_H */

38
bulut/Makefile Normal file
View File

@@ -0,0 +1,38 @@
#
# Copyright (C) 2019 IOPSYS
#
include $(TOPDIR)/rules.mk
PKG_NAME:=bulut
PKG_VERSION:=0.2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://dev.iopsys.eu/bulut/bulut-gw-client.git
PKG_SOURCE_VERSION:=227700c44817afa2c392fa08bf4cf70fa6177f01
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_MIRROR_HASH:=skip
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/bulut
CATEGORY:=Utilities
DEPENDS:=
TITLE:=bulut
endef
TARGET_CFLAGS += \
-I$(STAGING_DIR)/usr/include
define Package/bulut/description
obuspa keys
endef
define Package/bulut/install
$(CP) $(PKG_BUILD_DIR)/files/* $(1)/
endef
$(eval $(call BuildPackage,bulut))

View File

@@ -1,7 +1,4 @@
#!/bin/sh /etc/rc.common
#
# Copyright (C) 2015 inteno.org
#
START=71
USE_PROCD=1

View File

@@ -1,53 +0,0 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=cifsd-tools
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/namjaejeon/cifsd-tools.git
PKG_SOURCE_DATE:=2019-02-14
PKG_SOURCE_VERSION:=a7d7dfc40524b88dbcb2052034a75f446b3cefdd
PKG_MIRROR_HASH:=a74f95a79c3cdcc78e66c080729141abee0d821e21a326d88b11d849738314fb
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_INSTALL:=1
PKG_FIXUP:=autoreconf
PKG_REMOVE_FILES:=autogen.sh aclocal.m4
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/cifsd-tools
SECTION:=net
CATEGORY:=Network
SUBMENU:=Filesystem
TITLE:=Kernel CIFS/SMB server support and userspace tools
DEPENDS:=+kmod-fs-cifsd +glib2 +libnl-core +libnl-genl $(ICONV_DEPENDS)
endef
define Package/cifsd-tools/description
Userspace tools (cifsd, cifsadmin) for the CIFS/SMB kernel fileserver.
The config file location is /etc/cifs/smb.conf
endef
define Package/cifsd-tools/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libcifsdtools.so* $(1)/usr/lib/
$(INSTALL_DIR) $(1)/etc/cifs
$(INSTALL_CONF) $(PKG_BUILD_DIR)/smb.conf.example $(1)/etc/cifs
$(INSTALL_DIR) $(1)/etc/config
$(INSTALL_CONF) ./files/cifsd.config $(1)/etc/config/cifsd
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/cifsd.init $(1)/etc/init.d/cifsd
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/{cifsadmin,cifsd} $(1)/usr/sbin/
endef
$(eval $(call BuildPackage,cifsd-tools))

View File

@@ -1,9 +0,0 @@
config global 'global'
option server_string 'CIFSD on OpenWRT'
option ipc_timeout '8' # IPC timeout is used as a workaround for uninterruptible sleep until this is fixed upstream.
config share
option name 'share'
option comment 'Default guest share'
option path '/mnt'
option guest_ok 'yes'

View File

@@ -1,161 +0,0 @@
#!/bin/sh /etc/rc.common
START=90
USE_PROCD=1
PROG=/usr/sbin/cifsd
USER_DB=/etc/cifs/cifsdpwd.db
CIFS_ADMIN=cifsadmin
EXTRA_COMMANDS="users"
EXTRA_HELP=" users Show list of users created by cifsadmin"
users() {
[ -f "$USER_DB" ] && cut -d ':' $USER_DB -f1 || \
printf "No users available.\n"
}
validate_cifsd_global() {
uci_validate_section cifsd global global \
'server_string:string' \
'workgroup:string' \
'netbios_name:string' \
'interface:string' \
'ipc_timeout:uinteger'
}
validate_cifsd_share() {
uci_validate_section cifsd share "${1}" \
'name:string' \
'comment:string' \
'path:string' \
'guest_ok:bool' \
'read_only:bool' \
'allow_hosts:list' \
'deny_hosts:list' \
'users:string' \
'invalid_users:string' \
'create_mask:string' \
'dir_mask:string' \
'max_connections:uinteger' \
'veto_files:list'
}
validate_cifsd_users() {
uci_validate_section cifsd users "${1}" \
'user:string' \
'password:string' \
'desc:string'
}
load_cifsd_global() {
local server_string
local workgroup
local netbios_name
local ipc_timeout
validate_cifsd_global
echo -e "[global]" >> /var/etc/cifsd.conf
[ -n "$server_string" ] && echo -e "\tserver string = $server_string" >> /var/etc/cifsd.conf
[ -n "$workgroup" ] && echo -e "\tworkgroup = $workgroup" >> /var/etc/cifsd.conf
[ -n "$netbios_name" ] && echo -e "\tnetbios name = $netbios_name" >> /var/etc/cifsd.conf
[ -n "$ipc_timeout" ] && echo -e "\tipc timeout name = $ipc_timeout" >> /var/etc/cifsd.conf || \
echo -e "\tipc timeout name = 8" >> /var/etc/cifsd.conf
}
load_cifsd_share() {
local name
local comment
local path
local guest_ok
local allow_hosts
local deny_hosts
local users
local invalid_users
local max_connections
local veto_files
local dir_mask
local create_mask
local read_only
validate_cifsd_share ${1}
if [ -z "$name" -o -z "$path" ]; then
logread -t ${0} "Missing name or path."
return
fi
echo -e "\n[$name]\n\tpath = $path" >> /var/etc/cifsd.conf
[ -n "$comment" ] && echo -e "\tcomment = $comment" >> /var/etc/cifsd.conf
[ -n "$guest_ok" ] && echo -e "\tguest ok = $guest_ok" >> /var/etc/cifsd.conf
[ -n "$allow_hosts" ] && echo -e "\tallow hosts = $allow_hosts" >> /var/etc/cifsd.conf
[ -n "$deny_hosts" ] && echo -e "\tdeny hosts = $deny_hosts" >> /var/etc/cifsd.conf
[ -n "$users" ] && echo -e "\tvalid users = $users" >> /var/etc/cifsd.conf
[ -n "$invalid_users" ] && echo -e "\tinvalid users = $invalid_users" >> /var/etc/cifsd.conf
[ -n "$max_connections" ] && echo -e "\tmax connections = $max_connections" >> /var/etc/cifsd.conf
[ -n "$create_mask" ] && echo -e "\tcreate mask = $create_mask" >> /var/etc/cifsd.conf
[ -n "$dir_mask" ] && echo -e "\tdirectory mask = $dir_mask" >> /var/etc/cifsd.conf
if [ -n "$read_only" ]; then
echo -e "\tread only = $read_only" >> /var/etc/cifsd.conf
if [ "${read_only}" -eq "0" ]; then
echo -e "\twrite ok = 1" >> /var/etc/cifsd.conf
fi
else
echo -e "\twrite ok = 1" >> /var/etc/cifsd.conf
fi
[ -n "$veto_files" ] && echo -e "\tveto files = $veto_files" >> /var/etc/cifsd.conf
}
load_cifsd_users() {
local user
local password
local desc
validate_cifsd_users ${1}
[ $(which ${CIFS_ADMIN}) ] || {
logread -t ${0} "${CIFS_ADMIN} tools is not available"
return;
}
cifsadmin -a "${user}" -p "${password}"
if [ "$?" -ne 0 ]; then
logread -t ${0} "Failed to create/update ${user}"
fi
}
service_triggers()
{
procd_add_config_trigger "config.change" "cifsd" /etc/init.d/cifsd restart
}
init_config() {
[ -f "/var/etc/cifsd.conf" ] && rm /var/etc/cifsd.conf
config_load cifsd
load_cifsd_global
# Delete existing users
[ -f "${USER_DB}" ] && {
rm -f "${USER_DB}"
}
config_foreach load_cifsd_users users
config_foreach load_cifsd_share share
}
start_service() {
. /lib/functions.sh
init_config
[ ! "$(grep cifsd /proc/modules)" ] && modprobe cifsd
procd_open_instance
procd_set_param command /usr/bin/env LANG=en_US.UTF-8 $PROG -c /var/etc/cifsd.conf
procd_set_param respawn
procd_close_instance
}
stop_service() {
killall cifsd
# IPC timeout will kill the remaining processes.
}

View File

@@ -1,73 +0,0 @@
For some reason, fs.h on Inteno kernel is missing inode->i_mutex nesting subclasses for the lock validator
which is triggering implicit declaration error. To workaround this hardcore use of mutex_lock by removing
kernel version check.
---
--- a/vfs.c
+++ b/vfs.c
@@ -544,15 +544,9 @@ int cifsd_vfs_setattr(struct cifsd_work
attrs->ia_valid |= ATTR_CTIME;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock(inode);
- err = notify_change(dentry, attrs, NULL);
- inode_unlock(inode);
-#else
mutex_lock(&inode->i_mutex);
err = notify_change(dentry, attrs, NULL);
mutex_unlock(&inode->i_mutex);
-#endif
if (update_size)
put_write_access(inode);
@@ -753,11 +747,8 @@ int cifsd_vfs_remove_file(char *name)
if (!dir->d_inode)
goto out;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock_nested(dir->d_inode, I_MUTEX_PARENT);
-#else
mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
-#endif
+
dentry = lookup_one_len(last, dir, strlen(last));
if (IS_ERR(dentry)) {
err = PTR_ERR(dentry);
@@ -783,11 +774,7 @@ int cifsd_vfs_remove_file(char *name)
dput(dentry);
out_err:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_unlock(dir->d_inode);
-#else
mutex_unlock(&dir->d_inode->i_mutex);
-#endif
out:
path_put(&parent);
return err;
@@ -1302,11 +1289,8 @@ int cifsd_vfs_unlink(struct dentry *dir,
int err = 0;
dget(dentry);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock(dir->d_inode);
-#else
mutex_lock(&dir->d_inode->i_mutex);
-#endif
+
if (!dentry->d_inode || !dentry->d_inode->i_nlink) {
err = -ENOENT;
goto out;
@@ -1318,11 +1302,8 @@ int cifsd_vfs_unlink(struct dentry *dir,
err = vfs_unlink(dir->d_inode, dentry, NULL);
out:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_unlock(dir->d_inode);
-#else
mutex_unlock(&dir->d_inode->i_mutex);
-#endif
+
dput(dentry);
if (err)
cifsd_debug("failed to delete, err %d\n", err);

View File

@@ -1,60 +0,0 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=cifsd
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/namjaejeon/cifsd.git
PKG_SOURCE_DATE:=2019-03-05
PKG_SOURCE_VERSION:=e1715ce125d55b125b1b58a6f1819ef8e54cc3ba
PKG_MIRROR_HASH:=521585ebfda0ecc02372b1a38ebf762fbbcead6d0b754a47599a5bf6bfdb3fb6
PKG_MAINTAINER:=Andy Walsh <andy.walsh44+github@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
include $(INCLUDE_DIR)/package.mk
define KernelPackage/fs-cifsd
SUBMENU:=Filesystems
TITLE:=CIFS/SMB kernel server support
FILES:=$(PKG_BUILD_DIR)/cifsd.$(LINUX_KMOD_SUFFIX)
DEPENDS+= \
+kmod-nls-base \
+kmod-nls-utf8 \
+kmod-crypto-md4 \
+kmod-crypto-md5 \
+kmod-crypto-hmac \
+kmod-crypto-ecb \
+kmod-crypto-des \
+kmod-crypto-sha256 \
+kmod-crypto-cmac \
+kmod-crypto-sha512 \
+kmod-crypto-aead \
+kmod-crypto-ccm
KCONFIG:= \
CONFIG_KEYS=y \
CONFIG_CRYPTO_ARC4=y
endef
define KernelPackage/fs-cifsd/description
Kernel module for a CIFS/SMBv2,3 fileserver.
endef
TARGET_CFLAGS+= -DCONFIG_CIFSD_ACL
MAKE_OPTS:=\
ARCH="$(LINUX_KARCH)" \
CROSS_COMPILE="$(TARGET_CROSS)" \
M="$(PKG_BUILD_DIR)"
define Build/Compile
$(MAKE) -C "$(LINUX_DIR)" \
$(MAKE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
CONFIG_CIFS_SERVER=m \
modules
endef
$(eval $(call KernelPackage,fs-cifsd))

View File

@@ -1,69 +0,0 @@
--- a/vfs.c
+++ b/vfs.c
@@ -544,15 +544,9 @@ int cifsd_vfs_setattr(struct cifsd_work
attrs->ia_valid |= ATTR_CTIME;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock(inode);
- err = notify_change(dentry, attrs, NULL);
- inode_unlock(inode);
-#else
mutex_lock(&inode->i_mutex);
err = notify_change(dentry, attrs, NULL);
mutex_unlock(&inode->i_mutex);
-#endif
if (update_size)
put_write_access(inode);
@@ -753,11 +747,8 @@ int cifsd_vfs_remove_file(char *name)
if (!dir->d_inode)
goto out;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock_nested(dir->d_inode, I_MUTEX_PARENT);
-#else
mutex_lock_nested(&dir->d_inode->i_mutex, I_MUTEX_PARENT);
-#endif
+
dentry = lookup_one_len(last, dir, strlen(last));
if (IS_ERR(dentry)) {
err = PTR_ERR(dentry);
@@ -783,11 +774,7 @@ int cifsd_vfs_remove_file(char *name)
dput(dentry);
out_err:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_unlock(dir->d_inode);
-#else
mutex_unlock(&dir->d_inode->i_mutex);
-#endif
out:
path_put(&parent);
return err;
@@ -1302,11 +1289,8 @@ int cifsd_vfs_unlink(struct dentry *dir,
int err = 0;
dget(dentry);
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_lock(dir->d_inode);
-#else
mutex_lock(&dir->d_inode->i_mutex);
-#endif
+
if (!dentry->d_inode || !dentry->d_inode->i_nlink) {
err = -ENOENT;
goto out;
@@ -1318,11 +1302,8 @@ int cifsd_vfs_unlink(struct dentry *dir,
err = vfs_unlink(dir->d_inode, dentry, NULL);
out:
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
- inode_unlock(dir->d_inode);
-#else
mutex_unlock(&dir->d_inode->i_mutex);
-#endif
+
dput(dentry);
if (err)
cifsd_debug("failed to delete, err %d\n", err);

View File

@@ -1,40 +0,0 @@
#
# Copyright (C) 2019 iopsys Software Solutions AB
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=crashlog
PKG_VERSION:=1.0.0
PKG_RELEASE:=1
PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
PKG_LICENSE:=GPLv2
PKG_LICENSE_FILES:=none
include $(INCLUDE_DIR)/package.mk
define Package/crashlog
CATEGORY:=Utilities
TITLE:=Handling kernel crash logs
endef
define Package/crashlog/description
Handling kernel crash logs.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./files/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
endef
define Package/crashlog/install
$(CP) ./files/* $(1)/
endef
$(eval $(call BuildPackage,crashlog))

Binary file not shown.

View File

@@ -1,11 +0,0 @@
#!/bin/sh /etc/rc.common
START=01
start()
{
if [ -e /proc/sys/kernel/core_pattern ]
then
echo "|/sbin/logcore %e %s" > /proc/sys/kernel/core_pattern
fi
}

View File

@@ -1,55 +0,0 @@
#!/bin/sh /etc/rc.common
START=99
send_log()
{
nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.model_name)
fam=$(db get hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion)
server=$(/sbin/uci get system.crashlog.server)
while true
do
scp -S /usr/sbin/logssh /proc/last_kmsg log@${server}:log/${fam}_${hw}_${sw}_${nr}
if [ $? == 0 ]
then
break;
fi
# wait for another minute then try again
sleep 60
done
}
fill_in_default()
{
/sbin/uci add system log
/sbin/uci rename system.@log[-1]=crashlog
/sbin/uci set system.crashlog.enable=no
/sbin/uci set system.crashlog.server="crashlog.iopsys.eu"
/sbin/uci commit
}
boot()
{
# is crashlog enabled ?
enable=$(/sbin/uci get system.crashlog.enable)
case $enable in
0|no|NO|false|FALSE)
exit 0
;;
"")
fill_in_default
exit 0
;;
esac
# is this boot a result from a crash ?
reason=$(cat /etc/boot_reason)
case $reason in
HW|WD)
send_log&
;;
esac
}

View File

@@ -1,60 +0,0 @@
#! /bin/sh
TMP_CORE=/tmp/new_core
# first test if we can contact the log server.
# if not abort directly the core file takes up memory
alive()
{
ping -c1 $server
if [ $? != 0 ]
then
# drain core file from kernel
cat >/dev/null
exit 0
fi
}
fill_in_default()
{
/sbin/uci add system log
/sbin/uci rename system.@log[-1]=corelog
/sbin/uci set system.corelog.enable=no
/sbin/uci set system.corelog.server="corelog.iopsys.eu"
/sbin/uci commit
}
# is corelog enabled ?
enable=$(/sbin/uci get system.corelog.enable)
case $enable in
0|no|NO|false|FALSE)
# drain core file from kernel
cat >/dev/null
exit 0
;;
"")
fill_in_default
exit 0
;;
esac
server=$(/sbin/uci get system.corelog.server)
alive
# dump out the core to disk we need this as scp needs a size before we send data
# and this is the only way to know how much data there is
cat >$TMP_CORE
# in case filesystem/memory is full at least kill the core in the kernel memory should give us some
# more memory to work with. normally this would do nothing.
cat >/dev/null
nr=$(db get hw.board.serial_number)
hw=$(db get hw.board.model_name)
fam=$(hw.board.iopVerFam)
sw=$(db get hw.board.iopVersion)
scp -S /usr/sbin/logssh $TMP_CORE log@${server}:log/core_${1}_${2}_${fam}_${hw}_${sw}_${nr}
rm $TMP_CORE

View File

@@ -1,6 +0,0 @@
#!/bin/sh
# we need to have the -y option to dropbear to not halt the scp when
# transfering the log file to a new server for the first time.
# since we already need this also put in the keyfile
ssh -y -i /etc/dropbear/logid $@

View File

@@ -1,42 +0,0 @@
Install scp server.
Create a user account on a server and make sure it's possible to login to it
using ssh.
For now the user has to be called "log"
USER is the user name of the account
HOME is the user home directory.
Both should be changed to the correct value in all following example commands.
create HOME/bin
Put scp_upload in HOME/bin
make it executable "chmod a+x HOME/bin/scp_upload"
create home/.ssh (observer the dot .shh)
create an empty file HOME/.ssh/authorized_keys
-------------------------------
Now everyhting is setup for use but we have not added any clients.
What we need is the public key for the clients.
For dropbear "dropbearkey -y -f files/etc/dropbear/logid" will generate the public key.
----------
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCwn9RaDAzxW1dTmIhXgFBnpi1lhj8xhYpCVQiPxxdk9IEmH8zjo4y9j3sPkqKOlRnkwjpZIpLEKBnpQTwVIMCU/AG7nDJX3OH9RfS9mLJQLfFL8HyGCyqDezFWldbyovhJZvdUeK4tAXJWv2W3OVHiz2L8IlncBgP/E9DJElsyhhQHsM96UE6tBkXsvXkoDbMSYXFcLbgiUwBKfmM2BF/aPDL45iznGur7/2j9v95PwJ0gtMu9jjNRq+pXCXhTh3bsnczm0MpZC1aiRc9nJAeGIMmhrf15E4jBKgTnrstzJxGVAdajKeR954KcNsS33cS2Wmui2YjmPbBXjqf1frzJ log@inteno
----------
The public key should be just one line. Add that line to the
HOME/.ssh/authorized_keys file on the scp server. Then add the follwoing as
the first text on the same line. that is insert before the key data.
command="HOME/bin/scp_upload",no-port-forwarding,no-agent-forwarding,no-X11-forwarding
Do not forget to change HOME to the correct value for the server and there
should be one space separating the key data and the above text.
---------------------------------
Now test to make sure that you can upload new files, not download files
and not overwrite files from the client.

View File

@@ -1,53 +0,0 @@
#! /bin/bash
# authorized_keys command="/home/boxi/my_scp",no-port-forwarding,no-agent-forwarding,no-X11-forwarding
val=`expr match "$SSH_ORIGINAL_COMMAND" "scp"`
if [ $val != 3 ]
then
echo "only scp is allowed for this rsa key"
exit 1
fi
#strip out "scp" as getopts barf on anything not an option
args=${SSH_ORIGINAL_COMMAND:3}
# we must set args to positional paramters otherwise it's next to impossible
# to get to the rest of the line that is not arguments.
set -- $args
while getopts "rftdvpq" Option
do
case $Option in
r ) echo "recursive not allowed";exit 1;;
f ) echo "reading files not allowed";exit 1;;
t ) ;;
d ) ;;
v ) ;;
p ) ;;
q ) ;;
* ) ;; # Default.
esac
done
shift $(($OPTIND - 1))
file="$*"
dir=$(dirname "$file")
if [ "$dir" != "log" ]
then
echo "only allowed to write to log/"
exit 1
fi
# try to create uniq files
EXTRA=$((0))
while [ -e "${file}_${EXTRA}" ]
do
EXTRA=$((EXTRA +1))
done
logger -t scp_upload "${SSH_ORIGINAL_COMMAND}_${EXTRA}"
exec ${SSH_ORIGINAL_COMMAND}_${EXTRA}

11
dectmngr/Config.in Normal file
View File

@@ -0,0 +1,11 @@
if PACKAGE_dectmngr
menu "Configuration"
config ENABLE_LINE_SETTINGS_EXTENSION
bool "Enable Line Settings List extension "
default y
endmenu
endif

View File

@@ -1,5 +1,5 @@
#
# Copyright (C) 2020 iopsys Software Solutions AB
# Copyright (C) 2021 IOPSYS Software Solutions AB
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
@@ -7,17 +7,18 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=dectmngr
PKG_RELEASE:=1
PKG_VERSION:=1.0
PKG_RELEASE:=3
PKG_VERSION:=3.5.1
LOCAL_DEV=1
LOCAL_DEV=0
ifneq ($(LOCAL_DEV),1)
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/dectmngr.git
PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=2c8990fd5275d469e8ab6c7a99e17fe0a56052ea
PKG_SOURCE_VERSION:=8c94908eb230dc453dd2f5575be6c06b086b2e7d
PKG_MIRROR_HASH:=skip
endif
PKG_LICENSE:=GPLv2
PKG_LICENSE:=PROPRIETARY
PKG_LICENSE_FILES:=LICENSE
RSTRIP:=true
@@ -33,36 +34,41 @@ include $(INCLUDE_DIR)/package.mk
define Package/$(PKG_NAME)
CATEGORY:=Utilities
TITLE:=DECT Manager
DEPENDS:= +libubox +ubus +libpicoevent
DEPENDS:= +libubox +ubus +uci +libxml2 +libjson-c
endef
define Package/$(PKG_NAME)/description
DECT manager is a daemon that provides UBUS RPC objects and sends UBUS events for communication with the DECT chip.
endef
define Package/$(PKG_NAME)/config
source "$(SOURCE)/Config.in"
endef
ifeq ($(LOCAL_DEV),1)
define Build/Prepare
$(CP) -r src/* $(PKG_BUILD_DIR)/
rsync -av --exclude=.* ~/git/voip/dectmngr/* $(PKG_BUILD_DIR)/
endef
endif
MAKE_FLAGS += \
CFLAGS+="-Wall"
TARGET_CFLAGS += \
-Wall \
-Werror \
-I$(STAGING_DIR)/usr/include/libxml2
ifeq ($(CONFIG_ENABLE_LINE_SETTINGS_EXTENSION),y)
TARGET_CFLAGS += -DENABLE_LINE_SETTINGS_EXTENSION
endif
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_DIR) $(1)/usr/lib
$(INSTALL_DIR) $(1)/etc/dect/
$(INSTALL_DIR) $(1)/etc/config/
$(INSTALL_DIR) $(1)/etc/init.d/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_DIR) $(1)/lib/upgrade/keep.d
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/testout/dectmngr $(1)/usr/sbin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/app/dectmngr $(1)/usr/sbin/
$(STRIP) $(1)/usr/sbin/dectmngr
$(INSTALL_BIN) $(PKG_BUILD_DIR)/test/testout/libdect.so $(1)/usr/lib/
$(STRIP) $(1)/usr/lib/libdect.so
#$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/target.bin $(1)/etc/dect/
#$(INSTALL_BIN) $(PKG_BUILD_DIR)/files/dect $(1)/etc/init.d/
#$(CP) ./files/dect.config $(1)/etc/config/dect
$(CP) ./files/etc/* $(1)/etc/
$(INSTALL_DATA) ./files/lib/upgrade/keep.d/dect $(1)/lib/upgrade/keep.d/dect
endef
$(eval $(call BuildPackage,$(PKG_NAME)))

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

View File

@@ -1,4 +0,0 @@
9c5962fc5bdef309d15cf76dd2678297 out4/Images/PRODUCT_IOPSYS/DCX81_fw_c/MOD/USB/DCX81_MOD_USB.ITCM
17d4a7e4021c6089104c28c228245df2 out4/Images/PRODUCT_IOPSYS/DCX81_fw_c/MOD/USB/DCX81_MOD_USB.ITCM_L
d32e2a3dd05f4d1933eac77cfff091ba out4/Images/PRODUCT_IOPSYS/DCX81_fw_c/MOD/USB/DCX81_MOD_USB.bin
477bfa4e91914db4c0078b31a6cdf208 out4/Images/PRODUCT_IOPSYS/DCX81_fw_c/MOD/USB/DCX81_MOD_USB.BOOTLOADER.bin

View File

@@ -1 +0,0 @@
{0xee,0xb7,0x3c,0x8f,0x44,0xe1,0xad,0x87,0x53,0xc8,0x57,0x4e,0x08,0x6d,0x87,0x9f}

View File

@@ -1,984 +0,0 @@
<html>
<head>
<title>EEPROM map </title>
<style>
<!--
th {
font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: bold;
}
td {
font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
body {
background-color: #FFFFFF;
}
-->
</style>
</head>
<body>
<h1>EEPROM map bsd02eep.h-GIT</h1>
<table border="2" cellspacing="2" width="100%" rules="both" align="center" style=" font-size: 10px;
font-family: Verdana, Arial, Helvetica, sans-serif;
background-color: #C9FFDA;
border-collapse: collapse;
border: 5px solid white">
<tbody>
<tr style=" font-size: 12px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-style: bold;
background-color: #78FF95"><td>Name</td><td align="center">Offset</td><td>Comment</td><td width="100">Default</td></tr>
<tr><td>SD02_RESERVED1[4]</td><td align="center">0(0x0)</td><td> L4 RESERVED1 </td><td width="100"></td></tr>
<tr><td>SD02_RESERVED2[5]</td><td align="center">4(0x4)</td><td> L5 RESERVED2 </td><td width="100"></td></tr>
<tr><td>SD02_SUB_GFSK[10]</td><td align="center">9(0x9)</td><td> L10 </td><td width="100">0x80,0x80,0x80,0x80,0x80,
0x80,0x80,0x80,0x80,0x80,
</td></tr>
<tr><td>SD02_PREAM_NORMAL</td><td align="center">19(0x13)</td><td> L1 </td><td width="100">0x65,
</td></tr>
<tr><td>SD02_TEST_FLAGS</td><td align="center">20(0x14)</td><td> L1 If set: bit 0: BMP Driver Recover disabled
bit 1: Watchdog not enabled
bit 3: disable activity led </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_EMC_MODEL[3]</td><td align="center">21(0x15)</td><td> L3 EMC number and model, transfered in MODEL_ID IE </td><td width="100">0x0F,0xEB,0x02,
</td></tr>
<tr><td>SD02_RVREF</td><td align="center">24(0x18)</td><td> L1 </td><td width="100">0x1F,
</td></tr>
<tr><td>SD02_TEST_MODE</td><td align="center">25(0x19)</td><td> L1 Enter TBR6/10 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_RXTUN</td><td align="center">26(0x1A)</td><td> L1 FR </td><td width="100">0x70,
</td></tr>
<tr><td>SD02_AUXBGPROG</td><td align="center">27(0x1B)</td><td> L1 AUXBGPROG (Bandgap calibration value) </td><td width="100">0x66,
</td></tr>
<tr><td>SD02_RVDDC</td><td align="center">28(0x1C)</td><td> L1 </td><td width="100">0x97,
</td></tr>
<tr><td>SD02_POWER_CONTROL</td><td align="center">29(0x1D)</td><td> L1 Power Control: nibble usage (0xsw) where s is ARM clock speed and w the number of
pflash waitstates.
Note: For ICELP, the default ARM clock
speed is 64 (96MHz and 4 wait states).
Note: For VegaOne s is used as an index to
recommended clock settings (see
VegaOne_AHB_PLLDIV[16] in file
cdr17tim.c).
For VegaOne: bit 3 is used to select if flash
running in syncrounous (asyncronous = 0
syncronous = 1)</td><td width="100">0x2,
</td></tr>
<tr><td>SD02_WDCT_HOP_CONTROL</td><td align="center">30(0x1E)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_WDCT_QUAL_CONTROL</td><td align="center">31(0x1F)</td><td> L1 WDCT Quality Control: When the most significant bit of this byte is
set to 1, the hop sequence of 19 and frequency
substitution can be disabled.</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_US_DECT</td><td align="center">32(0x20)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_MAX_USABLE_RSSI</td><td align="center">33(0x21)</td><td> L1 </td><td width="100">0x78,
</td></tr>
<tr><td>SD02_LOWER_RSSI_LIMIT</td><td align="center">34(0x22)</td><td> L1 </td><td width="100">0x50,
</td></tr>
<tr><td>SD02_V22_VOL_HIGH</td><td align="center">35(0x23)</td><td> L1 V22 Volume Low - Sidetone </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_V22_VOL_LOW</td><td align="center">36(0x24)</td><td> L1 V22 Volume High - Sidetone </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_DSP_CID_THRES</td><td align="center">37(0x25)</td><td> L1 CID Threshold</td><td width="100">0x51,
</td></tr>
<tr><td>SD02_DSP_PATCH[50]</td><td align="center">38(0x26)</td><td> L50 DSP patch area 8 entries, each defines a flexible value for 1
DSP parameter.
Structure:
1st Word: DSP instance (low, high byte)
2nd Word: offset (low, high byte)
3rd Word: value (low, high byte)</td><td width="100">0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_ARM_PATCH[40]</td><td align="center">88(0x58)</td><td> L40: 0=unused ARM patch area (5 entries): 5 X 2 X4 Bytes to modify any 30 bit ARM
address location after protocol stack initialisation:
1st Word: address (big endian)
2nd Word: value (big endian)
The 2 MSBits of the address define the
write access type:
00: Word access (u32)
01: Halfword access (u16)
10: Byte access (u8) </td><td width="100">0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_DSP_CLOCK</td><td align="center">128(0x80)</td><td> L1 </td><td width="100">0x02,
</td></tr>
<tr><td>SD02_FWROM_BOARDER</td><td align="center">129(0x81)</td><td> L1 </td><td width="100">0x1D,
</td></tr>
<tr><td>SD02_PORBGCFG</td><td align="center">130(0x82)</td><td> L1 PORBGCFG (POR calibration value) </td><td width="100">0xC0,
</td></tr>
<tr><td>SD02_FPTR</td><td align="center">131(0x83)</td><td> L1 MSB used to enable/disable use of this parameter 0=enable </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_FULL_POWER</td><td align="center">132(0x84)</td><td> DTPC Full Power </td><td width="100">0x7F,
</td></tr>
<tr><td>SD02_LOW_POWER</td><td align="center">133(0x85)</td><td> DTPC Low(medium) Power </td><td width="100">0xC4,
</td></tr>
<tr><td>SD02_LOWEST_POWER</td><td align="center">134(0x86)</td><td> DTPC Lowest Power</td><td width="100">0x03,
</td></tr>
<tr><td>SD02_AEC_LSP_ATTEN_RANGE[2]</td><td align="center">135(0x87)</td><td> L2 AEC_lsp_atten_range For all AEC parameters see User Manual
Vega-Family ARM DSP RELEASE V7.5
(or higher)</td><td width="100">0x00, 0x08,
</td></tr>
<tr><td>SD02_AEC_NLMS_ERL[2]</td><td align="center">137(0x89)</td><td> L2 </td><td width="100">0x40, 0x00,
</td></tr>
<tr><td>SD02_AEC_X_CLIP[2]</td><td align="center">139(0x8B)</td><td> L2 </td><td width="100">0x0F, 0x1F,
</td></tr>
<tr><td>SD02_AEC_ECHO_RATIO[2]</td><td align="center">141(0x8D)</td><td> L2 </td><td width="100">0x00, 0x01,
</td></tr>
<tr><td>SD02_AEC_DENS_GAMMA_E_HIGH[2]</td><td align="center">143(0x8F)</td><td> L2 </td><td width="100">0xCC, 0x01,
</td></tr>
<tr><td>SD02_AEC_DENS_GAMMA_E_LOW[2]</td><td align="center">145(0x91)</td><td> L2 </td><td width="100">0x80, 0x00,
</td></tr>
<tr><td>SD02_AEC_DENS_GAMMA_E_DT[2]</td><td align="center">147(0x93)</td><td> L2 </td><td width="100">0x66, 0x01,
</td></tr>
<tr><td>SD02_AEC_DENS_GAMMA_N[2]</td><td align="center">149(0x95)</td><td> L2 </td><td width="100">0x00, 0x01,
</td></tr>
<tr><td>SD02_AEC_DENS_TAIL_ALPHA[2]</td><td align="center">151(0x97)</td><td> L2 </td><td width="100">0x66, 0x66,
</td></tr>
<tr><td>SD02_AEC_DENS_TAIL_PORTION[2]</td><td align="center">153(0x99)</td><td> L2 </td><td width="100">0xD7, 0x03,
</td></tr>
<tr><td>SD02_AEC_DENS_NL_ATTEN[2]</td><td align="center">155(0x9B)</td><td> L2 </td><td width="100">0x00, 0x08,
</td></tr>
<tr><td>SD02_AEC_DENS_CNI_LEVEL[2]</td><td align="center">157(0x9D)</td><td> L2 </td><td width="100">0x00, 0x20,
</td></tr>
<tr><td>SD02_AEC_MODE[2]</td><td align="center">159(0x9F)</td><td> L2 </td><td width="100">0xF7, 0x00,
</td></tr>
<tr><td>SD02_AEC_ECHO_PATH_DELAY[2]</td><td align="center">161(0xA1)</td><td> L2 </td><td width="100">0x00, 0x00,
</td></tr>
<tr><td>SD02_DTPC_ENABLE</td><td align="center">163(0xA3)</td><td></td><td width="100">0x01,
</td></tr>
<tr><td>SD02_RSSI_TIMER</td><td align="center">164(0xA4)</td><td></td><td width="100">0x64,
</td></tr>
<tr><td>SD02_DRPC_RSSI_THRESH</td><td align="center">165(0xA5)</td><td></td><td width="100">0x80,
</td></tr>
<tr><td>SD02_DRPC_RSSI_CORRECT</td><td align="center">166(0xA6)</td><td></td><td width="100">0x1C,
</td></tr>
<tr><td>SD02_RVR2C_INIT</td><td align="center">167(0xA7)</td><td> L1 </td><td width="100">0x40,
</td></tr>
<tr><td>SD02_FI_TRIG_GPIO</td><td align="center">168(0xA8)</td><td> L1 </td><td width="100">0x0,
</td></tr>
<tr><td>SD02_RF19APU_SUPPORT_FCC</td><td align="center">169(0xA9)</td><td> L1 </td><td width="100">0x0,
</td></tr>
<tr><td>SD02_RF19APU_TC_DELAY</td><td align="center">170(0xAA)</td><td> L1 </td><td width="100">0x3,
</td></tr>
<tr><td>SD02_RF19APU_GAP_DELAY</td><td align="center">171(0xAB)</td><td> L1 </td><td width="100">0x8,
</td></tr>
<tr><td>SD02_RF19APU_GAP_DELAY_FADOFF</td><td align="center">172(0xAC)</td><td> L1 </td><td width="100">0xA,
</td></tr>
<tr><td>SD02_RF19APU_TRSSI_DELAY</td><td align="center">173(0xAD)</td><td> L1 </td><td width="100">0x25,
</td></tr>
<tr><td>SD02_RF19APU_TRSSI_DELAY_FADOFF</td><td align="center">174(0xAE)</td><td> L1 </td><td width="100">0x13,
</td></tr>
<tr><td>SD02_RF19APU_DEVIATION</td><td align="center">175(0xAF)</td><td> L1 </td><td width="100">0x13,
</td></tr>
<tr><td>SD02_RF19APU_ATEST</td><td align="center">176(0xB0)</td><td> L1 </td><td width="100">0xF,
</td></tr>
<tr><td>SD02_RF19APU_DTEST</td><td align="center">177(0xB1)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_RF19APU_PA2_COMP</td><td align="center">178(0xB2)</td><td> L1 </td><td width="100">0x3C,
</td></tr>
<tr><td>SD02_RF19APU_PA_ON</td><td align="center">179(0xB3)</td><td> L1 </td><td width="100">0x33,
</td></tr>
<tr><td>SD02_RF19APU_GAIN</td><td align="center">180(0xB4)</td><td> L1 </td><td width="100">0x0,
</td></tr>
<tr><td>SD02_RF19APU_MLSE</td><td align="center">181(0xB5)</td><td>L1 Bit Meaning 0 MLSE active
1 Dynamic MLSE active
2 MLSE CLK Polarity
3 MLSE deviation 0 <20> 288, 1 <20> 360
4 4 bit field giving MLSE delay in bits
5 If set to 0 <20> delay defaults to 9
6 <20>
7 <20>
</td><td width="100">0x1,
</td></tr>
<tr><td>SD02_RF19APU_KCALOVR</td><td align="center">182(0xB6)</td><td>L1 </td><td width="100">0x0,
</td></tr>
<tr><td>SD02_RF19APU_KCALOVR_LINEAR</td><td align="center">183(0xB7)</td><td>L1 Linear KCAL correction, 4 LSB A factor (KCALOVR_A) 4 MSB B factor (KCALOVR_B)</td><td width="100">0x88,
</td></tr>
<tr><td>SD02_RF19APU_BEACON_LP</td><td align="center">184(0xB8)</td><td>L1 Bit0 - Enable. Bit1-7 - Value of power when HS on cradle</td><td width="100">0xC1,
</td></tr>
<tr><td>SD02_RF19APU_GENERIC_ADD1[2]</td><td align="center">185(0xB9)</td><td> L2 </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_RF19APU_GENERIC_ADD2[2]</td><td align="center">187(0xBB)</td><td> L2 </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_RF19APU_GENERIC_ADD3[2]</td><td align="center">189(0xBD)</td><td> L2 </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_RF19APU_GENERIC_ADD4[2]</td><td align="center">191(0xBF)</td><td> L2 </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_RF19APU_GENERIC_CONTROL</td><td align="center">193(0xC1)</td><td>L1 bit [1:0] = control of SD02_RF19APU_GENERIC_ADD1
bit [3:2] = control of SD02_RF19APU_GENERIC_ADD2
bit [5:4] = control of
SD02_RF19APU_GENERIC_ADD3
bit [7:6] = control of SD02_RF19APU_GENERIC_ADD4
for each of the above:
if 0 (or 3): use the appropriate register as RF indirect mapping 0~256
if 1: use the appropriate register as direct space mapping 0 <20> 104
if 2: use the appropriate register as analog indirect space mapping 0 <20> 69
</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_FNR_N_LOW[2]</td><td align="center">194(0xC2)</td><td> L2 FNR SD02_FNR_N_LOW </td><td width="100">0x00,0x01,
</td></tr>
<tr><td>SD02_FNR_N_HIGH[2]</td><td align="center">196(0xC4)</td><td> L2 FNR SD02_FNR_N_HIGH </td><td width="100">0x40,0x01,
</td></tr>
<tr><td>SD02_FNR_NR_LIMIT[2]</td><td align="center">198(0xC6)</td><td> L2 FNR SD02_FNR_NR_LIMIT </td><td width="100">0x00,0x28,
</td></tr>
<tr><td>SD02_FNR_spDETCC[2]</td><td align="center">200(0xC8)</td><td> L2 FNR SD02_FNR_spDETCC </td><td width="100">0x00,0x02,
</td></tr>
<tr><td>SD02_FNR_Ton_detect[2]</td><td align="center">202(0xCA)</td><td> L2 FNR SD02_FNR_Ton_detect </td><td width="100">0x00,0x06,
</td></tr>
<tr><td>SD02_CR_OPTIONS</td><td align="center">204(0xCC)</td><td> L1 - Bit 0-1: Codec preferred (0-G726,1-G727,other reserved)
Bit 2: Action in Normal - unused
Bit 3: Action in Protected - unused
Bit 4: Opt G726 - activate improved - unused
Bit 5-6: Mode (0-Auto,1-Normal,2-Protected,3-Reserved) - not relevant in FT
Bit 7: Enable/Disable.
</td><td width="100">0x81,
</td></tr>
<tr><td>SD02_CR_SB_PATT</td><td align="center">205(0xCD)</td><td>L1 - Padding option for SB (i.e. nibble) either 4 bits or 8 bitsfor WB codecs </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_CR_FB_PATT</td><td align="center">206(0xCE)</td><td>L1 - Padding option for FB (i.e. all frame) either 4 bits or 8 bits for WB codecs </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_CR_START_MUTE_NR</td><td align="center">207(0xCF)</td><td>L1 - Number of errors to start full frame mute </td><td width="100">0x1E,
</td></tr>
<tr><td>SD02_CR_STOP_MUTE_NR</td><td align="center">208(0xD0)</td><td>L1 - Number of errors to stop full frame mute </td><td width="100">0x0F,
</td></tr>
<tr><td>SD02_CR_DECAY[2]</td><td align="center">209(0xD1)</td><td>L2 - First Byte - Decay MSB, Second byte : Decay LSB (in Q12) </td><td width="100">0x0F,
0xD4,
</td></tr>
<tr><td>SD02_CR_SATURATION</td><td align="center">211(0xD3)</td><td>L1 - Saturation value for FB filter </td><td width="100">0x28,
</td></tr>
<tr><td>SD02_CR_MSG</td><td align="center">212(0xD4)</td><td>L1 - Nr of Frames before msg mute/unmute </td><td width="100">0x1E,
</td></tr>
<tr><td>SD02_CONTROL</td><td align="center">213(0xD5)</td><td>L1 - Enable Clock Divider Selection</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CLK_DIV[3]</td><td align="center">214(0xD6)</td><td>L3 - Clock Divider Setting </td><td width="100">0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_CLK_SEL[2]</td><td align="center">217(0xD9)</td><td>L2 - Clock Selection </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_AHB_PLL_SETTING_LOW[4]</td><td align="center">219(0xDB)</td><td>L4 - AHB PLL LOW Setting </td><td width="100">0x00,0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_AHB_PLL_SETTING_MED[4]</td><td align="center">223(0xDF)</td><td>L4 - AHB PLL MED Setting </td><td width="100">0x00,0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_AHB_PLL_SETTING_HIGH[4]</td><td align="center">227(0xE3)</td><td>L4 - AHB PLL HIGH Setting </td><td width="100">0x00,0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_CP_FEATURES</td><td align="center">231(0xE7)</td><td>L1 - CP features Setting </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CP_CONFIGURATION_OFFSET</td><td align="center">232(0xE8)</td><td>Bit 0: If set, SYPO alignment is offset by 1 slot,Bit 2: Dummy Merge to first traffic</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CP_ULE_FLAGS</td><td align="center">233(0xE9)</td><td> L1 - Phase 1: 0x2, Phase 1.2: 0x6 ,Phase 2: 0xA, Phase 3: 0xE</td><td width="100">0x0A,
</td></tr>
<tr><td>SD02_DUMMY_BEARER_THRES_ADAPT_THRESH</td><td align="center">234(0xEA)</td><td></td><td width="100">0x58,
</td></tr>
<tr><td>SD02_RF19APUZ_EXT_LNA</td><td align="center">235(0xEB)</td><td>L1 - CP features Setting </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_RFIC_SELECTION</td><td align="center">236(0xEC)</td><td>L1 - CP features Setting </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_UNUSED_210</td><td align="center">237(0xED)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_PHS_SCAN_PARAM</td><td align="center">238(0xEE)</td><td> JDECT parameters: RSSI threshold for PHS detection. PHS scan every 10 seconds. </td><td width="100">0x0C,
</td></tr>
<tr><td>SD02_JDECT_LEVEL1_M82</td><td align="center">239(0xEF)</td><td> minus 82 dBm RSSI threshold for Japan regulation </td><td width="100">0x0B,
</td></tr>
<tr><td>SD02_JDECT_LEVEL2_M62</td><td align="center">240(0xF0)</td><td> minus 62 dBm RSSI threshold for Japan regulation </td><td width="100">0x11,
</td></tr>
<tr><td>SD02_JDECT_CERTAINTY_PARAM</td><td align="center">241(0xF1)</td><td> PHS detection Certainty parameters.(upper nibble reduces miss detection. lower nibble reduces false alaram) </td><td width="100">0x55,
</td></tr>
<tr><td>SD02_ULE_DUMMY_TRAF_THRESH</td><td align="center">242(0xF2)</td><td>L1 - Threshold for dummy traffic bearer merge</td><td width="100">0x03,
</td></tr>
<tr><td>SD02_PWR_ADC_INPUT</td><td align="center">243(0xF3)</td><td> L1 Input source of the Auxiliary A/D </td><td width="100">0x0E,
</td></tr>
<tr><td>SD02_PWR_POR_INPUT</td><td align="center">244(0xF4)</td><td> L1 Input source of the POR A/D </td><td width="100">0x16,
</td></tr>
<tr><td>SD02_RES_FACTOR</td><td align="center">245(0xF5)</td><td> L1 Resistor Factor on AUX input </td><td width="100">0x02,
</td></tr>
<tr><td>SD02_UART_DELAY_TIMER</td><td align="center">246(0xF6)</td><td>L1 - Selects the timer in 10 msec to delay UART</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_V21_VOL_HIGH</td><td align="center">247(0xF7)</td><td>L2 SD02_V21_VOL_HIGH </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_V21_VOL_LOW</td><td align="center">248(0xF8)</td><td>L2 SD02_V21_VOL_LOW </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_PRODUCTION_TEST_RSSI_THRESH_DOWNLINK</td><td align="center">249(0xF9)</td><td>L1 SD02_PRODUCTION_TEST_RSSI_THRESH_DOWNLINK </td><td width="100">0x88,
</td></tr>
<tr><td>SD02_PRODUCTION_TEST_RSSI_THRESH_UPLINK</td><td align="center">250(0xFA)</td><td>L1 SD02_PRODUCTION_TEST_RSSI_THRESH_UPLINK </td><td width="100">0x88,
</td></tr>
<tr><td>SD02_FIXED_CARRIER_OFFSET</td><td align="center">251(0xFB)</td><td>L1 SD02_FIXED_CARRIER_OFFSET - Bit(0..5) : Carrier to use ,
Bit(6) : Enable fixed PM carrier ,
Bit(7) : Seta fixed carrier [bit(0..4)] in RF file. When using this option you MUST set PP+FP with the same carrier.
</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_TEMP_MEASURE_TIME</td><td align="center">252(0xFC)</td><td>L1 SD02_TEMP_MEASURE_TIME. bit 0-1 temperature measurement period for VCAL. 2 bits for 4 values 0,1,2,3 == 5,1,2,3 minutes. default value == 0
</td><td width="100">0x00,
</td></tr>
<tr><td>FNCA_DRV_UNUSED</td><td align="center">253(0xFD)</td><td> <----------- unused </td><td width="100">0xCC,</td></tr>
<tr><td>SD02_SMS_FW_VERSION[6]</td><td align="center">253(0xFD)</td><td> L6 </td><td width="100">0xCC,0x21,0x10,0x20,0x03,0xCC,
</td></tr>
<tr><td>SD02_SMS_SMTE_RESOURCES</td><td align="center">259(0x103)</td><td> L1 </td><td width="100">0x11,
</td></tr>
<tr><td>SD02_SMS_BREAK_SMS_CALL</td><td align="center">260(0x104)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_SMS_SUBADDR_MASK[2]</td><td align="center">261(0x105)</td><td> L2 </td><td width="100">0x00,0x03,
</td></tr>
<tr><td>SD02_SMS_MIN_BYTES_FREE</td><td align="center">263(0x107)</td><td> L1 </td><td width="100">0x28,
</td></tr>
<tr><td>SD02_SMS_SMSC_OFFHOOK</td><td align="center">264(0x108)</td><td> L1 </td><td width="100">0x14,
</td></tr>
<tr><td>SD02_SMS_SMSC_ESTABLISH</td><td align="center">265(0x109)</td><td> L1 </td><td width="100">0x14,
</td></tr>
<tr><td>SD02_SMS_HACK_CODE</td><td align="center">266(0x10A)</td><td> L1 </td><td width="100">0x10,
</td></tr>
<tr><td>SD02_SMS_TIMER_T2[2]</td><td align="center">267(0x10B)</td><td> L2 </td><td width="100">0x02,0xF8,
</td></tr>
<tr><td>SD02_SMS_TIMER_T3[2]</td><td align="center">269(0x10D)</td><td> L2 </td><td width="100">0x02,0xEE,
</td></tr>
<tr><td>SD02_SMS_TIMER_T6[2]</td><td align="center">271(0x10F)</td><td> L2 </td><td width="100">0x00,0x14,
</td></tr>
<tr><td>SD02_SMS_TIMER_T10</td><td align="center">273(0x111)</td><td> L1 </td><td width="100">0x0A,
</td></tr>
<tr><td>SD02_SMS_TIMER_T10BIS</td><td align="center">274(0x112)</td><td> L1 </td><td width="100">0x35,
</td></tr>
<tr><td>SD02_SMS_FSK_FREQ0[2]</td><td align="center">275(0x113)</td><td> L2 </td><td width="100">0x00,0x15,
</td></tr>
<tr><td>SD02_SMS_FSK_FREQ1[2]</td><td align="center">277(0x115)</td><td> L2 </td><td width="100">0x00,0x0D,
</td></tr>
<tr><td>SD02_SMS_FSK_CIT_VOL[2]</td><td align="center">279(0x117)</td><td> L2 </td><td width="100">0x13,0x00,
</td></tr>
<tr><td>SD02_SMS_FSK_TIMER_PREAM</td><td align="center">281(0x119)</td><td> L1 </td><td width="100">0x0D,
</td></tr>
<tr><td>SD02_SMS_PROT_RESP_TYPE</td><td align="center">282(0x11A)</td><td> L1 </td><td width="100">0x80,
</td></tr>
<tr><td>SD02_SMS_PROT_BEARER_CAP[20]</td><td align="center">283(0x11B)</td><td> L20 </td><td width="100">0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_SMS_PROT(k)[42]</td><td align="center">303(0x12F)</td><td> 21 * Nr_of_Protocols. Where 21 is the length of protocol. </td><td width="100">0x80,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0x80,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_SMS_SMSC_SETTINGS</td><td align="center">345(0x159)</td><td> L1 </td><td width="100">0x12,
</td></tr>
<tr><td>SD02_SMS_SMSC_VALIDITY_TIME</td><td align="center">346(0x15A)</td><td> L1 </td><td width="100">0x03,
</td></tr>
<tr><td>SD02_SMS_SMSC_EMAIL_SEP</td><td align="center">347(0x15B)</td><td> L1 Email Separator</td><td width="100">0x20,
</td></tr>
<tr><td>SD02_SMS_SMSC_OPERATOR</td><td align="center">348(0x15C)</td><td> L1 </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_SMS_SMSC_UNUSED[2]</td><td align="center">349(0x15D)</td><td> L2 </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_SMS_SMSC_INC_NUM[8]</td><td align="center">351(0x15F)</td><td> L8 </td><td width="100">0x04,0x21,0x1F,0xFF,
0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_SMS_SMSC_OUT_NUM[8]</td><td align="center">359(0x167)</td><td> L8 </td><td width="100">0x42,0x11,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_SMS_SMSC_EMAIL_NUM[8]</td><td align="center">367(0x16F)</td><td> L8 </td><td width="100">0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_SMS_SMSC(i)[90]</td><td align="center">375(0x177)</td><td> SMSC area end SMSC * 30. Where 30 is the length of data for one SMSC </td><td width="100">0x01,
0x03,
0x20,
0x00,
0x00,0x00,
0x01,0x93,0x01,0x0F,
0xFF,0xFF,0xFF,0xFF,
0x01,0x93,0x01,0x0F,
0xFF,0xFF,0xFF,0xFF,
0x08,0x00,0xF0,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x01,
0x03,
0x20,
0x00,
0x00,0x00,
0x20,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x20,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0x01,
0x03,
0x20,
0x05,
0x00,0x00,
0x01,0x90,0x01,0x50,
0x4F,0xFF,0xFF,0xFF,
0x01,0x90,0x01,0x50,
0x4F,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
0xFF,0xFF,0xFF,0xFF,
</td></tr>
<tr><td>SD02_ACV10_VOLUME[2]</td><td align="center">465(0x1D1)</td><td> L2 ACV10 Volume Control for SPK 2 bytes </td><td width="100">0x08,0x00,
</td></tr>
<tr><td>FNCA_SMS_UNUSED[2]</td><td align="center">467(0x1D3)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>SD02_CALL_BARRING[30]</td><td align="center">469(0x1D5)</td><td> L30 call barring data </td><td width="100"></td></tr>
<tr><td>SD02_MASTER_PIN[4]</td><td align="center">499(0x1F3)</td><td> L4 master mode pin code, reset value e.g. FF FF 15 90 </td><td width="100">0xFF,0xFF,0x15,0x90,
</td></tr>
<tr><td>SD02_AC[4]</td><td align="center">503(0x1F7)</td><td> L4 authentication code, e.g. FF FF 15 90</td><td width="100">0xFF,0xFF,0x00,0x00,
</td></tr>
<tr><td>SD02_RING_ON_OFF</td><td align="center">507(0x1FB)</td><td> L1 ring on/off enabled </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_ULE_AC[4]</td><td align="center">508(0x1FC)</td><td> L4 ULE authentication code, e.g. FF FF 00 00</td><td width="100">0xFF,0xFF,0x00,0x00,
</td></tr>
<tr><td>SD02_EEPROM0_END</td><td align="center">512(0x200)</td><td></td><td width="100"></td></tr>
<tr><td>SD02_BOOT_DELAY</td><td align="center">513(0x201)</td><td> L1 Boot up delay in seconds </td><td width="100"></td></tr>
<tr><td>SD02_HAN_START_FILE_0[8514]</td><td align="center">514(0x202)</td><td><a href="bhanEepromDefaults.html">HAN EEPROM Block</a> </td><td width="100"></td></tr>
<tr><td>SD02_HAN_END_FILE_0</td><td align="center">9028(0x2344)</td><td> HAN EEPROM Block End</td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_IPUI[5]</td><td align="center">9029(0x2345)</td><td> L5 Data: IPUI </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_TPUI[3]</td><td align="center">9034(0x234A)</td><td> L3 Data: TPUI </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_DCK[16]</td><td align="center">9037(0x234D)</td><td> L16 Data: DCK </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_UAK[16]</td><td align="center">9053(0x235D)</td><td> L16 Data: UAK </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_AC[4]</td><td align="center">9069(0x236D)</td><td> L4 Data: authentication code AC </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_UAK_AUTH</td><td align="center">9073(0x2371)</td><td> L1 Data: UAK authorization </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_STATUS</td><td align="center">9074(0x2372)</td><td> L1 Data: status </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_HANDSET_NR</td><td align="center">9075(0x2373)</td><td> L1 Data: handset number </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_DCK_ASSIGNED[2]</td><td align="center">9076(0x2374)</td><td> L1 Data: DCK assigned </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_FEATURES</td><td align="center">9078(0x2376)</td><td> L1 CP Features </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_DEFCK[16]</td><td align="center">9079(0x2377)</td><td> L16 Data: Default Cipher Key </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_DEFCK_ASSIGNED</td><td align="center">9095(0x2387)</td><td> L1 Data: DefCK assigned </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_CCM_CK[16]</td><td align="center">9096(0x2388)</td><td> L16 Data: CCM Key for ULE </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_DLC_OPERATING_MODE</td><td align="center">9112(0x2398)</td><td> L1 ULE DLC operating mode </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_HL_FEATURES</td><td align="center">9113(0x2399)</td><td> L1 ULE HL features </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_RESERVED[4]</td><td align="center">9114(0x239A)</td><td> L4 Reserved for future use </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_NEXT_RX_SEQUENCE_NUMBER[3]</td><td align="center">9118(0x239E)</td><td> L3 RX Sequence number </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_NEXT_TX_SEQUENCE_NUMBER[3]</td><td align="center">9121(0x23A1)</td><td> L3 TX Sequence number </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_OVER_A_FIELD_NEXT_RX_SEQUENCE_NUMBER[3]</td><td align="center">9124(0x23A4)</td><td> L3 RX Sequence number </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_OVER_A_FIELD_NEXT_TX_SEQUENCE_NUMBER</td><td align="center">9127(0x23A7)</td><td> L3 TX Sequence number </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_LEN[13978]</td><td align="center">101(0x65)</td><td> End of first subscribtion </td><td width="100"></td></tr>
<tr><td>SD02_ULE_SUB_UNUSED[5]</td><td align="center">14079(0x36FF)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>SD02_MD5_SIGNATURE[16]</td><td align="center">14084(0x3704)</td><td> L16 16 bytes of MD5 signature</td><td width="100"></td></tr>
<tr><td>SD02_MD5_END</td><td align="center">14100(0x3714)</td><td> L0</td><td width="100"></td></tr>
<tr><td>SD02_MD5_UNUSED</td><td align="center">14093(0x370D)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>FNCA_MMI_UNUSED[7]</td><td align="center">14093(0x370D)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>SD02_SUB_LAL</td><td align="center">14100(0x3714)</td><td> L1 </td><td width="100">0x24,
</td></tr>
<tr><td>SD02_SUB_Y</td><td align="center">14101(0x3715)</td><td> L1 </td><td width="100">0x24,
</td></tr>
<tr><td>SD02_DSP_CID_MARK_MODE</td><td align="center">14102(0x3716)</td><td> L1 DSP CID start state for mark mode - upper byte (Bits 8-15) </td><td width="100">0x40,
</td></tr>
<tr><td>SD02_DSP_CID_SEIZURE_MODE</td><td align="center">14103(0x3717)</td><td> L1 DSP CID start state for seizure mode - upper byte (Bits 8-15) </td><td width="100">0x40,
</td></tr>
<tr><td>SD02_DSP_THP2_KI[2]</td><td align="center">14104(0x3718)</td><td> L2 DSP THP2 - ki - input scaling factor - Currently unused </td><td width="100">0x10,
0x00,
</td></tr>
<tr><td>SD02_DSP_TXV[2]</td><td align="center">14106(0x371A)</td><td> L2 AUDIO TX volume control </td><td width="100">0x23,
0xBC,
</td></tr>
<tr><td>SD02_DSP_RXV[2]</td><td align="center">14108(0x371C)</td><td> L2 AUDIO RX volume control </td><td width="100">0x10,
0x00,
</td></tr>
<tr><td>SD02_DSP_RLP[2]</td><td align="center">14110(0x371E)</td><td> L2 AUDIO RLP volume control </td><td width="100">0x20,
0x00,
</td></tr>
<tr><td>SD02_AFE_AFELGC1</td><td align="center">14112(0x3720)</td><td> L1 AFE gains </td><td width="100">0x23,
</td></tr>
<tr><td>SD02_AFE_AFEMSGC1_NORMAL</td><td align="center">14113(0x3721)</td><td> L1 AFE gains normal mode </td><td width="100">0x32,
</td></tr>
<tr><td>SD02_MIN_RING_ON</td><td align="center">14114(0x3722)</td><td> min. DAEV_RING_ON </td><td width="100">2,
</td></tr>
<tr><td>SD02_MIN_RING_OFF</td><td align="center">14115(0x3723)</td><td> min. DAEV_RING_OFF </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_DTMF_ON</td><td align="center">14116(0x3724)</td><td> min. DAEV_DTMF_ON </td><td width="100">2,
</td></tr>
<tr><td>SD02_MIN_DTMF_OFF</td><td align="center">14117(0x3725)</td><td> min. DAEV_DTMF_OFF </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_CPDS_ON</td><td align="center">14118(0x3726)</td><td> min. DAEV_CPDS_ON </td><td width="100">2,
</td></tr>
<tr><td>SD02_MIN_CPDS_OFF</td><td align="center">14119(0x3727)</td><td> min. DAEV_CPDS_OFF </td><td width="100">2,
</td></tr>
<tr><td>SD02_MIN_CPDB_ON</td><td align="center">14120(0x3728)</td><td> min. DAEV_CPDB_ON </td><td width="100">4,
</td></tr>
<tr><td>SD02_MIN_CPDB_OFF</td><td align="center">14121(0x3729)</td><td> min. DAEV_CPDB_OFF </td><td width="100">4,
</td></tr>
<tr><td>SD02_MIN_FXD1_ON</td><td align="center">14122(0x372A)</td><td> min. DAEV_FXD1_ON </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_FXD1_OFF</td><td align="center">14123(0x372B)</td><td> min. DAEV_FXD1_OFF </td><td width="100">1,
</td></tr>
<tr><td>SD02_MIN_FXD2_ON</td><td align="center">14124(0x372C)</td><td> min. DAEV_FXD2_ON </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_FXD2_OFF</td><td align="center">14125(0x372D)</td><td> min. DAEV_FXD2_OFF </td><td width="100">1,
</td></tr>
<tr><td>SD02_MIN_GTD1_ON</td><td align="center">14126(0x372E)</td><td> min. DAEV_GTD1_ON </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_GTD1_OFF</td><td align="center">14127(0x372F)</td><td> min. DAEV_GTD1_OFF </td><td width="100">1,
</td></tr>
<tr><td>SD02_MIN_CAS_ON</td><td align="center">14128(0x3730)</td><td> min. DAEV_CAS_ON </td><td width="100">2,
</td></tr>
<tr><td>SD02_MIN_CAS_OFF</td><td align="center">14129(0x3731)</td><td> min. DAEV_CAS_OFF </td><td width="100">3,
</td></tr>
<tr><td>SD02_MIN_CAS_REQUIRED</td><td align="center">14130(0x3732)</td><td> min. DAEV_CAS_REQUIRED </td><td width="100">0x60,
</td></tr>
<tr><td>SD02_DTMF_ON</td><td align="center">14131(0x3733)</td><td> min. DTMF tone on duration </td><td width="100">40,
</td></tr>
<tr><td>SD02_DTMF_OFF</td><td align="center">14132(0x3734)</td><td> min. pause after DTMF </td><td width="100">40,
</td></tr>
<tr><td>SD02_DIAL_PAUSE</td><td align="center">14133(0x3735)</td><td> min. dial pause </td><td width="100">125,
</td></tr>
<tr><td>SD02_DTMF_VOL_LOW</td><td align="center">14134(0x3736)</td><td> V6dB low DTMF frequency </td><td width="100">0x40,
</td></tr>
<tr><td>SD02_DTMF_VOL_LOW_HIGH</td><td align="center">14135(0x3737)</td><td> V6dB low DTMF frequency high </td><td width="100">0x24,
</td></tr>
<tr><td>SD02_DTMF_VOL_HIGH</td><td align="center">14136(0x3738)</td><td> V6dB high DTMF frequency </td><td width="100">0xB0,
</td></tr>
<tr><td>SD02_DTMF_VOL_HIGH_HIGH</td><td align="center">14137(0x3739)</td><td> V6dB high DTMF frequency high </td><td width="100">0x2D,
</td></tr>
<tr><td>SD02_PULSE_MAKE_LENGTH</td><td align="center">14138(0x373A)</td><td> L1 PSTN:dialPULSE </td><td width="100">40,
</td></tr>
<tr><td>SD02_PULSE_BREAK_LENGTH</td><td align="center">14139(0x373B)</td><td> L1 PSTN:dialPULSE </td><td width="100">60,
</td></tr>
<tr><td>SD02_PULSE_IDP_LENGTH</td><td align="center">14140(0x373C)</td><td> L1 PSTN:dialPULSE </td><td width="100">80,
</td></tr>
<tr><td>SD02_LCURRENT_CYCLE</td><td align="center">14141(0x373D)</td><td> L1 PSTN:PCA1070 </td><td width="100">50,
</td></tr>
<tr><td>SD02_LCURRENT_IDP</td><td align="center">14142(0x373E)</td><td> L1 PSTN:PCA1070 </td><td width="100">32,
</td></tr>
<tr><td>SD02_PAUSE_LENGTH</td><td align="center">14143(0x373F)</td><td> L1 PSTN/AUDIO:dial</td><td width="100">30,
</td></tr>
<tr><td>SD02_FLASH_LENGTH</td><td align="center">14144(0x3740)</td><td> L1 PSTN:dial </td><td width="100">10,
</td></tr>
<tr><td>SD02_EARTH_LENGTH</td><td align="center">14145(0x3741)</td><td> L1 PSTN:dial </td><td width="100">40,
</td></tr>
<tr><td>SD02_RING_MIN</td><td align="center">14146(0x3742)</td><td> L1 PSTN:ringer </td><td width="100">18,
</td></tr>
<tr><td>SD02_RING_MAX</td><td align="center">14147(0x3743)</td><td> L1 PSTN:ringer </td><td width="100">50,
</td></tr>
<tr><td>SD02_RON_DETECT</td><td align="center">14148(0x3744)</td><td> L1 PSTN:ringer </td><td width="100">9,
</td></tr>
<tr><td>SD02_RON_HOLD</td><td align="center">14149(0x3745)</td><td> L1 PSTN:ringer </td><td width="100">20,
</td></tr>
<tr><td>SD02_ROFF_DETECT</td><td align="center">14150(0x3746)</td><td> L1 PSTN:ringer </td><td width="100">11,
</td></tr>
<tr><td>SD02_ROFF_HOLD</td><td align="center">14151(0x3747)</td><td> L1 PSTN:ringer </td><td width="100">25,
</td></tr>
<tr><td>SD02_LIF_CURR_LO</td><td align="center">14152(0x3748)</td><td> L1 PSTN:l.current </td><td width="100">0,
</td></tr>
<tr><td>SD02_LIF_CURR_HI</td><td align="center">14153(0x3749)</td><td> L1 +1 </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_WETTING_TIME</td><td align="center">14154(0x374A)</td><td> L1 Wetting Pulse </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_DTMF_D_TIME</td><td align="center">14155(0x374B)</td><td> L1 DTMF-D for CAS </td><td width="100">0x23,
</td></tr>
<tr><td>SD02_STUTTER_CYCLES</td><td align="center">14156(0x374C)</td><td> L1 # of Stutter </td><td width="100">0x0A,
</td></tr>
<tr><td>SD02_CID_DET_ENBL_TIME</td><td align="center">14157(0x374D)</td><td> L1 CID detection 100ms steps </td><td width="100">38,
</td></tr>
<tr><td>SD02_FSK_START_TIME</td><td align="center">14158(0x374E)</td><td> L1 CID-2 detection </td><td width="100">0xE0,
</td></tr>
<tr><td>SD02_FSK_OFFHOOK_TIME[2]</td><td align="center">14159(0x374F)</td><td> L2 CID-2 detection </td><td width="100">0xAD,
0x03,
</td></tr>
<tr><td>SD02_AFE_AFEMSGC1_HF</td><td align="center">14161(0x3751)</td><td> L1 AFE gains for Handsfree </td><td width="100">0x32,
</td></tr>
<tr><td>SD02_AFE_AFEMSGC2</td><td align="center">14162(0x3752)</td><td> L1 AFE gains </td><td width="100">0x51,
</td></tr>
<tr><td>SD02_EAR_VOL_TAB[10]</td><td align="center">14163(0x3753)</td><td> L10 10 volume values for polyphonic ringing (increasing order)</td><td width="100">0x02,0x03,0x04,0x06,0x08,
0x09,0x0A,0x0B,0x0c,0x0d,
</td></tr>
<tr><td>SD02_RVBC1C_VAL</td><td align="center">14173(0x375D)</td><td> L1 Codec 1 (In base Spk) control </td><td width="100">0xC0,
</td></tr>
<tr><td>SD02_RVBC1G_VAL</td><td align="center">14174(0x375E)</td><td> L1 Codec 1 (In base Spk) gain </td><td width="100">0x4F,
</td></tr>
<tr><td>SD02_RVBC1C_VAL_HF</td><td align="center">14175(0x375F)</td><td> L1 Codec 1 (In base Spk) control for HF</td><td width="100">0xC0,
</td></tr>
<tr><td>SD02_RVBC1G_VAL_HF</td><td align="center">14176(0x3760)</td><td> L1 Codec 1 (In base Spk) gain for HF</td><td width="100">0x4F,
</td></tr>
<tr><td>SD02_WBE_ENABLE</td><td align="center">14177(0x3761)</td><td> L1 WBE_FT Enable </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_RVDDC_FIX_ENABLE</td><td align="center">14178(0x3762)</td><td> L1 ENABLE/DISABLE Patch for RVDCDC HW bug</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_INBAND_TONE_SELECT</td><td align="center">14179(0x3763)</td><td> L1 Select country for inband tone </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_DRV_UNUSED</td><td align="center">14180(0x3764)</td><td> <----------- unused </td><td width="100">0xFF,</td></tr>
<tr><td>SD02_ALLOC_LINE1[2]</td><td align="center">14180(0x3764)</td><td>handset allocation (see Protocol Interface) bitwise per handset: 1 = handset allocated;
(0xFF 0xFF indicates Collective ringing) for
each of the next 3 lines</td><td width="100">0xFF,0xFF,
</td></tr>
<tr><td>SD02_ALLOC_LINE2[2]</td><td align="center">14182(0x3766)</td><td></td><td width="100">0xFF,0xFF,
</td></tr>
<tr><td>SD02_ALLOC_LINE3[2]</td><td align="center">14184(0x3768)</td><td></td><td width="100">0xFF,0xFF,
</td></tr>
<tr><td>SD02_HS_TYPE_CATIQ30</td><td align="center">14186(0x376A)</td><td> Tells HS is CatIQ30 capable implemented for Max 8 HS only </td><td width="100">0x0,
</td></tr>
<tr><td>SD02_WB_TYPE_HSNR[2]</td><td align="center">14187(0x376B)</td><td> PT WB capability storage Note:For CAT-IQ builds user should not modify this location</td><td width="100">0,0,
</td></tr>
<tr><td>SD02_WB_LINE_TYPE</td><td align="center">14189(0x376D)</td><td> FT Line TYPE storgare(2= G711WB, 1 = WB , 0 =NB) </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_WB_LINE_SUB_TYPE</td><td align="center">14190(0x376E)</td><td> FT WB Line Sub Type ( 0 = G722 WB, 1 = G711 WB) </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_DH_MIX_RATIO</td><td align="center">14191(0x376F)</td><td></td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_NEMO_PTS[2]</td><td align="center">14192(0x3770)</td><td> Two Bytes are used</td><td width="100">0xFF,0xFF,
</td></tr>
<tr><td>SD02_SPK_SLOT_TYPE</td><td align="center">14194(0x3772)</td><td> Slot type for SPK phone</td><td width="100">0x02,
</td></tr>
<tr><td>SD02_MAX_NUM_ACT_CALLS_PT</td><td align="center">14195(0x3773)</td><td> Maximum nmber of active calls of 1 PT.</td><td width="100">0x03,
</td></tr>
<tr><td>SD02_NEMO_DISABLED</td><td align="center">14196(0x3774)</td><td> bit 7 is used for permanent NEMo disable </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_HS_TYPE_CATIQ20[2]</td><td align="center">14197(0x3775)</td><td> L2: Two bytes for CAT-iq 2.0 Handset </td><td width="100">0x00,
0x00,
</td></tr>
<tr><td>SD02_FP_CUSTOM_FEATURES</td><td align="center">14199(0x3777)</td><td> Bit-0: INL 0-enable/1-disable, Bit-1: 0-conf,trfr enable/1-conf,trfr disable</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_ENCRYPT_STATUS</td><td align="center">14200(0x3778)</td><td> L1: Encryption enable/disable</td><td width="100">0x01,
</td></tr>
<tr><td>SD02_MM_CAPABILITIES[10]</td><td align="center">14201(0x3779)</td><td> L10: MM Capabilities for each Handset.FTEEP_NUM_SUB/SD09_MAX_NUM_SUB is hard coded as 10 </td><td width="100">0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
0x00,0x00,
</td></tr>
<tr><td>SD02_ARBITRARY_TPUI[3]</td><td align="center">14211(0x3783)</td><td> L3 : 3 bytes to store arbitrary TPUI</td><td width="100">0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_HS_TYPE_CATIQ21[2]</td><td align="center">14214(0x3786)</td><td> L2: Two bytes for CAT-iq 2.1 Handset </td><td width="100">0x00,0x00,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_MEASUREMENT_INTERVAL</td><td align="center">14216(0x3788)</td><td> L1: Interference Detection Measurement Interval </td><td width="100">60,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_NOISE_INTERVAL</td><td align="center">14217(0x3789)</td><td> L1: Interference Detection Noise Interval </td><td width="100">30,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_CONFIG1</td><td align="center">14218(0x378A)</td><td> L1: Interference Detection config1, bit 0-7: Active Carriers Mask, carriers 1-8 </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_CONFIG2</td><td align="center">14219(0x378B)</td><td> L1: Interference Detection config2, bit 0-1: Active Carriers Mask, carriers 9-10; bit7: 1-Enable/0-Disable Interference Detection alg.</td><td width="100">0x83,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_TRAFFIC_SLOTS_IN_FRAME</td><td align="center">14220(0x378C)</td><td> L1: Interference Detection Traffic Slots In Frame </td><td width="100">0x03,
</td></tr>
<tr><td>SD02_INTERFERENCE_DETECTION_INTERFERENCE_LEVEL</td><td align="center">14221(0x378D)</td><td> L1: Interference Detection Interference Level </td><td width="100">0x98,
</td></tr>
<tr><td>SD02_NEMO_CONTROL</td><td align="center">14222(0x378E)</td><td> L1: MSB enables HM00_NEMO_DUMMY_USE_RSSI_FOR_IF_CHECK, others are for extending NEMO WA bearer time </td><td width="100">0x00,
</td></tr>
<tr><td>FCAC_HLP_END</td><td align="center">14223(0x378F)</td><td> </td><td width="100"></td></tr>
<tr><td>SD02_RINGER_EXPIRY</td><td align="center">14223(0x378F)</td><td> L1 FTMI:X line </td><td width="100">45,
</td></tr>
<tr><td>SD02_LINE_EXPIRY</td><td align="center">14224(0x3790)</td><td> L1 FTMI:release </td><td width="100">85,
</td></tr>
<tr><td>SD02_RINGER_MELODY</td><td align="center">14225(0x3791)</td><td> L1 FTMI:ringer </td><td width="100">9,
</td></tr>
<tr><td>SD02_RINGER_VOLUME</td><td align="center">14226(0x3792)</td><td> L1 FTMI:ringer </td><td width="100">3,
</td></tr>
<tr><td>SD02_DIAL_MODI</td><td align="center">14227(0x3793)</td><td> L1 FTMI:dtmf/reca</td><td width="100">0xD3,
</td></tr>
<tr><td>SD02_DLT_CTRL</td><td align="center">14228(0x3794)</td><td> L1 FTMI:dialTone </td><td width="100">0x3A,
</td></tr>
<tr><td>SD02_TONDET_SEL</td><td align="center">14229(0x3795)</td><td> L1 FTMI:ena/disa enable tone detection features: 0x80: DTAS
0x40: RPAS
0x41: RPASFR
0x20: MFCR</td><td width="100">0x80+0x41+0x20,
</td></tr>
<tr><td>SD02_LRMS_SUPPORT[2]</td><td align="center">14230(0x3796)</td><td> L2 FTMI:LRMS sup. 1 Bit per handset. 1 indicates LMRS support
of the according handset.</td><td width="100">0x00, 0x00,
</td></tr>
<tr><td>SD02_SMS1_PLUS_SUPPORT[2]</td><td align="center">14232(0x3798)</td><td> L2 FTMI:SMS1_PLUS sup. 1 Bit per handset. 1 indicates SMS1+ support
of the according handset.</td><td width="100">0x00, 0x00,
</td></tr>
<tr><td>SD02_COUNTRY_IDENTIFICATION</td><td align="center">14234(0x379A)</td><td> L1 FTMMS </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_SMS_TP_MR</td><td align="center">14235(0x379B)</td><td> L1 FTMMS </td><td width="100">0xfd,
</td></tr>
<tr><td>SD02_DTAM_RING</td><td align="center">14236(0x379C)</td><td> DTAM: ringtones </td><td width="100">0x5,
</td></tr>
<tr><td>SD02_PREF_LINE[9]</td><td align="center">14237(0x379D)</td><td> L9 FTMI:ogo line, up to 9 </td><td width="100">0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,
</td></tr>
<tr><td>SD02_PRIOR_HS[30]</td><td align="center">14246(0x37A6)</td><td> L2 FTMI:inc line, up to 3 incoming prioritized HS line 1
ring count of prior. HS line 1
incoming prioritized HS line 2
ring count of prior. HS line 2
incoming prioritized HS line 3
ring count of prior. HS line 3</td><td width="100">0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
</td></tr>
<tr><td>SD02_BLINDCALL_TIM1</td><td align="center">14276(0x37C4)</td><td> Blind call transfer timeout 1 </td><td width="100">0x1E,
</td></tr>
<tr><td>SD02_BLINDCALL_TIM2</td><td align="center">14277(0x37C5)</td><td> Blind call transfer timeout 2 </td><td width="100">0x1E,
</td></tr>
<tr><td>SD02_PARKED_TIM</td><td align="center">14278(0x37C6)</td><td> Parked line timeout </td><td width="100">0x3c,
</td></tr>
<tr><td>SD02_OVERLAP_SEND_TIM</td><td align="center">14279(0x37C7)</td><td> Overlap sending timer </td><td width="100">0x4,
</td></tr>
<tr><td>SD02_DTAM_ENABLE</td><td align="center">14280(0x37C8)</td><td> DTAM: ON/OFF </td><td width="100">0x1,
</td></tr>
<tr><td>SD02_DTAM_ICM_CR</td><td align="center">14281(0x37C9)</td><td> DTAM: codRates ICM </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_DTAM_OGM_CR</td><td align="center">14282(0x37CA)</td><td> DTAM: codRates OGM </td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_DTAM_PILL_CR</td><td align="center">14283(0x37CB)</td><td> DTAM: codRates Pill</td><td width="100">0xFF,
</td></tr>
<tr><td>SD02_EARVOL</td><td align="center">14284(0x37CC)</td><td> EAR Vol </td><td width="100">0x05,
</td></tr>
<tr><td>SD02_BS_CALL_SCREENING</td><td align="center">14285(0x37CD)</td><td> L1 Call Screening Enable/disable</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_EMC_COMPLIANT[2]</td><td align="center">14286(0x37CE)</td><td> L2 stores the compliant of PT's i.e. whether EMC is equal </td><td width="100">0x00, 0x00,
</td></tr>
<tr><td>SD02_LU10_RN_UPDATE</td><td align="center">14288(0x37D0)</td><td> L1 Enable/disable update RN=SN+1 </td><td width="100">0x05,
</td></tr>
<tr><td>SD02_MMI_DECT_SECURITY</td><td align="center">14289(0x37D1)</td><td> L1 DECT SECURITY LEVEL </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CR_PREFERRED_CODEC</td><td align="center">14290(0x37D2)</td><td> L1 holds the preferred codec for CR </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_PAD_OPT_NORMAL</td><td align="center">14291(0x37D3)</td><td> L1 holds the Normal action for CR: 0- nothing 1 - Mute</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_PAD_OPT_PROTECTED</td><td align="center">14292(0x37D4)</td><td> L1 holds the Protected action for CR: 0- nothing 1 - Mute</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CR_ACTION_ADPCM</td><td align="center">14293(0x37D5)</td><td> L1 holds the ADPCM action for 0- nothing 1 - Improved</td><td width="100">0x00,
</td></tr>
<tr><td>SD02_CLEARANGE_ENABLE</td><td align="center">14294(0x37D6)</td><td> L1 Enable CR feature </td><td width="100">0x01,
</td></tr>
<tr><td>SD02_REPEATER_TYPE</td><td align="center">14295(0x37D7)</td><td> L1 Hold the Repeater Type GAP,CAT-iq.NEMO </td><td width="100">0x00,
</td></tr>
<tr><td>SD02_ULE_MULTICAST_ENC_PARAMS[53]</td><td align="center">14296(0x37D8)</td><td> L48 ULE Multicast enc. parameter: 2x (CCM key, sequence number, Multicast ID) </td><td width="100">0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,0x00,0x00,
0x00,0x00,0x00,
0xFF,
0x0,
0x0,
0x0, 0x00,
</td></tr>
<tr><td>SD02_DECT_SETTINGS_OFFSET</td><td align="center">14349(0x380D)</td><td> DECT settings List Offset </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_CLOCK_MASTER</td><td align="center">14349(0x380D)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_BASE_RESET</td><td align="center">14350(0x380E)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_FW_VERSION[38]</td><td align="center">14351(0x380F)</td><td> L8 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_EEP_VERSION[38]</td><td align="center">14389(0x3835)</td><td> L8 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_HW_VERSION[38]</td><td align="center">14427(0x385B)</td><td> L8 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_NEW_PIN[4]</td><td align="center">14465(0x3881)</td><td> L4 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_EMISSION_MODE</td><td align="center">14469(0x3885)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_IP_TYPE</td><td align="center">14470(0x3886)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_IP_VALUE[17]</td><td align="center">14471(0x3887)</td><td> L17 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_IP_SUBNET_MASK[17]</td><td align="center">14488(0x3898)</td><td> L17 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_IP_GATEWAY[17]</td><td align="center">14505(0x38A9)</td><td> L17 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_IP_DNS_SERVER[17]</td><td align="center">14522(0x38BA)</td><td> L17 </td><td width="100"></td></tr>
<tr><td>SD02_DSSL_FP_POWER_LEVEL</td><td align="center">14539(0x38CB)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_LINE_SETTINGS_OFFSET[75]</td><td align="center">14540(0x38CC)</td><td> Line Settings List Offset </td><td width="100"></td></tr>
<tr><td>SD02_INL_DATA_OFFSET[375]</td><td align="center">14615(0x3917)</td><td> Internal Name List Offset </td><td width="100"></td></tr>
<tr><td>SD02_SUPTD_LIST_OFFSET[22]</td><td align="center">14990(0x3A8E)</td><td> Supported List Offset</td><td width="100"></td></tr>
<tr><td>SD02_BSNAME_LEN</td><td align="center">15012(0x3AA4)</td><td> L1 </td><td width="100"></td></tr>
<tr><td>SD02_BSNAME[19]</td><td align="center">15013(0x3AA5)</td><td> L13 Bytes of data MAX </td><td width="100"></td></tr>
<tr><td>SD02_SUB_IPUI[5]</td><td align="center">15032(0x3AB8)</td><td> L5 Data: IPUI </td><td width="100"></td></tr>
<tr><td>SD02_SUB_TPUI[3]</td><td align="center">15037(0x3ABD)</td><td> L3 Data: TPUI </td><td width="100"></td></tr>
<tr><td>SD02_SUB_DCK[16]</td><td align="center">15040(0x3AC0)</td><td> L16 Data: DCK </td><td width="100"></td></tr>
<tr><td>SD02_SUB_UAK[16]</td><td align="center">15056(0x3AD0)</td><td> L16 Data: UAK </td><td width="100"></td></tr>
<tr><td>SD02_SUB_AC[4]</td><td align="center">15072(0x3AE0)</td><td> L4 Data: authentication code AC </td><td width="100"></td></tr>
<tr><td>SD02_SUB_UAK_AUTH</td><td align="center">15076(0x3AE4)</td><td> L1 Data: UAK authorization </td><td width="100"></td></tr>
<tr><td>SD02_SUB_STATUS</td><td align="center">15077(0x3AE5)</td><td> L1 Data: status </td><td width="100"></td></tr>
<tr><td>SD02_SUB_HANDSET_NR</td><td align="center">15078(0x3AE6)</td><td> L1 Data: handset number </td><td width="100"></td></tr>
<tr><td>SD02_SUB_DCK_ASSIGNED</td><td align="center">15079(0x3AE7)</td><td> L1 Data: DCK assigned </td><td width="100"></td></tr>
<tr><td>SD02_SUB_CK_LEN</td><td align="center">15080(0x3AE8)</td><td> L1 Data: Cipher Key Length </td><td width="100"></td></tr>
<tr><td>SD02_SUB_FEATURES</td><td align="center">15081(0x3AE9)</td><td> L1 Data: Handset ULE feature support </td><td width="100"></td></tr>
<tr><td>SD02_SUB_LEN[15032]</td><td align="center">50(0x32)</td><td> End of first subscribtion </td><td width="100"></td></tr>
<tr><td>FNCA_SUB(i)[250]</td><td align="center">15082(0x3AEA)</td><td> This place is reserved for the rest of the HS and includes all perameters:SD02_SUB_IPUI-SD02_SUB_DCK_ASSIGNED (40Byte x Number of handsets)</td><td width="100"></td></tr>
<tr><td>SD02_SUB_UNUSED[6]</td><td align="center">15332(0x3BE4)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>SD02_SUB_EX_DEFCK[16]</td><td align="center">15338(0x3BEA)</td><td> L16 Data: Default Cipher Key </td><td width="100"></td></tr>
<tr><td>SD02_SUB_EX_DEFCK_ASSIGNED</td><td align="center">15354(0x3BFA)</td><td> L1 Data: DefCK assigned </td><td width="100"></td></tr>
<tr><td>SD02_SUB_EX_LEN[15338]</td><td align="center">17(0x11)</td><td> End of first subscribtion </td><td width="100"></td></tr>
<tr><td>FNCA_SUB_EX(i)[85]</td><td align="center">15355(0x3BFB)</td><td> This place is reserved for the rest of the HS and includes all perameters:SD02_SUB_IPUI-SD02_SUB_DCK_ASSIGNED (40Byte x Number of handsets)</td><td width="100"></td></tr>
<tr><td>SD02_SUB_EX_UNUSED[4]</td><td align="center">15440(0x3C50)</td><td> <----------- unused </td><td width="100"></td></tr>
<tr><td>SD02_SUB_RFPI</td><td align="center">15444(0x3C54)</td><td> L5 RFPI </td><td width="100"></td></tr>
</tbody>
</table>
<h3>EEPROM SIZE = 32768</h3>
<h6>*All non exists values on default are zero upon EEPROM reset</h6>

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,3 @@
config dect 'global'
option log_dect_cmbs 'syslog'
option log_level 'realtime,warning,error'

Binary file not shown.

View File

@@ -0,0 +1,96 @@
#!/bin/sh /etc/rc.common
source /lib/functions/uci-defaults.sh
START=70
STOP=12
USE_PROCD=1
NAME=dectmngr
PROG=/usr/sbin/dectmngr
LOG_PATH=/var/log/dectmngr
DB_PATH=/etc/dect
# Ask dectmngr to exit nicely and wait for it to clean up, which is a slow process.
stop_and_wait_dectmngr() {
pidof $NAME && killall -q $NAME
pidof $NAME && sleep 2 # wait for the process to stop gracefully
while pidof $NAME; do
killall -q -9 $NAME
sleep 1
done
}
start_service() {
local opt_ext=
local rfpi=
local model_id=
local rxtun=
test $(db get hw.board.hasDect) = "0" && return
echo 1 > /sys/class/gpio/gpio14/value
rfpi=$(db -q get hw.board.dect_rfpi)
[ -n "$rfpi" -a ${#rfpi} -eq 14 ] && opt_ext="$opt_ext -rfpi $rfpi"
model_id=$(db -q get hw.board.dect_model_id)
[ -n "$model_id" -a ${#model_id} -eq 8 ] || {
echo "Invalid hw.board.dect_model_id:$model_id. Set to 30.3B.06"
model_id="30.3B.06"
}
opt_ext="$opt_ext -model $model_id"
rxtun=$(db -q get hw.board.dect_rxtun)
[ -n "$rxtun" -a ${#rxtun} -eq 2 ] && opt_ext="$opt_ext -rxtun $rxtun"
config_load dect
config_get log_dect_cmbs global log_dect_cmbs syslog
procd_open_instance
if [ "$log_dect_cmbs" = "none" ]; then
echo "Starting dectmngr with cmbs logging disabled"
procd_set_param command $PROG -comname ttyH0 $opt_ext
rm -f $LOG_PATH/*
elif [ "$log_dect_cmbs" = "file" ]; then
echo "Starting dectmngr with cmbs logging enabled to file"
procd_set_param command $PROG -comname ttyH0 -log $LOG_PATH/dect-cmbs.log $opt_ext
else
echo "Starting dectmngr with cmbs logging enabled to syslog"
procd_set_param command $PROG -comname ttyH0 -syslog $opt_ext
rm -f $LOG_PATH/*
fi
procd_set_param respawn 6 2 3
procd_set_param term_timeout 20
procd_set_param triggers asterisk
procd_close_instance
}
stop_service() {
test $(db get hw.board.hasDect) = "0" && return
echo 0 > /sys/class/gpio/gpio14/value
stop_and_wait_dectmngr
}
reload_service() {
ubus call dect reload
}
service_triggers()
{
procd_add_config_trigger "config.change" "asterisk" /etc/init.d/dectmngr restart
procd_add_config_trigger "config.change" "dect" /etc/init.d/dectmngr reload
}
boot() {
echo 14 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio14/direction
[ ! -d $LOG_PATH ] && mkdir -p $LOG_PATH
[ ! -d $DB_PATH ] && mkdir -p $DB_PATH
start
}

View File

@@ -0,0 +1 @@
/etc/dect/LA_DB

View File

@@ -1,27 +0,0 @@
#!/bin/sh
SOUND_BASE=/lib/modules/$(uname -r)/kernel/sound
SOUND_MODULES="$SOUND_BASE/soundcore.ko $SOUND_BASE/core/snd.ko $SOUND_BASE/core/snd-timer.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/snd-pcm.ko $SOUND_BASE/core/snd-hwdep.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/seq/snd-seq-device.ko"
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/core/seq/snd-seq.ko $SOUND_BASE/core/snd-rawmidi.ko "
SOUND_MODULES="$SOUND_MODULES $SOUND_BASE/usb/snd-usbmidi-lib.ko $SOUND_BASE/usb/snd-usb-audio.ko"
load_sound_modules() {
for mod in $SOUND_MODULES; do
insmod $mod
done
}
unload_sound_modules() {
local modules=
# reverse the order
for mod in $SOUND_MODULES; do
modules="$mod $modules"
done
for mod in $modules; do
rmmod $mod
done
}

View File

@@ -1,308 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
dspg_test_app - DSPG CMBS Host Software Test Application
Copyright (C) 2020 iopsys Software Solutions AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

View File

@@ -1,6 +0,0 @@
.PHONY: dspg_test_app
dspg_test_app:
$(MAKE) -C test

View File

@@ -1,42 +0,0 @@
ifdef CMBSDIR
CMBSBASE:=$(CMBSDIR)/cmbs
includes += -I$(CMBSDIR)/include
else
CMBSBASE:=$(PROJDIR)/cmbs
endif
includes += -I$(CMBSBASE)
cmbs_objects:=
####################################################################
# settle includes
#includes += -I$(FRAMEBASE) -I$(FRAMEBASE)/vone
####################################################################
# settle objects
ifdef CMBS_HOST
OBJ_EXT = o
else
OBJ_EXT = otwi
endif
cmbs_objects += $(OBJDIR)/cmbs_int.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_api.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_dcm.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_dsr.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_dee.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_dem.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_ie.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_cmd.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_suota.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_rtp.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_util.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_fifo.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_dbg.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_han.$(OBJ_EXT)
cmbs_objects += $(OBJDIR)/cmbs_han_ie.$(OBJ_EXT)
####################################################################
# settle vpath
vpath %.c $(CMBSBASE)

View File

@@ -1,118 +0,0 @@
/*!
* \file cmbs_api.c
* \brief API Maintenance functions
* \Author CMBS Team
*
* @(#) %filespec: cmbs_api.c~DMZD53#7 %
*
*******************************************************************************/
#include <string.h>
#include "cmbs_int.h"
#define TARGET_ANSWER_TIMEOUT 10000
ST_CB_LOG_BUFFER g_LogBufferCb;
#ifdef __linux
extern void _cmbs_int_MsgQDestroy(int nMsgQId);
extern int _cmbs_int_MsgQCreate(void);
#endif
/*****************************************************************************
* API Maintenance functions
*****************************************************************************/
PST_CB_LOG_BUFFER cmbs_api_get_LogBufferCb(void)
{
return &g_LogBufferCb;
}
E_CMBS_RC cmbs_api_Init( E_CMBS_API_MODE e_Mode, ST_CMBS_DEV * pst_DevCtl, ST_CMBS_DEV * pst_DevMedia )
{
#if !defined ( CMBS_API_TARGET )
E_CMBS_RC ReturnCode;
#endif
// initialize host environment
if(cmbs_int_EnvCreate( e_Mode, pst_DevCtl, pst_DevMedia ) != CMBS_RC_OK)
return CMBS_RC_ERROR_GENERAL;
memcpy(&g_CMBSInstance.st_ApplSlot.pFnCbLogBuffer, cmbs_api_get_LogBufferCb(), sizeof(ST_CB_LOG_BUFFER));
#if !defined ( CMBS_API_TARGET )
// establish communication with the module
cmbs_int_SendHello(pst_DevCtl, pst_DevMedia);
// wait for target answer
ReturnCode = cmbs_int_WaitForResponse(TARGET_ANSWER_TIMEOUT);
if (ReturnCode == CMBS_RC_OK)
{
if (g_CMBSInstance.u16_TargetVersion != 0x0001)
{
// try to get Target capabilities (if no response, it means target does not support this message)
cmbs_int_cmd_SendCapablities();
cmbs_int_WaitForResponse(TARGET_ANSWER_TIMEOUT);
}
}
return ReturnCode;
#else
return CMBS_RC_OK;
#endif
}
void cmbs_api_UnInit( void )
{
cmbs_int_EnvDestroy();
}
void* cmbs_api_RegisterCb( void * pv_AppRef, PFN_CMBS_API_CB pfn_api_Cb, u16 u16_bcdVersion )
{
return cmbs_int_RegisterCb( pv_AppRef, pfn_api_Cb, u16_bcdVersion );
}
void cmbs_api_UnregisterCb( void * pv_AppRefHandle )
{
cmbs_int_UnregisterCb( pv_AppRefHandle );
}
u16 cmbs_api_ModuleVersionGet( void )
{
return cmbs_int_ModuleVersionGet();
}
u16 cmbs_api_ModuleVersionBuildGet( void )
{
return cmbs_int_ModuleVersionBuildGet();
}
#ifdef __linux
void cmbs_api_MsgQDestroy(int nMsgQId)
{
_cmbs_int_MsgQDestroy(nMsgQId);
}
int cmbs_api_MsgQCreate(void)
{
return _cmbs_int_MsgQCreate();
}
#elif WIN32
void cmbs_api_MsgQDestroy(PST_ICOM_ENTRY pMsgQId)
{
cfr_MQueueDestroy ( pMsgQId);
}
PST_ICOM_ENTRY cmbs_api_MsgQCreate(u32 u32_ThreadID, u32 u32_Timeout)
{
return cfr_MQueueCreate(u32_ThreadID, u32_Timeout);
}
#endif
void cmbs_api_RegisterLogBufferCb(void* pv_AppRef, PST_CB_LOG_BUFFER pfn_log_buffer_Cb)
{
cmbs_int_RegisterLogBufferCb(pv_AppRef, pfn_log_buffer_Cb);
}
#if !defined( CMBS_API_TARGET )
void cmbs_api_ParseDectMsg(u8 * buff, u8 u8_ILen, u8 u8_HandsetNumber)
{
cmbs_int_ParseDectMsg(buff, u8_ILen, u8_HandsetNumber);
}
#endif //#if !defined( CMBS_API_TARGET )
//*/

File diff suppressed because it is too large Load Diff

View File

@@ -1,769 +0,0 @@
/*!
* \file cmbs_cmd.c
* \brief Implementation of the CMBS internal command protocol
* \Author kelbch
*
* @(#) %filespec: cmbs_cmd.c~DMZD53#16 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
* 13-Jan-2014 tcmc_asa -- GIT-- take checksum changes from 3.46.x to 3_x main (3.5x)
* 20-Dec-13 tcmc_asa GIT Added CHECKSUM_SUPPORT
* 16-Feb-09 Kelbch 1 Initialize \n
* 18-Feb-09 Kelbch 2 Update Version information on Hello Reply \n
* 18-Feb-09 Kelbch 3 Adapted Version information on Hello Reply \n
* 19-Feb-09 Kelbch 4 Extend hello-reply procedure to block conditions\n
* 19-Feb-09 Kelbch 5 Add flow control commands\n
* 09-Apr-09 Kelbch 161 Update of Media Configuration during start-up \n
*******************************************************************************/
#if defined(__arm)
#include "tclib.h"
#include "embedded.h"
#include <stdio.h>
#include "bsd09cnf.h" /* component-globalal, system configuration */
#include "bsd09ddl.h" /* messages and processes */
#include "bsd02eep.h"
#include "cdr03eep.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
#include "cmbs_int.h" // CMBS internal API structure and defines
#include "cfr_debug.h" // CMBS debug definition
ST_CAPABLITIES g_st_CMBSCapabilities;
#if defined ( CMBS_API_TARGET )
#include "cfr_uart.h"
#include "tapp.h"
#include "tapp_log.h"
extern void _cfr_uartTransmitterReset( void );
extern void p_cmbs14_SuspendTxRes(u8 u8_Response);
extern void p_cmbs14_ResumeTxRes(u8 u8_Response);
extern ST_CMBS_APP g_CMBSApp;
#if defined (CRASH_DUMP)
extern bool tapp_dsr_IsCrashDumpAvailable(void);
#endif
#if defined (CRASH_DUMP)
#include "csys0reg.h"
#include "csys2vpb.h"
#include "csys5os.h"
#endif
#endif
extern void tapp_util_ConfigureUARTFlowCTRL(E_CMBS_FLOW_CTRL flowCTRL);
E_CMBS_RC _cmbs_int_cmd_SendOPUSPayload(void);
void _cmbs_int_cmd_CapabilitiesReply(u8 *pu8_Buffer);
void _cmbs_int_cmd_Capabilities(u8 *pu8_Buffer);
void _cmbs_int_cmd_StoreRAMDump(void);
int InitDuslicXS(void);
int SLIC_init(void);
// ========== _cmbs_int_cmd_Reset ===========
/*!
\brief reset the communication module
\param[in] < none >
\return < none >
*/
void _cmbs_int_cmd_Reset( void )
{
#ifdef OS_TASK_CONTROL
extern volatile u32 G_u32_tapp_ParamAreaGetRspFlag;
extern volatile u32 G_u32_tapp_ParamAreaGetRspOffset;
extern volatile u32 G_u32_tapp_ParamAreaGetRspDataLen;
#endif // OS_TASK_CONTROL
CFR_DBG_OUT ( "CMBS-API: Reset communication module \n" ) ;
#if defined ( CMBS_API_TARGET )
cfr_uartInitalize ( );
#endif
g_CMBSInstance.e_DestFlowState = E_CMBS_FLOW_STATE_GO;
g_CMBSInstance.e_OrigFlowState = E_CMBS_FLOW_STATE_GO;
#ifdef OS_TASK_CONTROL
G_u32_tapp_ParamAreaGetRspFlag = 0;
G_u32_tapp_ParamAreaGetRspOffset = 0;
G_u32_tapp_ParamAreaGetRspDataLen = 0;
#endif // OS_TASK_CONTROL
}
// ========== _cmbs_int_cmd_Hello ===========
/*!
\brief reset communication buffer and reply to host, ready to go.
\param[in,out] pu8_Buffer pointer to buffer, currently NULL, u16_Size size of buffer
\return < none >
*/
extern void cmbs_applNewTDMReconfigure ( u8 u8_Master, u8 u8_Speed, u8 u8_Sync, u16 u16_SlotEnable, u8 u8_Loop );
void _cmbs_int_cmd_Hello( u8 * pu8_Buffer, u16 u16_Size )
{
#if defined ( CMBS_API_TARGET )
u8 u8_Buffer[5];
#if !defined( CMBS_USB_AUDIO )
u8 u8_Master = FALSE, u8_Loop = FALSE;
#endif
if( pu8_Buffer )
{
CFR_DBG_OUT ( "CMBS-API: Receive Hello message with Media Information %02x %02x %02x\n",
pu8_Buffer[0],
pu8_Buffer[1],
pu8_Buffer[2]
);
#if !defined( CMBS_USB_AUDIO )
switch ( pu8_Buffer[0])
{
case CMBS_TDM_TYPE_MASTER:
u8_Master = TRUE;
u8_Loop = FALSE;
break;
case CMBS_TDM_TYPE_SLAVE:
u8_Master = FALSE;
u8_Loop = FALSE;
break;
case CMBS_TDM_TYPE_MASTER_LOOP:
u8_Master = TRUE;
u8_Loop = TRUE;
break;
case CMBS_TDM_TYPE_SLAVE_LOOP:
u8_Master = FALSE;
u8_Loop = TRUE;
break;
}
#ifndef NEW_TDM
cmbs_applTDMReconfigure( u8_Master, pu8_Buffer[1], pu8_Buffer[2], 0xFFFF, u8_Loop );
#else
cmbs_applNewTDMReconfigure( u8_Master, pu8_Buffer[1], pu8_Buffer[2], 0xFFFF, u8_Loop );
#endif //NEW_TDM
#endif //!defined( CMBS_USB_AUDIO )
if (u16_Size > LEGACY_CMD_HELLO_LENGTH) //means we also received UART Flow control configuration
{
#if (defined (UART) && !defined(USB)) || defined (CMBS_UART)
CFR_DBG_OUT ( "CMBS-API: Receive Hello message with UART Configuration %02x\n", pu8_Buffer[5]);
tapp_util_ConfigureUARTFlowCTRL(pu8_Buffer[5]);
#endif
}
}
else
{
CFR_DBG_OUT ( "CMBS-API: Receive Hello message without Media Information\n" );
}
// (Re-)Init transmit (to avoid problem occurred with USB, when old info is still in buffer when serial port is closed)
_cfr_uartTransmitterReset();
_cmbs_int_cmd_Reset();
cfr_ie_ser_u16( u8_Buffer, CMBS_API_TARGET_VERSION );
cfr_ie_ser_u16( u8_Buffer+sizeof(u16),CMBS_TARGET_BUILD );
u8_Buffer[4] = g_CMBSInstance.e_Mode;
#ifdef QSPIC_EEPROM
p_dr13_EEPONF_DisableFlashing(); // should call p_cmbs14_ResumeTxRes instead ?
#endif
#ifdef CMBS_TARGET_UP_RETRANSMISSION
tapp_dsr_UpdateHelloArrived(true);
#endif
tapp_util_Release_All_External_Calls(&g_CMBSApp); // If any Open Call
cmbs_int_cmd_Send( (u8)CMBS_CMD_HELLO_RPLY, u8_Buffer, sizeof(u8_Buffer) );
#else
UNUSED_PARAMETER(u16_Size);
#endif // CMBS_API_TARGET
UNUSED_PARAMETER( pu8_Buffer );
}
// ========== _cmbs_int_cmd_HelloRply ===========
/*!
\brief target reply received, get version info of target
\param[in,out] pu8_Buffer pointer to parameter, e.g. version info,etc.
\return < none >
*/
void _cmbs_int_cmd_HelloRply( u8 * pu8_Buffer )
{
#if !defined ( CMBS_API_TARGET )
u16 u16_Version;
cfr_ie_dser_u16 (pu8_Buffer, &u16_Version );
g_CMBSInstance.u16_TargetVersion = u16_Version;
if(u16_Version & 0xF000)
{
CFR_DBG_OUT( "TARGET API version: %x.%02x.%x\n", (u16_Version>>12),((u16_Version & 0xFF0)>>4), (u16_Version & 0xF) );
}
else
{
CFR_DBG_OUT( "TARGET API version: %02x.%02x\n", (u16_Version>>8),(u16_Version &0xFF) );
}
cfr_ie_dser_u16 (pu8_Buffer+2, &u16_Version );
g_CMBSInstance.u16_TargetBuild = u16_Version;
CFR_DBG_OUT( "TARGET BUILD : %02x.%02x\n", (u16_Version>>8),(u16_Version &0xFF) );
CFR_DBG_OUT( "TARGET mode : %d\n", pu8_Buffer[5] );
if ( g_CMBSInstance.u16_TargetVersion == 0x0001 )
{
// bootloader does not support checksum
g_st_CMBSCapabilities.u8_Checksum = 0;
}
_cmbs_int_StartupBlockSignal( &g_CMBSInstance );
#endif
}
// ========== cmbs_int_cmd_FlowNOK ===========
/*!
\brief destination side signal that it's not able to receive any packets.
stop transmission for destination.
\param[in,out] pu8_Buffer pointer to paramete, e.g. last received packet number
\return <none>
*/
void _cmbs_int_cmd_FlowNOK ( u8 * pu8_Buffer )
{
u16 u16_Packet;
cfr_ie_dser_u16 (pu8_Buffer, &u16_Packet );
g_CMBSInstance.e_DestFlowState = E_CMBS_FLOW_STATE_STOP;
#if !defined ( CMBS_TARGET_API )
CFR_DBG_WARN( "CMBS-API: Target side is busy, can't receive any more packets\n" );
#endif
}
// ========== cmbs_int_cmd_FlowRestart ===========
/*!
\brief destination side signal that it's able to receive packets.
enable transmission for destination.
\param[in,out] pu8_Buffer pointer to paramete, e.g. last received packet number
\return <none>
*/
void _cmbs_int_cmd_FlowRestart ( u8 * pu8_Buffer )
{
u16 u16_Packet;
cfr_ie_dser_u16 (pu8_Buffer, &u16_Packet );
g_CMBSInstance.e_DestFlowState = E_CMBS_FLOW_STATE_GO;
#if !defined ( CMBS_TARGET_API )
CFR_DBG_WARN( "CMBS-API: Target side is free, can receive packets again\n" );
#endif
}
// ========== cmbs_int_cmd_Dispatcher ===========
/*!
\brief dispatch internal CMBS commands
\param[in] u8_Cmd internal CMBS Command ID
\param[in] pu8_Buffer pointer to parameter
\param[in] u16_Size size of parameter
\return <none>
*/
void cmbs_int_cmd_Dispatcher( u8 u8_Cmd, u8 * pu8_Buffer, u16 u16_Size )
{
if( u16_Size ){} // unused u16_Size; eliminate "unused parameter" compiler warning
switch ( u8_Cmd )
{
#if defined ( CMBS_API_TARGET )
// start up command of host to target
case CMBS_CMD_HELLO:
/// Hello buffer configure also the IOM channel
if ( u16_Size )
_cmbs_int_cmd_Hello( pu8_Buffer, u16_Size );
else
_cmbs_int_cmd_Hello( NULL, 0 );
// preset with 0, maybe a different host now.
g_st_CMBSCapabilities.u8_Checksum = 0;
break;
case CMBS_CMD_FLASH_START_RES:
p_cmbs14_SuspendTxRes( 1 );
break;
case CMBS_CMD_FLASH_STOP_RES:
p_cmbs14_ResumeTxRes( 1 );
break;
// checksum command of host to target
case CMBS_CMD_CAPABILITIES:
/// Capabilities buffer configure also the IOM channel
if ( u16_Size )
_cmbs_int_cmd_Capabilities(pu8_Buffer);
else
_cmbs_int_cmd_Capabilities(NULL);
// send own Capabilities in a reply message
cmbs_int_cmd_SendCapablitiesReply();
break;
// checksum command of host to target
case CMBS_CMD_STORE_RAM_DUMP:
/// To Forcefully reset the CMBS to capture the RAM Dump
_cmbs_int_cmd_StoreRAMDump();
break;
#endif
#if !defined ( CMBS_API_TARGET )
// start up reply command from target to host
case CMBS_CMD_HELLO_RPLY:
_cmbs_int_cmd_HelloRply( pu8_Buffer );
break;
case CMBS_CMD_FLASH_START_REQ:
_cmbs_int_SuspendTxCommands();
break;
case CMBS_CMD_FLASH_STOP_REQ:
_cmbs_int_ResumeTxCommands();
break;
// capabilities reply command from target to host
case CMBS_CMD_CAPABILITIES_RPLY:
_cmbs_int_cmd_CapabilitiesReply(pu8_Buffer);
break;
case CMBS_CMD_SEND_OPUS_PAYLOAD:
_cmbs_int_cmd_SendOPUSPayload();
break;
#endif
case CMBS_CMD_FLOW_NOK:
// destination side is busy and not able to receive any more packets
_cmbs_int_cmd_FlowNOK( pu8_Buffer );
break;
case CMBS_CMD_FLOW_RESTART:
// destination side is free and restart to receive packets
_cmbs_int_cmd_FlowRestart(pu8_Buffer );
break;
case CMBS_CMD_RESET:
_cmbs_int_cmd_Reset();
break;
default:
CFR_DBG_WARN( "ProtCMD Dispatcher: %d is not implemented, yet!\n", u8_Cmd );
}
}
u32 cmbs_cmd_parser( CMBS_CMD id, u8* pu8_Buffer, u8* pu8_Buffer_parse, u32 u32_Pos)
{
switch ( id )
{
case CMBS_CMD_HELLO:
// byte 0 = TDM config
switch(pu8_Buffer[0])
{
case CMBS_TDM_TYPE_MASTER: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n TDM config = %s ", "CMBS_TDM_TYPE_MASTER");
break;
case CMBS_TDM_TYPE_SLAVE: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n TDM config = %s ", "CMBS_TDM_TYPE_SLAVE");
break;
case CMBS_TDM_TYPE_MASTER_LOOP: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n TDM config = %s ", "CMBS_TDM_TYPE_MASTER_LOOP");
break;
case CMBS_TDM_TYPE_SLAVE_LOOP: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n TDM config = %s ", "CMBS_TDM_TYPE_SLAVE_LOOP");
break;
}
// byte 1 = speed config
switch(pu8_Buffer[1])
{
case CMBS_TDM_PCM_512: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_PCM_512");
break;
case CMBS_TDM_PCM_768: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_PCM_768");
break;
case CMBS_TDM_PCM_1536: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_PCM_1536");
break;
case CMBS_TDM_PCM_2048: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_PCM_2048");
break;
case CMBS_TDM_IOM_512: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_IOM_512");
break;
case CMBS_TDM_IOM_768: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_IOM_768");
break;
case CMBS_TDM_IOM_1536: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_IOM_1536");
break;
case CMBS_TDM_IOM_2048: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n speed config = %s ", "CMBS_TDM_IOM_2048");
break;
}
// byte 2 = sync config
switch(pu8_Buffer[2])
{
case CMBS_TDM_SYNC_SHORT_FR: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n sync config = %s ", "CMBS_TDM_SYNC_SHORT_FR");
break;
case CMBS_TDM_SYNC_SHORT_FF: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n sync config = %s ", "CMBS_TDM_SYNC_SHORT_FF");
break;
case CMBS_TDM_SYNC_SHORT_LF: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n sync config = %s ", "CMBS_TDM_SYNC_SHORT_LF");
break;
case CMBS_TDM_SYNC_LONG: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n sync config = %s ", "CMBS_TDM_SYNC_LONG");
break;
}
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos), "\n SlotEnable = 0x%04x", (pu8_Buffer[4] << 8) | pu8_Buffer[3]);
switch(pu8_Buffer[5])
{
case CMBS_FLOW_CTRL_NONE: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n device type = %s ", "CMBS_FLOW_CTRL_NONE");
break;
case CMBS_FLOW_CTRL_XON_XOFF: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n device type = %s ", "CMBS_FLOW_CTRL_XON_XOFF");
break;
case CMBS_FLOW_CTRL_RTS_CTS: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n device type = %s ", "CMBS_FLOW_CTRL_RTS_CTS");
break;
case CMBS_FLOW_CTRL_DSR_DTR: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n device type = %s ", "CMBS_FLOW_CTRL_DSR_DTR");
break;
}
break;
case CMBS_CMD_HELLO_RPLY:
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos), "\n CMBS_API_TARGET_VERSION = 0x%04x", (pu8_Buffer[1] << 8) | pu8_Buffer[0]);
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos), "\n CMBS_TARGET_BUILD = 0x%04x ", (pu8_Buffer[3]<<8) | pu8_Buffer[2]);
switch(pu8_Buffer[4])
{
case CMBS_MODE_MLB: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n mode = %s ", "CMBS_MODE_MLB");
break;
case CMBS_MODE_AMLB: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n mode = %s ", "CMBS_MODE_AMLB");
break;
case CMBS_MODE_DECT_PIPE: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n mode = %s ", "CMBS_MODE_DECT_PIPE");
break;
case CMBS_MODE_DECT_MAC_PIPE: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n mode = %s ", "CMBS_MODE_DECT_MAC_PIPE");
break;
case CMBS_MODE_MAX: u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n mode = %s ", "CMBS_MODE_MAX");
break;
}
break;
case CMBS_CMD_CAPABILITIES:
case CMBS_CMD_CAPABILITIES_RPLY:
if(pu8_Buffer[4] & 1)
{
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n %s ", "CHECKSUM_SUPPORT");
}
else
{
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos),"\n %s ", "CHECKSUM_NOT_SUPPORT");
}
break;
case CMBS_CMD_FLOW_NOK:
case CMBS_CMD_FLOW_RESTART:
u32_Pos+=sprintf((char*)(pu8_Buffer_parse+u32_Pos), "\n packet = 0x%04x", (pu8_Buffer[0] << 8) | pu8_Buffer[1]);
break;
case CMBS_CMD_FLASH_START_RES:
case CMBS_CMD_FLASH_STOP_RES:
case CMBS_CMD_FLASH_START_REQ:
case CMBS_CMD_FLASH_STOP_REQ:
case CMBS_CMD_RESET:
case CMBS_CMD_STORE_RAM_DUMP:
case CMBS_CMD_SEND_OPUS_PAYLOAD:
break;
}
return u32_Pos ;
}
// ========== cmbs_int_cmd_FlowNOKHandle ===========
/*!
\brief send information to other side to stop transmission
\param[in,out] void
\return < none >
*/
void cmbs_int_cmd_FlowNOKHandle ( u16 u16_Packet )
{
u8 u8_Buffer[2];
if ( g_CMBSInstance.e_OrigFlowState == E_CMBS_FLOW_STATE_GO )
{
g_CMBSInstance.e_OrigFlowState = E_CMBS_FLOW_STATE_STOP;
cfr_ie_ser_u16 ( u8_Buffer, u16_Packet );
cmbs_int_cmd_Send( (u8)CMBS_CMD_FLOW_NOK, u8_Buffer, sizeof(u8_Buffer) );
}
}
// ========== cmbs_int_cmd_FlowRestartHandle ===========
/*!
\brief send information to other side to re-enable transmission
\param[in,out] void
\return void cmbs_int_cmdFlowStop description
*/
void cmbs_int_cmd_FlowRestartHandle ( u16 u16_Packet )
{
u8 u8_Buffer[2];
if ( g_CMBSInstance.e_OrigFlowState == E_CMBS_FLOW_STATE_STOP )
{
g_CMBSInstance.e_OrigFlowState = E_CMBS_FLOW_STATE_GO;
cfr_ie_ser_u16 ( u8_Buffer, u16_Packet );
cmbs_int_cmd_Send( (u8)CMBS_CMD_FLOW_RESTART, u8_Buffer, sizeof(u8_Buffer) );
}
}
void cmbs_int_cmd_ReceiveEarly ( u8 * pu8_Buffer )
{
PST_CMBS_SER_MSG p_Mssg = (PST_CMBS_SER_MSG)pu8_Buffer;
// int i;
// CFR_DBG_OUT ( "CMBS-API: message Early Receive\n" );
// CFR_DBG_OUT ( "CMBS-API: packet => ");
// for ( i=0; i < 6; i++ )
// CFR_DBG_OUT ( "%02x ", pu8_Buffer[i] );
// CFR_DBG_OUT ( "\n" );
if ( (p_Mssg->st_MsgHdr.u16_EventID & CMBS_CMD_MASK) == CMBS_CMD_MASK)
{
// cmbs_dbg_CmdTrace ( pu8_Buffer, 0 );
cmbs_int_cmd_Dispatcher( (u8)p_Mssg->st_MsgHdr.u16_EventID, (u8*)p_Mssg->u8_Param, 0 );
}
}
u8 cmbs_int_cmd_FlowStateGet ( void )
{
return (u8)g_CMBSInstance.e_DestFlowState;
}
// ========== _cmbs_int_cmd_Capabilities ===========
/*!
\brief Capabilities of the Host received, e.g. checksum.
\param[in,out] pu8_Buffer pointer to buffer, currently NULL
\return < none >
*/
void _cmbs_int_cmd_Capabilities(u8 *pu8_Buffer)
{
#if defined ( CMBS_API_TARGET )
// u8 u8_Buffer[5];
if ( pu8_Buffer )
{
// Curretnyl 4 Bytes of capabilities are sent, but it could be extented for future use
// first byte is the length.
if ( pu8_Buffer[4] & CMBS_CAPABILITY_MASK )
{
// currently the only supported capability
// Store this capability
g_st_CMBSCapabilities.u8_Checksum = 1;
}
else
{
g_st_CMBSCapabilities.u8_Checksum = 0;
}
}
#endif // CMBS_API_TARGET
if( pu8_Buffer ){} // pu8_Buffer irrelevat here; eliminate "unused parameter" compiler warning
}
// ========== _cmbs_int_cmd_SendOPUSPayload ===========
/*!
\brief Send OPUS Payload to Target, with checksum.
\param[in,out] < none >
\return < none >
*/
void cmbs_send_OPUSPayload(PST_CFR_IE_LIST p_List, u8 *pu8_OPUSData, u16 u16_OPUSData_Size)
{
#if !defined(CMBS_API_TARGET)
cmbs_api_ie_OPUSDataAdd(p_List, pu8_OPUSData, u16_OPUSData_Size);
cmbs_int_EventSend(CMBS_EV_DEM_OPUS_DATA, p_List->pu8_Buffer, p_List->u16_CurSize);
#endif
}
#if !defined(CMBS_API_TARGET)
u8 OPUS_30ms_buff[240];
#ifdef DEBUG_UART_DATA_PIPE
u8 u8_Init = 1;
#endif
#endif
E_CMBS_RC _cmbs_int_cmd_SendOPUSPayload(void)
{
#if !defined(CMBS_API_TARGET)
#ifndef DEBUG_UART_DATA_PIPE
static char *filename_stereo = "../feel_it_still.opus";
static FILE *fp = NULL;
#endif
PST_CFR_IE_LIST p_List;
ST_IE_DATA st_Data;
#ifndef DEBUG_UART_DATA_PIPE
if (fp == NULL) {
fp = fopen(filename_stereo, "rb");
if (fp)
{
char file_header[16];
fread(&file_header, 1, 16, fp);
}
}
memset(&OPUS_30ms_buff, 0x0 , 240);
if (fp)
{
char PKTheader[2];
fread(&PKTheader, 1, 2, fp);
fread(&OPUS_30ms_buff, 1, 76, fp);
fread(&PKTheader, 1, 2, fp);
fread(&OPUS_30ms_buff[76], 1, 76, fp);
fread(&PKTheader, 1, 2, fp);
fread(&OPUS_30ms_buff[152], 1, 76, fp);
//printf("We have read the '%d' bytes from file\n", ret);
if (feof(fp))
{
/* We have reached the end of the file, rewind and start again.... Infinite loop */
//printf("We have reached the end of the file\n");
fclose(fp);
fp = NULL;
}
}
//else
{
//printf("We failed to open the file name '%s'\n", filename_stereo);
}
#endif
#ifdef DEBUG_UART_DATA_PIPE
if (u8_Init)
{
memset(&OPUS_30ms_buff[0], 'u', 76);
memset(&OPUS_30ms_buff[76], 'v', 76);
memset(&OPUS_30ms_buff[152], 'w', 76);
u8_Init = 0;
}
else
{
memset(&OPUS_30ms_buff[0], 'x', 76);
memset(&OPUS_30ms_buff[76], 'y', 76);
memset(&OPUS_30ms_buff[152], 'z', 76);
u8_Init = 1;
}
#endif
ALLOCATE_IE_LIST(p_List);
st_Data.u16_DataLen = 228;
st_Data.pu8_Data = OPUS_30ms_buff;
cmbs_send_OPUSPayload(p_List, st_Data.pu8_Data, st_Data.u16_DataLen);
return CMBS_RC_OK;
#else
return CMBS_RC_OK;
#endif // CMBS_API_TARGET
}
// ========== _cmbs_int_cmd_CapabilitiesReply ===========
/*!
\brief Capabilities of the Target received, e.g. checksum.
\param[in,out] pu8_Buffer pointer to buffer, currently NULL
\return < none >
*/
void _cmbs_int_cmd_CapabilitiesReply(u8 *pu8_Buffer)
{
#if !defined ( CMBS_API_TARGET )
if ( pu8_Buffer )
{
// Curretnyl 4 Bytes of capabilities are sent, but it could be extented for future use
// first byte is the length.
if ( pu8_Buffer[4] & CMBS_CAPABILITY_MASK )
{
// curretnlyx the only supported capability
// Store this capability
g_st_CMBSCapabilities.u8_Checksum = 1;
CFR_DBG_INFO("\n CHECKSUM_SET received\n");
}
}
// notify upper layer
_cmbs_int_StartupBlockSignal(&g_CMBSInstance);
#endif // CMBS_API_TARGET
if( pu8_Buffer ){} // pu8_Buffer irrelevat here; eliminate "unused parameter" compiler warning
}
// ========== _cmbs_int_cmd_StoreRAMDump ===========
/*!
\brief To forcefully reset the CMBS to capture RAM Dump
\param[in,out] < none >
\return < none >
*/
void _cmbs_int_cmd_StoreRAMDump(void)
{
#if defined ( CMBS_API_TARGET ) && defined ( CRASH_DUMP )
typedef void (*pfn_Crash)(void);
{
pfn_Crash p_Crashfn;
p_Crashfn = (pfn_Crash)0xFFFFFFFF;
p_Crashfn();
}
// wait for WD reset
while (1);
#endif // CMBS_API_TARGET
}
//*/

File diff suppressed because it is too large Load Diff

View File

@@ -1,48 +0,0 @@
/*!
* \file cmbs_dbg.h
* \brief This file contains debug functions for CMBS API
* \author andriig
*
* @(#) %filespec: cmbs_dbg.h~DMZD53#6 %
*
*******************************************************************************/
#if !defined( CMBS_DBG_H )
#define CMBS_DBG_H
#include "cmbs_api.h" /* CMBS API definition */
#include "cmbs_han.h"
const char* cmbs_dbg_GetEventName(E_CMBS_EVENT_ID id);
const char* cmbs_dbg_GetCommandName(CMBS_CMD id);
const char* cmbs_dbg_GetParamName(E_CMBS_PARAM e_ParamId);
const char* cmbs_dbg_GetIEName(E_CMBS_IE_TYPE e_IE);
const char* cmbs_dbg_GetHsTypeName(E_CMBS_HS_TYPE e_HsType);
const char* cmbs_dbg_GetToneName(E_CMBS_TONE e_Tone);
const char* cmbs_dbg_GetCallProgressName(E_CMBS_CALL_PROGRESS e_Prog);
const char* cmbs_dbg_GetCallTypeName(E_CMBS_CALL_STATE_TYPE e_CallType);
const char* cmbs_dbg_GetCallStateName(E_CMBS_CALL_STATE_STATUS e_CallStatus);
E_CMBS_PARAM cmbs_dbg_String2E_CMBS_PARAM(const char *psz_Value);
E_CMBS_TONE cmbs_dbg_String2E_CMBS_TONE(const char *psz_Value);
E_CMBS_CALL_PROGRESS cmbs_dbg_String2E_CMBS_CALL_PROGR(const char *psz_Value);
void cmbs_dbg_DumpIEList(u8 *pu8_Buffer, u16 u16_Size);
void cmbs_dbg_CmdTrace(const char *message, ST_CMBS_SER_MSGHDR *pst_Hdr, u8 *pu8_Buffer);
void cmbs_dbg_getTimestampString(char *buffer);
/* Parse IE Function */
typedef u32 (*pfn_cmbs_dbg_ParseIEFunc)(char *pOutput, u32 u32_OutputSize, void *pv_IE, u16 u16_IE);
void cmbs_dbg_SetParseIEFunc(pfn_cmbs_dbg_ParseIEFunc);
typedef enum
{
CMBS_LOG_OUTPUT_TERMINAL = 0x0,
CMBS_LOG_OUTPUT_LOGFILE,
CMBS_LOG_OUTPUT_BOTH,
CMBS_LOG_OUTPUT_NONE,
CMBS_LOG_OUTPUT_MAX
}E_CMBS_LOG_OUTPUT;
#define CMBS_MAX_IE_PRINT_SIZE 14000
#endif

View File

@@ -1,35 +0,0 @@
/*!
* \file cmbs_dcm.c
* \brief API cakk media functions
* \Author CMBS Team
*
* @(#) %filespec: cmbs_dcm.c~DMZD53#7 %
*
*******************************************************************************/
#include "cmbs_int.h"
E_CMBS_RC cmbs_dcm_CallTransferRes(PST_IE_CALLTRANSFERREQ pst_TrfReq, PST_IE_RESPONSE pst_Resp)
{
PST_CFR_IE_LIST p_List;
ALLOCATE_IE_LIST(p_List);
cmbs_api_ie_CallTransferReqAdd((void*)p_List, pst_TrfReq);
cmbs_api_ie_ResponseAdd((void*)p_List, pst_Resp);
return cmbs_int_EventSend( CMBS_EV_DCM_CALL_TRANSFER_RES, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dcm_CallConferenceRes(PST_IE_CALLTRANSFERREQ pst_TrfReq, PST_IE_RESPONSE pst_Resp)
{
PST_CFR_IE_LIST p_List;
ALLOCATE_IE_LIST(p_List);
cmbs_api_ie_CallTransferReqAdd((void*)p_List, pst_TrfReq);
cmbs_api_ie_ResponseAdd((void*)p_List, pst_Resp);
return cmbs_int_EventSend( CMBS_EV_DCM_CALL_CONFERENCE_RES, p_List->pu8_Buffer, p_List->u16_CurSize );
}

View File

@@ -1,299 +0,0 @@
/*!
* \file cmbs_dee.c
* \brief DEE (external endpoint) functions
* \Author stein
*
* @(#) %filespec: cmbs_dee.c~DMZD53#9 %
*
*******************************************************************************/
#if defined(__arm)
# include "tclib.h"
# include "embedded.h"
#else
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
#endif
#include "cmbs_int.h"
typedef enum
{
FXS_EV_UNDEF,
FXS_EV_OFFHOOK, /*!< OffHook event */
FXS_EV_ONHOOK, /*!< OnHook event */
FXS_EV_KEYPAD, /*!< Keypad event */
FXS_EV_OFFHOOK_INT, /* Off hook to make inter com call (call class)*/
FXS_EV_OFFHOOK_EXT, /* Off hook to make External call (call class)*/
FXS_EV_PARL_EXT_CALL,
FXS_EV_PARL_INT_CALL,
FXS_EV_CW_ACCEPT,
FXS_EV_CALL_HOLD,
FXS_EV_CALL_RESUME,
FXS_EV_CALL_TRFR,
FXS_EV_CALL_CONF,
FXS_EV_CALL_RELEASE,
FXS_EV_CALL_TOGGLE,
FXS_EV_HOST_CONFIG,
FXS_EV_REG_FXS,
FXS_EV_MAX
} FXS_EV;
typedef enum
{
E_TAPP_AUD_CHANNEL_MODE_UNDEF, /*!< channel is not used */
E_TAPP_AUD_CHANNEL_MODE_PCM_16_NB, /*!< channel is used as PCM 16 bit linear narrow-band 8 KHz*/
E_TAPP_AUD_CHANNEL_MODE_PCM_16_WB, /*!< channel is used as PCM 16 bit linear wide-band 16 KHz */
E_TAPP_AUD_CHANNEL_MODE_PCM_8_ALAW, /*!< channel is used as PCM 8 bit a-law 8 KHz */
E_TAPP_AUD_CHANNEL_MODE_PCM_8_ULAW, /*!< channel is used as PCM 8 bit u-law 8 KHz */
E_TAPP_AUD_CHANNEL_MODE_PCM_8, /*!< channel is used as PCM 8 bit linear 8 KHz */
E_TAPP_AUD_CHANNEL_MODE_WB_16_ALAW, /*!< channel is used as PCM 8 bit a-law 16 KHz */
E_TAPP_AUD_CHANNEL_MODE_WB_16_ULAW, /*!< channel is used as PCM 8 bit u-law 16 KHz */
E_TAPP_AUD_CHANNEL_MODE_MAX /*!< channel mode max definition */
} E_TAPP_AUD_CHANNEL_MODE;
u32 cmbs_dee_CallInstanceNew( void * pv_AppRefHandle )
{
UNUSED_PARAMETER( pv_AppRefHandle );
return ++g_CMBSInstance.u32_CallInstanceCount;
}
E_CMBS_RC cmbs_dee_CallEstablish( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_ESTABLISH, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_ReconnectCallSwitch( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DSR_RECON_CALL_SWITCH, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallProgress( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_PROGRESS, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallAnswer( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_ANSWER, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallRelease( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_RELEASE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallReleaseComplete( void * pv_AppRefHandle, u32 u32_CallInstance )
{
PST_CFR_IE_LIST p_List = cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_CallInstanceAdd( p_List, u32_CallInstance );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_RELEASECOMPLETE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallInbandInfo(void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_INBANDINFO, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallMediaOffer( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_MEDIA_OFFER, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallMediaOfferRes( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_MEDIA_OFFER_RES, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_HsCodecCfmFailed( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_HS_CODEC_CFM_FAILED, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallHold( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_HOLD, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallResume( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_RESUME, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallHoldRes( void * pv_AppRefHandle, u32 u32_CallInstance, u16 u16_HsNum, E_CMBS_RESPONSE e_Response )
{
ST_IE_RESPONSE st_Response;
PST_CFR_IE_LIST pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
ALLOCATE_IE_LIST(pv_RefIEList);
st_Response.e_Response = e_Response;
// Add call Instance IE
cmbs_api_ie_CallInstanceAdd( (void*)pv_RefIEList, u32_CallInstance );
cmbs_api_ie_ResponseAdd( (void*)pv_RefIEList, &st_Response );
cmbs_api_ie_HandsetsAdd( (void*)pv_RefIEList, u16_HsNum);
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_HOLD_RES, pv_RefIEList->pu8_Buffer, pv_RefIEList->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallResumeRes( void * pv_AppRefHandle, u32 u32_CallInstance, u16 u16_HsNum, E_CMBS_RESPONSE e_Response )
{
ST_IE_RESPONSE st_Response;
PST_CFR_IE_LIST pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
ALLOCATE_IE_LIST(pv_RefIEList);
st_Response.e_Response = e_Response;
// Add call Instance IE
cmbs_api_ie_CallInstanceAdd( (void*)pv_RefIEList, u32_CallInstance );
cmbs_api_ie_ResponseAdd( (void*)pv_RefIEList, &st_Response );
cmbs_api_ie_HandsetsAdd( (void*)pv_RefIEList, u16_HsNum);
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_RESUME_RES, pv_RefIEList->pu8_Buffer, pv_RefIEList->u16_CurSize );
}
E_CMBS_RC cmbs_dee_HandsetLinkRelease(u8 Handset)
{
PST_CFR_IE_LIST pv_RefIEList;
ALLOCATE_IE_LIST(pv_RefIEList);
cmbs_api_ie_HsNumberAdd((void*)pv_RefIEList, Handset);
return cmbs_int_EventSend( CMBS_EV_DEE_HANDSET_LINK_RELEASE , pv_RefIEList->pu8_Buffer, pv_RefIEList->u16_CurSize );
}
E_CMBS_RC cmbs_dee_MergeCalls( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_MERGE_CALLS, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_AnsFxsCall( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend(CMBS_EV_DEE_ANS_FXS_CALL, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_MakeSPKOgCall( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend(CMBS_EV_DEE_SPK_OG_CALL, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_EmergencyCallRelease( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_EMERGENCY_RELEASE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallScreening( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_SCREENING, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallDeflection( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_DEFLECTION, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dee_CallDeflectionRes( void * pv_AppRefHandle, u32 u32_CallInstance, u16 u16_HsNum, E_CMBS_RESPONSE e_Response )
{
ST_IE_RESPONSE st_Response;
PST_CFR_IE_LIST pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
ALLOCATE_IE_LIST(pv_RefIEList);
st_Response.e_Response = e_Response;
// Add call Instance IE
cmbs_api_ie_CallInstanceAdd( (void*)pv_RefIEList, u32_CallInstance );
cmbs_api_ie_ResponseAdd( (void*)pv_RefIEList, &st_Response );
cmbs_api_ie_HandsetsAdd( (void*)pv_RefIEList, u16_HsNum);
return cmbs_int_EventSend( CMBS_EV_DEE_CALL_DEFLECTION_RES, pv_RefIEList->pu8_Buffer, pv_RefIEList->u16_CurSize );
}
//*/

View File

@@ -1,100 +0,0 @@
/*!
* \file cmbs_dem.c
* \brief DEM (external media) functions
* \Author stein
*
* @(#) %filespec: cmbs_dem.c~DMZD53#4 %
*
*******************************************************************************/
#if defined(__arm)
# include "tclib.h"
# include "embedded.h"
#else
# include <stdlib.h>
# include <stdio.h>
# include <string.h>
#endif
#include "cmbs_int.h"
#include "cfr_ie.h"
#include "cfr_debug.h"
E_CMBS_RC cmbs_dem_ChannelStart( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_CHANNEL_START, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_ChannelStop( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_CHANNEL_STOP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_ChannelInternalConnect( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_CHANNEL_INTERNAL_CONNECT, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_ToneStart( void *pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_TONE_START, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_ToneStop( void *pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_TONE_STOP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_TDMLoopbackStart( void *pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_TDM_LOOPBACK_START, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_TDMLoopbackStop( void *pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_DEM_TDM_LOOPBACK_STOP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dem_ConfigTDMSlots(void *pv_AppRefHandle, u32 u32_TDMSlots)
{
PST_CFR_IE_LIST p_List;
UNUSED_PARAMETER( pv_AppRefHandle );
ALLOCATE_IE_LIST(p_List);
cmbs_api_ie_TDMSlotsAdd( (void*)p_List, u32_TDMSlots );
return cmbs_int_EventSend( CMBS_EV_DEM_CONFIG_TDM_SLOTS, p_List->pu8_Buffer, p_List->u16_CurSize );
}
//*/

File diff suppressed because it is too large Load Diff

View File

@@ -1,224 +0,0 @@
/*!
* \file cmbs_fifo.c
* \brief Fifo message queue for CMBS host and CMBS target
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ---------------------------------------------------------------------------\n
*
*******************************************************************************/
#include "cmbs_api.h"
#include "cmbs_int.h"
#include "cfr_ie.h"
#include "cfr_debug.h"
#include "cmbs_fifo.h"
#include "cfr_mssg.h"
#if defined(CMBS_API_TARGET)
#include "cg0type.h"
#include "csys0reg.h"
#include "cos00int.h" // Needed for critical section
#if defined (CSS)
#include "plicu.h"
#include "priorities.h"
#endif
#endif
#if defined( __linux__ )
#include <stdio.h>
#include <string.h>
#endif
// Brief
//------------
// Init the FIFO
void cmbs_util_FifoInit(ST_CMBS_FIFO *p_Fifo,
void *pv_Buffer,
const u16 u16_ElementSize,
const u16 u16_Size,
CFR_CMBS_CRITICALSECTION p_cSection)
{
//printf("cmbs_util_FifoInit-->\n");
p_Fifo->u16_Count = 0;
p_Fifo->u16_ElemSize = u16_ElementSize;
p_Fifo->p_Read = p_Fifo->p_Write = pv_Buffer;
p_Fifo->u16_Size = p_Fifo->u16_Read2End = p_Fifo->u16_Write2End = u16_Size;
p_Fifo->p_cSection = p_cSection;
//init statistics
p_Fifo->s_fifo_statistics.u32_MaxInUse = 0;
p_Fifo->s_fifo_statistics.u32_CountFIFOIsFull= 0;
CFR_CMBS_INIT_CRITICALSECTION ( p_Fifo->p_cSection );
}
// Brief
//------------
// Push a message to FIFO
u8 cmbs_util_FifoPush(ST_CMBS_FIFO *p_Fifo, void *pv_Element)
{
u16 u16_Write2End;
u8 *p_Write;
//printf("cmbs_util_FifoPush-->\n");
CFR_CMBS_ENTER_CRITICALSECTION ( p_Fifo->p_cSection );
if ( p_Fifo->u16_Count >= p_Fifo->u16_Size )
{
p_Fifo->s_fifo_statistics.u32_CountFIFOIsFull++;
p_Fifo->s_fifo_statistics.u32_MaxInUse = 0;
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
CFR_DBG_WARN("cmbs_util_FifoPush: FIFO full\n");
return 0;
}
p_Write = p_Fifo->p_Write;
memcpy(p_Write, pv_Element, p_Fifo->u16_ElemSize);
p_Write += p_Fifo->u16_ElemSize;
u16_Write2End = p_Fifo->u16_Write2End;
if ( --u16_Write2End == 0 )
{
u16_Write2End = p_Fifo->u16_Size;
p_Write -= u16_Write2End * p_Fifo->u16_ElemSize;
}
p_Fifo->u16_Write2End = u16_Write2End;
p_Fifo->p_Write = p_Write;
p_Fifo->u16_Count++;
if(p_Fifo->u16_Count > p_Fifo->s_fifo_statistics.u32_MaxInUse)
{
p_Fifo->s_fifo_statistics.u32_MaxInUse = p_Fifo->u16_Count;
}
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
return 1;
}
// Brief
//------------
// Get a message from FIFO
void* cmbs_util_FifoGet(ST_CMBS_FIFO *p_Fifo)
{
//printf("cmbs_util_FifoGet-->\n");
CFR_CMBS_ENTER_CRITICALSECTION ( p_Fifo->p_cSection );
if ( p_Fifo->u16_Count == 0 )
{
// CFR_DBG_WARN( "cmbs_util_FifoGet: FIFO empty\n" );
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
return NULL;
}
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
return p_Fifo->p_Read;
}
// Brief
//------------
// Pop (extract) a message from a FIFO
void* cmbs_util_FifoPop(ST_CMBS_FIFO *p_Fifo)
{
u16 u16_Read2End;
u8 *p_Read;
void *p_Element;
//printf("cmbs_util_FifoPop-->\n");
CFR_CMBS_ENTER_CRITICALSECTION ( p_Fifo->p_cSection );
if ( p_Fifo->u16_Count == 0 )
{
CFR_DBG_WARN( "cmbs_util_FifoGet: FIFO empty\n" );
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
return NULL;
}
u16_Read2End = p_Fifo->u16_Read2End;
p_Read = p_Fifo->p_Read;
p_Element = p_Read;
p_Read += p_Fifo->u16_ElemSize;
if ( --u16_Read2End == 0 )
{
u16_Read2End = p_Fifo->u16_Size;
p_Read -= u16_Read2End * p_Fifo->u16_ElemSize;
}
p_Fifo->p_Read = p_Read;
p_Fifo->u16_Read2End = u16_Read2End;
p_Fifo->u16_Count--;
CFR_CMBS_LEAVE_CRITICALSECTION ( p_Fifo->p_cSection );
return p_Element;
}
// Brief
//------------
// Pop all messages from a FIFO. Return no. of popped messages
u16 cmbs_util_FifoClear(ST_CMBS_FIFO *p_Fifo)
{
u16 u16_count=0;
while (cmbs_util_FifoPop(p_Fifo)) // pop untill return NULL
{
u16_count++;
}
return u16_count;
}
void cmbs_util_FifoPrintStatistics(ST_CMBS_FIFO* p_Fifo)
{
CFR_CMBS_ENTER_CRITICALSECTION(p_Fifo->p_cSection);
printf("\n\tCurrent use in fifo: %d",p_Fifo->u16_Count);
printf("\n\tMax use in fifo: %d",p_Fifo->s_fifo_statistics.u32_MaxInUse);
printf("\n\tCount of full fifo: %d\n\n",p_Fifo->s_fifo_statistics.u32_CountFIFOIsFull);
CFR_CMBS_LEAVE_CRITICALSECTION(p_Fifo->p_cSection);
}
u16 cmbs_util_FifoCount(ST_CMBS_FIFO *p_Fifo)
{
u16 u16_count;
CFR_CMBS_ENTER_CRITICALSECTION(p_Fifo->p_cSection);
u16_count = p_Fifo->u16_Count;
CFR_CMBS_LEAVE_CRITICALSECTION(p_Fifo->p_cSection);
return u16_count;
}
/*[----------- End Of File -------------------------------------------------------------------------------------------------------------]*/

View File

@@ -1,85 +0,0 @@
/*!
* \file cmbs_fifo.h
* \brief Fifo message queue for CMBS host and CMBS target
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
*
*******************************************************************************/
#if !defined( CMBS_FIFO_H )
#define CMBS_FIFO_H
#include "cmbs_int.h"
#include "cfr_mssg.h"
#if (VDSW_FEATURES & VDSW_ENC_REPEATER)
#define FIFO_NUM_ENTRIES SD09_MAX_NUM_SUB + SD09_MAX_SUB_CRFP
#else
#define FIFO_NUM_ENTRIES SD09_MAX_NUM_SUB
#endif
typedef struct
{
u32 u32_MaxInUse;
u32 u32_CountFIFOIsFull;
}
t_st_Fifo_Statistics;
/*! \brief simple FIFO definition */
typedef struct
{
u16 u16_Count; // number of elements
u16 u16_Size; // buffer size( max number of elements )
u16 u16_ElemSize; // element size
void * p_Read; // read pointer
void * p_Write; // write pointer
u16 u16_Read2End; // number of unused elements until fifo end
u16 u16_Write2End; // number of unused elements until fifo end
CFR_CMBS_CRITICALSECTION p_cSection; // Critical Section for the queue
t_st_Fifo_Statistics s_fifo_statistics; // statistics for queue
} ST_CMBS_FIFO, * PST_CMBS_FIFO;
#if defined( __cplusplus )
extern "C"
{
#endif
/*****************************************************************************
* Utilities
*****************************************************************************/
void cmbs_util_FifoInit( ST_CMBS_FIFO * p_Fifo,
void * pv_Buffer,
const u16 u16_ElementSize,
const u16 u16_Size,
CFR_CMBS_CRITICALSECTION p_cSection);
u8 cmbs_util_FifoPush( ST_CMBS_FIFO * p_Fifo, void * pv_Element );
void * cmbs_util_FifoGet( ST_CMBS_FIFO * p_Fifo );
void * cmbs_util_FifoPop( ST_CMBS_FIFO * p_Fifo );
u16 cmbs_util_FifoClear( ST_CMBS_FIFO * p_Fifo );
u16 cmbs_util_FifoCount(ST_CMBS_FIFO *p_Fifo);
void cmbs_util_FifoPrintStatistics(ST_CMBS_FIFO* p_Fifo);
#if defined( __cplusplus )
}
#endif
#endif // CMBS_FIFO_H

View File

@@ -1,131 +0,0 @@
/*!
* \file fun_util.h
* \brief HAN FUN API
* \author ULE BS Team
*
*
*******************************************************************************/
#if !defined( _CMBS_FUN_H )
#define _CMBS_FUN_H
#include "cmbs_api.h"
/*Device Management Interface ID
====================================
This interface is used for registering Devices and Units with their associated data
such as Unit Type and the list of interfaces they are supporting.
It is also used for discovering all device and units by a configuration application
*/
#define DEVICE_MGMT_INTERFACE_ID 0x0001
/* Device Management Interface - Server */
/* Attributes */
#define DEVICE_MGMT_IF_SERVER_ATTR_ID_NUM_OF_DEVICES 0x0001
/* Commands */
#define DEVICE_MGMT_IF_SERVER_CMD_ID_REGISTER_DEVICE 0x0001
#define FUN_IF_DEV_MNGT_CMD_REGISTER_DEVICE 0x0001
#define FUN_IF_DEV_MNGT_CMD_DEREGISTER_DEVICE 0x0002
#define FUN_IF_DEV_MNGT_CMD_START_SESS_READ_REG_INFO 0x0003
#define FUN_IF_DEV_MNGT_CMD_END_SESS_READ_REG_INFO 0x0004
#define FUN_IF_DEV_MNGT_CMD_GET_ENTRIES 0x0005
#define MAX_NUM_OF_OPTIONAL_INTERFACES_IN_UNIT 8
#define MAX_NUM_OF_UNITS_IN_DEVICE 6
/////////////////////////////////
///////// Structs /////////
/////////////////////////////////
typedef struct
{
u8 UnitId;
u16 UnitType;
u16 NumberOfOptionalInterfaces;
u16 OptionalInterfaces[MAX_NUM_OF_OPTIONAL_INTERFACES_IN_UNIT];
} ST_FUN_UNIT_INFO;
typedef struct
{
u16 DeviceId;
u16 DeviceEMC;
u8 NumOfUnits;
ST_FUN_UNIT_INFO Units[MAX_NUM_OF_UNITS_IN_DEVICE];
} ST_FUN_DEVICE_INFO, * PST_FUN_DEVICE_INFO;
#define CMBS_HAN_IE_FUN_DEVICE_INFO_SIZE sizeof(ST_FUN_DEVICE_INFO)
// TODO: store request id as cookie and remove constant value
#define CMBS_HAN_FUN_REGISTRATION_REQ_ID 50
///////////////////////////////////////////////////////////////////////////////
// brief Macro which defines a bitfield mask in u8/u16/u32 value
//
// param FieldName Variable prefix
// Type u8, u16, u32
// BitOffset The offset of the bitfield in the value
// BitWidth Number of bits in the bitfield
///////////////////////////////////////////////////////////////////////////////
#define DEFINE_BITFIELD( FieldName, Type, BitOffet, BitWidth ) \
enum \
{ \
FieldName##_OFS = (BitOffet), \
FieldName##_WIDTH = (BitWidth), \
FieldName##_MASK = (Type)((( (Type)1<<(BitWidth))-1) << (BitOffet)), \
};
#define GET_BITFIELD_VAL( Var, FieldName ) \
( ((Var) & FieldName##_MASK ) >> FieldName##_OFS )
#define SET_BITFIELD_VAL( Var, FieldName, NewValue ) \
( ((Var) & (~FieldName##_MASK)) | ((NewValue) << FieldName##_OFS) )
typedef enum
{
FUN_IF_DEV_MNGT_REG_RESP_UID_TYPE_NONE = 0x0,
FUN_IF_DEV_MNGT_REG_RESP_UID_TYPE_IPUI = 0x1,
FUN_IF_DEV_MNGT_REG_RESP_UID_TYPE_IEEE_MAC_48 = 0x2,
FUN_IF_DEV_MNGT_REG_RESP_UID_TYPE_URI = 0x3,
}
t_en_hanIf_DevMngt_Reg_Dev_UID_Type;
typedef enum
{
FUN_IF_DEV_MNGT_REG_RESP_DISCR_TYPE_NON_PROPRIETARY = 0x0,
FUN_IF_DEV_MNGT_REG_RESP_DISCR_TYPE_PROPRIETARY = 0x1,
}
t_en_hanIf_DevMngt_RegResp_DiscrType;
#define FUN_IF_DEV_MNGT_UID_LENGTH_IPUI 5
#define FUN_IF_DEV_MNGT_UID_LENGTH_IEEE_MAC_48 12
#define OTA_BASE_DEVICE_ID 0
#define OTA_BASE_UNIT_MANAGMENT_UNIT_ID 0
#define OTA_DST_UNIT_MANAGMENT_UNIT_ID 0
#define OTA_MSG_TYPE_COMMAND_RESPONSE 3
#define OTA_ADDR_TYPE_INDIVIDUAL 0
#define OTA_INTERFACE_TYPE_SERVER 1
#define FUN_INTERFACE_DEVICE_MGNT 1
///////////////////////////////////////////////////////////////////////////////////////////////////////
// Define bitfields for Device Managment interface ///
// FieldName Type BitOffet BitWidth ///
///////////////////////////////////////////////////////////////////////////////////////////////////////
DEFINE_BITFIELD( FUN_IF_DEV_MNGT_REG_DISCRIMINATOR_TYPE, u8, 7, 1 );
DEFINE_BITFIELD( FUN_IF_DEV_MNGT_REG_DEV_UID_TYPE, u8, 0, 7 );
DEFINE_BITFIELD( FUN_IF_DEV_MNGT_REG_RES_DISCRIMINATOR_TYPE, u16, 15, 1 );
DEFINE_BITFIELD( FUN_IF_DEV_MNGT_REG_RES_DEVICE_ADDRESS, u16, 0, 15);
#endif // _FUN_UTIL_H
/**********************[End Of File]**********************************************************************************************************/

View File

@@ -1,809 +0,0 @@
/*!
* \file cmbs_han.c
* \brief
* \Author CMBS Team
*
*
*******************************************************************************/
#if defined(__arm)
#include "tclib.h"
#include "embedded.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
#include "cmbs_int.h"
#include "cmbs_han_ie.h"
E_CMBS_RC cmbs_dsr_han_mngr_Init(void *pv_AppRefHandle, ST_HAN_CONFIG * pst_HANConfig)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
ST_IE_HAN_CONFIG st_HanCfgIe;
UNUSED_PARAMETER(pv_AppRefHandle);
st_HanCfgIe.st_HanCfg = *pst_HANConfig;
cmbs_api_ie_HanCfgAdd(p_List,&st_HanCfgIe);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MNGR_INIT,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_mngr_Start (void *pv_AppRefHandle)
{
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MNGR_START,NULL, 0);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry, u8 IsBrief )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
cmbs_api_ie_ByteValueAdd(p_List, IsBrief ? CMBS_HAN_DEVICE_TABLE_ENTRY_TYPE_BRIEF : CMBS_HAN_DEVICE_TABLE_ENTRY_TYPE_EXTENDED, CMBS_IE_HAN_TABLE_ENTRY_TYPE);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_READ_TABLE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadExtendedDeviceTablePhase2 (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_READ_EXTENDED_TABLE_PHASE_2, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadBlackListedDeviceTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_READ_BLACK_LIST_DEVICE_TABLE, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_WriteTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry, ST_HAN_DEVICE_ENTRY * pst_HANDeviceEntriesArray)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(u16_NumOfEntries);
UNUSED_PARAMETER(pv_AppRefHandle);
UNUSED_PARAMETER(u16_IndexOfFirstEntry);
UNUSED_PARAMETER(pst_HANDeviceEntriesArray);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_WRITE_TABLE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_bind_ReadTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BIND_READ_TABLE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_bind_WriteTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry, ST_HAN_BIND_ENTRY * pst_HANBindEntriesArray)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
ST_IE_HAN_BIND_ENTRIES stIe_Binds;
UNUSED_PARAMETER(pv_AppRefHandle);
stIe_Binds.u16_NumOfEntries = u16_NumOfEntries;
stIe_Binds.u16_StartEntryIndex = u16_IndexOfFirstEntry;
stIe_Binds.pst_BindEntries = pst_HANBindEntriesArray;
cmbs_api_ie_HANBindTableAdd(p_List,&stIe_Binds);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BIND_WRITE_TABLE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_bind_AddEntry (void *pv_AppRefHandle, PST_HAN_BIND_ENTRY pst_HANBindEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANBindEntryAdd(p_List, pst_HANBindEntry);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BIND_ADD_ENTRY, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_bind_RemoveEntry (void *pv_AppRefHandle, PST_HAN_BIND_ENTRY pst_HANBindEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANBindEntryAdd(p_List, pst_HANBindEntry);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BIND_REMOVE_ENTRY ,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_bind_ClearTable (void *pv_AppRefHandle)
{
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BIND_CLEAR_TABLE, NULL, 0);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_ReadTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry, u16 u16_GroupId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANNumOfEntriesAdd(p_List, u16_NumOfEntries);
cmbs_api_ie_HANIndex1stEntryAdd(p_List, u16_IndexOfFirstEntry);
cmbs_api_ie_HANGroupIdAdd(p_List, u16_GroupId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_READ_TABLE, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_ReadList (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_READ_LIST, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Broadcast_ReadChannelTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_NumOfEntries, CMBS_IE_HAN_NUM_OF_ENTRIES);
cmbs_api_ie_ShortValueAdd(p_List,u16_IndexOfFirstEntry, CMBS_IE_HAN_INDEX_1ST_ENTRY);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_BROADCAST_READ_CHANNEL_TABLE, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_WriteTable (void *pv_AppRefHandle, u16 u16_NumOfEntries, u16 u16_IndexOfFirstEntry, ST_HAN_GROUP_TABLE_ENTRY * pst_HANGroupEntriesArray)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
ST_IE_HAN_GROUP_ENTRIES stIe_Groups;
UNUSED_PARAMETER(pv_AppRefHandle);
stIe_Groups.u16_NumOfEntries = u16_NumOfEntries;
stIe_Groups.u16_StartEntryIndex = u16_IndexOfFirstEntry;
stIe_Groups.pst_GroupEntries = pst_HANGroupEntriesArray;
cmbs_api_ie_HANGroupTableAdd(p_List,&stIe_Groups);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_WRITE_TABLE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_CreateGroup (void *pv_AppRefHandle, u8 u8_BroadcastChannelId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANBroadcastChannelIdAdd(p_List, u8_BroadcastChannelId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_CREATE_GROUP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_RemoveGroup (void *pv_AppRefHandle, u16 u16_GroupId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANGroupIdAdd(p_List, u16_GroupId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_REMOVE_GROUP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_AddDeviceToGroup (void *pv_AppRefHandle, u16 u16_GroupId, u16 u16_DeviceId, u8 u8_UnitId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANGroupIdAdd(p_List, u16_GroupId);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceId);
cmbs_api_ie_HANUnitIdAdd(p_List, u8_UnitId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_ADD_DEVICE_TO_GROUP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
//////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_group_RemoveDeviceFromGroup (void *pv_AppRefHandle, u16 u16_GroupId, u16 u16_DeviceId, u8 u8_UnitId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANGroupIdAdd(p_List, u16_GroupId);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceId);
cmbs_api_ie_HANUnitIdAdd(p_List, u8_UnitId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GROUP_REMOVE_DEVICE_FROM_GROUP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_msg_RecvRegister (void *pv_AppRefHandle, ST_HAN_MSG_REG_INFO * pst_HANMsgRegInfo)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HanMsgRegInfoAdd(p_List,pst_HANMsgRegInfo);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MSG_RECV_REGISTER,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_msg_RecvUnregister (void *pv_AppRefHandle, ST_HAN_MSG_REG_INFO * pst_HANMsgRegInfo)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HanMsgRegInfoAdd(p_List,pst_HANMsgRegInfo);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MSG_RECV_UNREGISTER,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_msg_SendTxRequest (void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MSG_SEND_TX_START_REQUEST,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_msg_SendTxEnd(void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MSG_SEND_TX_END_REQUEST,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_msg_Send (void *pv_AppRefHandle, u16 u16_RequestId, PST_IE_HAN_MSG_CTL pst_MsgCtrl, ST_IE_HAN_MSG * pst_HANMsg)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_RequestId, CMBS_IE_REQUEST_ID);
cmbs_api_ie_HANMsgAdd(p_List,pst_HANMsg);
cmbs_api_ie_HANMsgCtlAdd(p_List, pst_MsgCtrl );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MSG_SEND,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_raw_msg_Send (void *pv_AppRefHandle, u16 u16_RequestId, ST_IE_HAN_MSG_CTL* pst_MsgCtrl, ST_IE_DATA * pst_HANRawMsg, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_RequestId, CMBS_IE_REQUEST_ID);
cmbs_api_ie_DataAdd(p_List, pst_HANRawMsg);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
cmbs_api_ie_HANMsgCtlAdd(p_List, pst_MsgCtrl );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_RAW_MSG_SEND,p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_han_ModificationULEPagingInterval(u16 u16_DeviceId, u32 u32_ULEPagingIntervalMs)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
cmbs_api_ie_HanULEPagingIntervalAdd(p_List,u32_ULEPagingIntervalMs);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_MODIFICATION_ULE_PAGING_INTERVAL,p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_han_NodeSetupAttemptsEnable(bool b_enable)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
if(b_enable)
{
cmbs_api_ie_HanNodeSetupAttemptsEnableAdd(p_List,CMBS_HAN_NODE_SETUP_ATTEMPTS_ENABLE);
}
else
{
cmbs_api_ie_HanNodeSetupAttemptsEnableAdd(p_List,CMBS_HAN_NODE_SETUP_ATTEMPTS_DISABLE);
}
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_NODE_SETUP_ATTEMPTS,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_GetMaxNumOfDevices (void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend(CMBS_EV_DSR_HAN_GET_MAX_NUM_OF_DEVICES, p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_han_GetNumOfRegDevices (void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend(CMBS_EV_DSR_HAN_GET_NUM_OF_REG_DEVICES, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_Delete (void *pv_AppRefHandle, u16 u16_DeviceId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd( p_List, u16_DeviceId );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_FORCEFUL_DELETE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_DeviceBlackListDelete(void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd( p_List, u16_DeviceId );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_BLACK_LIST_DELETE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_send_base_updated_notification (void *pv_AppRefHandle, u16 u16_DeviceId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd( p_List, u16_DeviceId );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_SEND_BASE_UPDATED_NOTIFICATION,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_get_fun_protocol_info (void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GET_FUN_PROTOCOL_INFO, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_GetConnectionStatus (void *pv_AppRefHandle, u16 u16_DeviceId )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd( p_List, u16_DeviceId );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_GET_CONNECTION_STATUS ,p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_han_fun_RegistationMsgRecv (void *pv_AppRefHandle, PST_FUN_DEVICE_INFO pst_FunDeviceInfo)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HanFUNDeviceInfoAdd( p_List, pst_FunDeviceInfo );
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_FUN_REG_MSG_RECV_RES, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadDeviceRegistrationInformation (void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_MANGER_READ_DEVICE_SUB_INFO,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadDeviceRegistrationInformationPhase2 (void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_MANGER_READ_DEVICE_SUB_INFO_PHASE_2,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Logger_SetLogLevel (void *pv_AppRefHandle, u8 u8_LogLevel)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANLogLevelAdd(p_List,u8_LogLevel);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_SET_LOG_LEVEL,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Logger_GetLogLevel (void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GET_LOG_LEVEL,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_ReadDeviceFullRegistrationInfo (void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_DeviceId, CMBS_IE_HAN_DEVICE);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_MANGER_READ_DEVICE_FULL_REGISTRATION_INFO,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_device_WriteDeviceFullRegistrationInfo (void *pv_AppRefHandle, u16 u16_DeviceId, ST_HAN_FULL_DEVICE_REGISTRATION_INFO *pst_DeviceRegistrationInfo)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_ShortValueAdd(p_List,u16_DeviceId, CMBS_IE_HAN_DEVICE);
cmbs_api_ie_HANDeviceFullRegistrationInfoAdd(p_List ,pst_DeviceRegistrationInfo);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_DEVICE_MANGER_WRITE_DEVICE_FULL_REGISTRATION_INFO, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_logger_Control (void *pv_AppRefHandle, bool b_enable)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
if (b_enable)
{
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GENERAL_LOGGER_ENABLED, p_List->pu8_Buffer, p_List->u16_CurSize);
}
else
{
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GENERAL_LOGGER_DISABLED, p_List->pu8_Buffer, p_List->u16_CurSize);
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_cp_logger_Control (void *pv_AppRefHandle, bool b_enable)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
if (b_enable)
{
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CP_LOGGER_ENABLED, p_List->pu8_Buffer, p_List->u16_CurSize);
}
else
{
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CP_LOGGER_DISABLED, p_List->pu8_Buffer, p_List->u16_CurSize);
}
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_MarkCcmKeyAsUsed(void *pv_AppRefHandle, u16 u16_DeviceNumber , u8 u8_CCMKeyUsed)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_MARK_CCM_KEY_AS_USED);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
cmbs_api_ie_HANCcmKeyAsUsedAdd(p_List, u8_CCMKeyUsed);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_SetTxMicCorruptNum(void *pv_AppRefHandle,u16 u16_DeviceNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_SET_TX_MIC_CORRUPTION_NUMBER);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_SetTxSeqNum(void *pv_AppRefHandle, u16 u16_DeviceNumber, u16 u16_TxSequenceNumber )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_SET_TX_SEQUENCE_NUMBER);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
cmbs_api_ie_HANTxSequenceNumberAdd(p_List, u16_TxSequenceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_GetTxSeqNum(void *pv_AppRefHandle, u16 u16_DeviceNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_GET_TX_SEQUENCE_NUMBER);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_GetRxSeqNum(void *pv_AppRefHandle, u16 u16_DeviceNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_GET_RX_SEQUENCE_NUMBER);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_SetTxAckDropNum(void *pv_AppRefHandle, u16 u16_TxAckDropNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_SET_TX_ACK_DROP_NUMBER);
cmbs_api_ie_HANTxAckDropNumberAdd(p_List, u16_TxAckDropNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Certification_SetPvcState(void *pv_AppRefHandle, u16 u16_DeviceNumber, u8 u8_PVCState )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANCertificationOperationAdd(p_List, (u8) CMBS_HAN_ULE_DEVICE_CERTIFICATION_OPERATION_SET_PVC_STATE);
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
cmbs_api_ie_HANPvcStateAdd(p_List, u8_PVCState);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_CERTIFICATION_OPERATION_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_SetRxGain(void *pv_AppRefHandle, u8 u8_RxGainVal )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANRxGainAdd(p_List, u8_RxGainVal);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_SET_RX_GAIN, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_GetRxGain(void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_GET_RX_GAIN, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_SendPvcResetReq(void *pv_AppRefHandle, u16 u16_DeviceNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_PVC_RESET_REQ, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_GetPvcResetReqState(void *pv_AppRefHandle, u16 u16_DeviceNumber)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
cmbs_api_ie_HANDeviceAdd(p_List, u16_DeviceNumber);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_PVC_RESET_REQ_STATE, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_NotifyOnVoiceCall (void *pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_NOTIFY_ON_VOICE_CALL_REQUEST,
p_List->pu8_Buffer,
p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_TBR6SendPM(void *pv_AppRefHandle, u8 u8_Carrier , u32 u32_Period )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANTBR6CarrierAdd(p_List, u8_Carrier);
cmbs_api_ie_HANTBR6PeriodAdd(p_List, u32_Period);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_TBR6_SEND_PM, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_TBR6SetGUCI(void *pv_AppRefHandle, u8 * pu8_IPUI )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANULEDeviceIPUIAdd(p_List, (ST_IE_HAN_ULE_DEVICE_IPUI *)pu8_IPUI);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_TBR6_SET_GUCI, p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_TBR6ResetStatistics (void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_TBR6_RESET_STATISTICS,p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_han_UpdateDevicePMSeqNumbers (void *pv_AppRefHandle, u16 u16_DeviceId , u16 u16_RxSeqNum, u16 u16_TxSeqNum)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd( p_List, u16_DeviceId );
cmbs_api_ie_HANRxSequenceNumberAdd (p_List,u16_RxSeqNum);
cmbs_api_ie_HANTxSequenceNumberAdd (p_List,u16_TxSeqNum);
return cmbs_int_EventSend( CMBS_EV_DSR_UPDATE_DEVICE_PM_SEQ_NUMBERS,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Start_Vbs(void * pv_AppRefHandle, u16 u16_GroupId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANGroupIdAdd(p_List,u16_GroupId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_START_VBS,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Stop_Vbs(void * pv_AppRefHandle, u16 u16_GroupId, PST_IE_MEDIA_CHANNEL pst_MediaChannel)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANGroupIdAdd(p_List,u16_GroupId);
if (pst_MediaChannel->u32_ChannelID != 0xFF)
{
cmbs_api_ie_MediaChannelAdd(p_List, pst_MediaChannel);
}
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_STOP_VBS,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Read_Broadcast_Channel_Type(void * pv_AppRefHandle, u8 u8_BroadcastChannelId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANBroadcastChannelIdAdd(p_List,u8_BroadcastChannelId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_READ_BROADCAST_CHANNEL_TYPE,p_List->pu8_Buffer, p_List->u16_CurSize);
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
E_CMBS_RC cmbs_dsr_han_Read_Device_VBS_Capabilties(void * pv_AppRefHandle, u16 u16_DeviceId)
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER(pv_AppRefHandle);
cmbs_api_ie_HANDeviceAdd(p_List,u16_DeviceId);
return cmbs_int_EventSend( CMBS_EV_DSR_HAN_READ_DEVICE_VBS_CAPABILITIES,p_List->pu8_Buffer, p_List->u16_CurSize);
}
/*---------[End Of File]---------------------------------------------------------------------------------------------------------------------------*/

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,218 +0,0 @@
/*!
* \file cmbs_han_ie.h
* \brief Information Elements List functions for HAN
* \author andriig
*
* @(#) %filespec: cmbs_han_ie.h~ILD53#3 %
*
*******************************************************************************/
#if !defined( CMBS_HAN_IE_H )
#define CMBS_HAN_IE_H
#include "cmbs_han.h" /* CMBS HAN API definition */
#include "cmbs_fun.h"
E_CMBS_RC cmbs_api_ie_HanCfgAdd( void * pv_RefIEList, ST_IE_HAN_CONFIG* pst_Cfg);
E_CMBS_RC cmbs_api_ie_HanCfgGet( void * pv_RefIEList, ST_IE_HAN_CONFIG* pst_Cfg);
E_CMBS_RC cmbs_api_ie_HanUleBaseInfoAdd( void * pv_RefIEList, ST_IE_HAN_BASE_INFO* pst_HanBaseInfo);
E_CMBS_RC cmbs_api_ie_HanUleBaseInfoGet( void * pv_RefIEList, ST_IE_HAN_BASE_INFO* pst_HanBaseInfo);
E_CMBS_RC cmbs_api_ie_HANDeviceSubInfoAdd( void * pv_RefIEList, ST_HAN_EXTENDED_DEVICE_INFO * pst_HANExtendedDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANDeviceSubInfoGet( void * pv_RefIEList, ST_HAN_EXTENDED_DEVICE_INFO * pst_HANExtendedDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANDeviceTableBriefAdd ( void * pv_RefIEList, ST_IE_HAN_BRIEF_DEVICE_ENTRIES* pst_HanDeviceEntries);
E_CMBS_RC cmbs_api_ie_HANDeviceTableBriefGet (void * pv_RefIE, ST_IE_HAN_BRIEF_DEVICE_ENTRIES * pst_HANDeviceTable);
E_CMBS_RC cmbs_api_ie_HANDeviceTableExtendedAdd ( void * pv_RefIEList, ST_IE_HAN_EXTENDED_DEVICE_ENTRIES* pst_HANExtendedDeviceEntries);
E_CMBS_RC cmbs_api_ie_HANDeviceTableExtendedGet (void * pv_RefIE, ST_IE_HAN_EXTENDED_DEVICE_ENTRIES* pst_HANExtendedDeviceEntries);
E_CMBS_RC cmbs_api_ie_HANRegStage1OKResParamsAdd ( void * pv_RefIEList, ST_HAN_REG_STAGE_1_STATUS* pst_RegStatus);
E_CMBS_RC cmbs_api_ie_HANRegStage1OKResParamsGet (void * pv_RefIE, ST_HAN_REG_STAGE_1_STATUS* pst_RegStatus);
E_CMBS_RC cmbs_api_ie_HANRegStage2OKResParamsAdd ( void * pv_RefIEList,ST_HAN_REG_STAGE_2_STATUS* pst_RegStatus);
E_CMBS_RC cmbs_api_ie_HANRegStage2OKResParamsGet (void * pv_RefIE, ST_HAN_REG_STAGE_2_STATUS* pst_RegStatus);
E_CMBS_RC cmbs_api_ie_HANBindTableAdd ( void * pv_RefIEList, ST_IE_HAN_BIND_ENTRIES* pst_HanBinds);
E_CMBS_RC cmbs_api_ie_HANBindTableGet (void * pv_RefIE, ST_IE_HAN_BIND_TABLE * pst_HANBindTable);
E_CMBS_RC cmbs_api_ie_HANGroupTableAdd ( void * pv_RefIEList, ST_IE_HAN_GROUP_ENTRIES* pst_HanGroups);
E_CMBS_RC cmbs_api_ie_HANGroupTableGet (void * pv_RefIE, ST_IE_HAN_GROUP_TABLE * pst_HANGroupTable);
E_CMBS_RC cmbs_api_ie_HanMsgRegInfoAdd ( void * pv_RefIEList, ST_HAN_MSG_REG_INFO * pst_HANMsgRegInfo);
E_CMBS_RC cmbs_api_ie_HanMsgRegInfoGet ( void * pv_RefIEList, ST_HAN_MSG_REG_INFO * pst_HANMsgRegInfo);
E_CMBS_RC cmbs_api_ie_HANMsgAdd ( void * pv_RefIE, ST_IE_HAN_MSG * pst_HANMsg);
E_CMBS_RC cmbs_api_ie_HANMsgGet (void * pv_RefIE, ST_IE_HAN_MSG * pst_HANMsg);
E_CMBS_RC cmbs_api_ie_HANDeviceAdd (void * pv_RefIE, u16 pu16_HANDevice);
E_CMBS_RC cmbs_api_ie_HANDeviceGet (void * pv_RefIE, u16* pu16_HANDevice);
E_CMBS_RC cmbs_api_ie_HANSendErrorReasonAdd (void * pv_RefIE, u16 u16_Reason);
E_CMBS_RC cmbs_api_ie_HANSendErrorReasonGet (void * pv_RefIE, u16* pu16_Reason);
E_CMBS_RC cmbs_api_ie_HANTxEndedReasonAdd (void * pv_RefIE, u16 u16_Reason);
E_CMBS_RC cmbs_api_ie_HANTxEndedReasonGet (void * pv_RefIE, u16* pu16_Reason);
E_CMBS_RC cmbs_api_ie_HANNumOfEntriesAdd( void * pv_RefIEList, u16 u16_NumOfEntries);
E_CMBS_RC cmbs_api_ie_HANNumOfEntriesGet( void * pv_RefIEList, u16 * pu16_NumOfEntries);
E_CMBS_RC cmbs_api_ie_HANIndex1stEntryAdd( void * pv_RefIEList, u16 u16_IndexOfFirstEntry);
E_CMBS_RC cmbs_api_ie_HANIndex1stEntryGet( void * pv_RefIEList, u16 * pu16_IndexOfFirstEntry);
E_CMBS_RC cmbs_api_ie_HANTableUpdateInfoAdd (void * pv_RefIE, ST_IE_HAN_TABLE_UPDATE_INFO * pst_HANTableUpdateInfo);
E_CMBS_RC cmbs_api_ie_HANTableUpdateInfoGet (void * pv_RefIE, ST_IE_HAN_TABLE_UPDATE_INFO * pst_HANTableUpdateInfo);
E_CMBS_RC cmbs_api_ie_HANGeneralStatusAdd( void * pv_RefIEList, ST_HAN_GENERAL_STATUS* pst_Status);
E_CMBS_RC cmbs_api_ie_HANGeneralStatusGet( void * pv_RefIEList, ST_HAN_GENERAL_STATUS* pst_Status);
E_CMBS_RC cmbs_api_ie_HANUnknownDeviceContactedParamsAdd( void * pv_RefIEList, ST_HAN_UNKNOWN_DEVICE_CONTACT_PARAMS* pst_Params);
E_CMBS_RC cmbs_api_ie_HANUnknownDeviceContactedParamsGet( void * pv_RefIEList, ST_HAN_UNKNOWN_DEVICE_CONTACT_PARAMS* pst_Params);
E_CMBS_RC cmbs_api_ie_HANConnectionStatusAdd (void * pv_RefIE, u16 pu16_ConnectionStatus);
E_CMBS_RC cmbs_api_ie_HANConnectionStatusGet (void * pv_RefIE, u16* pu16_ConnectionStatus);
E_CMBS_RC cmbs_api_ie_HANForcefulDeRegErrorReasonAdd (void * pv_RefIE, u16 u16_Reason);
E_CMBS_RC cmbs_api_ie_HANForcefulDeRegErrorReasonGet (void * pv_RefIE, u16* pu16_Reason);
E_CMBS_RC cmbs_api_ie_HANRegErrorReasonAdd (void * pv_RefIE, u16 u16_Reason);
E_CMBS_RC cmbs_api_ie_HANRegErrorReasonGet (void * pv_RefIE, u16* pu16_Reason);
E_CMBS_RC cmbs_api_ie_HANReqIDAdd (void * pv_RefIE, u16 u16_RequestID );
E_CMBS_RC cmbs_api_ie_HANReqIDGet (void * pv_RefIE, u16* pu16_RequestID);
E_CMBS_RC cmbs_api_ie_HANMsgCtlAdd (void * pv_RefIE, PST_IE_HAN_MSG_CTL pst_MessageControl);
E_CMBS_RC cmbs_api_ie_HANMsgCtlGet (void * pv_RefIE, PST_IE_HAN_MSG_CTL pst_MessageControl);
E_CMBS_RC cmbs_api_ie_HanFUNDeviceInfoAdd( void * pv_RefIEList, ST_FUN_DEVICE_INFO* FunDevInfo);
E_CMBS_RC cmbs_api_ie_HanFUNDeviceInfoGet( void * pv_RefIEList, ST_FUN_DEVICE_INFO* FunDevInfo);
E_CMBS_RC cmbs_api_ie_HANBindEntryAdd ( void * pv_RefIEList, PST_HAN_BIND_ENTRY pst_HANBindEntry);
E_CMBS_RC cmbs_api_ie_HANBindEntryGet ( void * pv_RefIEList, PST_HAN_BIND_ENTRY pst_HANBindEntry);
E_CMBS_RC cmbs_api_ie_HANTxReqResReasonAdd (void * pv_RefIE, u16 u16_TxReqResReason);
E_CMBS_RC cmbs_api_ie_HANTxReqResReasonGet (void * pv_RefIE, u16* pu16_TxReqResReason);
E_CMBS_RC cmbs_api_ie_HANLogLevelAdd (void * pv_RefIE, u8 u8_LogLevel);
E_CMBS_RC cmbs_api_ie_HANLogLevelGet (void * pv_RefIE, u8 *pu8_LogLevel);
E_CMBS_RC cmbs_api_ie_HANCertificationOperationAdd (void * pv_RefIE, u8 u8_CertificationOperationValue);
E_CMBS_RC cmbs_api_ie_HANCertificationOperationGet (void * pv_RefIE, u8 *pu8_CertificationOperationValue);
E_CMBS_RC cmbs_api_ie_HANCcmKeyAsUsedAdd(void * pv_RefIE, u8 u8_CcmKeyUsed);
E_CMBS_RC cmbs_api_ie_HANCcmKeyAsUsedGet(void * pv_RefIE, u8 *pu8_CcmKeyUsed);
E_CMBS_RC cmbs_api_ie_HANRxSequenceNumberAdd(void * pv_RefIE, u16 u16_RxSequenceNumber);
E_CMBS_RC cmbs_api_ie_HANRxSequenceNumberGet (void * pv_RefIE, u16 *pu16_RxSequenceNumber);
E_CMBS_RC cmbs_api_ie_HANTxSequenceNumberAdd(void * pv_RefIE, u16 u16_TxSequenceNumber);
E_CMBS_RC cmbs_api_ie_HANTxSequenceNumberGet (void * pv_RefIE, u16 *pu16_TxSequenceNumber);
E_CMBS_RC cmbs_api_ie_HANTxAckDropNumberAdd(void * pv_RefIE, u16 u16_TxAckDropNumber);
E_CMBS_RC cmbs_api_ie_HANTxAckDropNumberGet(void * pv_RefIE, u16 *pu16_TxAckDropNumber);
E_CMBS_RC cmbs_api_ie_HANPvcStateAdd(void * pv_RefIE, u8 u8_PVCState);
E_CMBS_RC cmbs_api_ie_HANPvcStateGet (void * pv_RefIE, u8 *pu8_PVCState);
E_CMBS_RC cmbs_api_ie_HANRxGainGet (void * pv_RefIE, u8 *pu8_RxGain);
E_CMBS_RC cmbs_api_ie_HANRxGainAdd (void * pv_RefIE, u8 u8_RxGain);
E_CMBS_RC cmbs_api_ie_HANDeviceFullRegistrationInfoAdd( void * pv_RefIEList, ST_HAN_FULL_DEVICE_REGISTRATION_INFO* pst_HANCompleteRegistrationDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANDeviceFullRegistrationInfoGet( void * pv_RefIEList, ST_HAN_FULL_DEVICE_REGISTRATION_INFO* pst_HANCompleteRegistrationDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANReadDeviceFullRegInfoResReasonAdd (void * pv_RefIE, u8 u8_ReadDeviceFullRegInfoResReason);
E_CMBS_RC cmbs_api_ie_HANReadDeviceFullRegInfoResReasonGet (void * pv_RefIE, u8 * pu8_ReadDeviceFullRegInfoResReason);
E_CMBS_RC cmbs_api_ie_HANTBR6CarrierGet (void * pv_RefIE, u8 *pu8_TBR6Carrier);
E_CMBS_RC cmbs_api_ie_HANTBR6CarrierAdd (void * pv_RefIE, u8 u8_TBR6Carrier);
E_CMBS_RC cmbs_api_ie_HANTBR6PeriodGet (void * pv_RefIE, u32 *pu32_TBR6Period);
E_CMBS_RC cmbs_api_ie_HANTBR6PeriodAdd (void * pv_RefIE, u32 u32_TBR6Period);
E_CMBS_RC cmbs_api_ie_HANULEDeviceIPUIAdd ( void * pv_RefIEList, ST_IE_HAN_ULE_DEVICE_IPUI* pst_Ipui);
E_CMBS_RC cmbs_api_ie_HANULEDeviceIPUIGet (void * pv_RefIE,ST_IE_HAN_ULE_DEVICE_IPUI* pst_Ipui);
E_CMBS_RC cmbs_api_ie_HANULETBR6StatisticsAdd (void * pv_RefIE,ST_IE_HAN_ULE_TBR6_STATISTICS * p_cp_st_ULETBR6Stats);
E_CMBS_RC cmbs_api_ie_HANULETBR6StatisticsGet (void * pv_RefIE,ST_IE_HAN_ULE_TBR6_STATISTICS * p_cp_st_ULETBR6Stats);
E_CMBS_RC cmbs_api_ie_HANCarrierGet (void * pv_RefIE, u8 *pu8_Carrier);
E_CMBS_RC cmbs_api_ie_HANCarrierAdd (void * pv_RefIE, u8 u8_Carrier);
E_CMBS_RC cmbs_api_ie_HANSlotGet (void * pv_RefIE, u8 *pu8_Slot);
E_CMBS_RC cmbs_api_ie_HANSlotAdd (void * pv_RefIE, u8 u8_Slot);
E_CMBS_RC cmbs_api_ie_HanReqFailureReasonGet (void * pv_RefIE, u8 *u8_Reason);
E_CMBS_RC cmbs_api_ie_HanReqFailureReasonAdd (void * pv_RefIE, u8 u8_Reason);
E_CMBS_RC cmbs_api_ie_HanULEPagingIntervalGet (void * pv_RefIE, u32 *u32_ULEPagingInterval);
E_CMBS_RC cmbs_api_ie_HanULEPagingIntervalAdd (void * pv_RefIE, u32 u32_ULEPagingInterval);
E_CMBS_RC cmbs_api_ie_HanULEPagingIntervalModificationFailureReasonGet (void * pv_RefIE, u8 *u8_Reason);
E_CMBS_RC cmbs_api_ie_HanULEPagingIntervalModificationFailureReasonAdd (void * pv_RefIE, u8 u8_Reason);
E_CMBS_RC cmbs_api_ie_HanNodeSetupAttemptsEnableGet (void * pv_RefIE, u8 *u8_Enable);
E_CMBS_RC cmbs_api_ie_HanNodeSetupAttemptsEnableAdd (void * pv_RefIE, u8 u8_Enable);
E_CMBS_RC cmbs_api_ie_HanDeviceLinkReleaseReasonGet (void * pv_RefIE, u8 *pu8_ReleaseReason);
E_CMBS_RC cmbs_api_ie_HanDeviceLinkReleaseReasonAdd (void * pv_RefIE, u8 u8_ReleaseReason);
E_CMBS_RC cmbs_api_ie_HanMaxNumOfDevicesGet (void * pv_RefIE, u16 *pu16_MaxNumOfDevices);
E_CMBS_RC cmbs_api_ie_HanMaxNumOfDevicesAdd (void * pv_RefIE, u16 u16_MaxNumOfDevices);
E_CMBS_RC cmbs_api_ie_HanNumOfRegDevicesGet(void * pv_RefIE, u16 * pu16_NumOfRegDevices);
E_CMBS_RC cmbs_api_ie_HanNumOfRegDevicesAdd(void * pv_RefIE, u16 u16_NumOfRegDevices);
E_CMBS_RC cmbs_api_ie_HANGroupIdAdd (void * pv_RefIE, u16 u16_GroupId);
E_CMBS_RC cmbs_api_ie_HANGroupIdGet (void * pv_RefIE, u16* pu16_GroupId);
E_CMBS_RC cmbs_api_ie_HANGroupCommandFailureReasonAdd (void * pv_RefIE, u8 u8_GroupCommandFailReason);
E_CMBS_RC cmbs_api_ie_HANGroupCommandFailureReasonGet (void * pv_RefIE, u8* pu8_GroupCommandFailReason);
E_CMBS_RC cmbs_api_ie_HANUnitIdAdd (void * pv_RefIE, u8 pu8_UnitId);
E_CMBS_RC cmbs_api_ie_HANUnitIdGet (void * pv_RefIE, u8* pu8_UnitId);
E_CMBS_RC cmbs_api_ie_HANGroupListAdd ( void * pv_RefIEList, ST_IE_HAN_GROUP_LIST_ENTRIES* pst_HanGroupList);
E_CMBS_RC cmbs_api_ie_HANGroupListGet ( void * pv_RefIEList, ST_IE_HAN_GROUP_LIST_ENTRIES* pst_HanGroupList);
E_CMBS_RC cmbs_api_ie_HANMsgRSSIAdd ( void * pv_RefIE, u8 u8_RSSI);
E_CMBS_RC cmbs_api_ie_HANMsgRSSIGet ( void * pv_RefIE, u8* u8_RSSI);
E_CMBS_RC cmbs_api_ie_HANDeviceBlackListDeleteErrorReasonAdd (void * pv_RefIE, u16 u16_Reason);
E_CMBS_RC cmbs_api_ie_HANDeviceBlackListDeleteErrorReasonGet (void * pv_RefIE, u16* pu16_Reason);
E_CMBS_RC cmbs_api_ie_HANUleCapabilitiesAdd (void * pv_RefIE, u16 u16_UleCapabilities);
E_CMBS_RC cmbs_api_ie_HANUleCapabilitiesGet (void * pv_RefIE, u16* pu16_UleCapabilities);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelIdGet (void * pv_RefIE, u8 *pu8_BroadcastChannelId);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelIdAdd (void * pv_RefIE, u8 u8_BroadcastChannelId);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelTableAdd ( void * pv_RefIEList, ST_IE_HAN_BROADCAST_CHANNEL_ENTRIES* pst_BroadcastChannelTable);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelTableGet ( void * pv_RefIEList, ST_IE_HAN_BROADCAST_CHANNEL_ENTRIES* pst_BroadcastChannelTable);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqFailureReasonGet (void * pv_RefIE, u8 *pu8_PvcResetReqFailureReason);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqFailureReasonAdd (void * pv_RefIE, u8 u8_PvcResetReqFailureReason);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqStateFailureReasonGet (void * pv_RefIE, u8 *pu8_PvcResetReqStateFailureReason);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqStateFailureReasonAdd (void * pv_RefIE, u8 u8_PvcResetReqStateFailureReason);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqStateGet (void * pv_RefIE, u8 *pu8_PvcResetReqState);
E_CMBS_RC cmbs_api_ie_HANPvcResetReqStateAdd (void * pv_RefIE, u8 u8_PvcResetReqState);
E_CMBS_RC cmbs_api_ie_HANDeviceTableExtendedPhase2Get( void * pv_RefIEList,ST_IE_HAN_EXTENDED_DEVICE_PHASE_2_ENTRIES* pst_HANExtendedDeviceEntries);
E_CMBS_RC cmbs_api_ie_HANDeviceTableExtendedPhase2Add( void * pv_RefIEList, ST_IE_HAN_EXTENDED_DEVICE_PHASE_2_ENTRIES* pst_HANExtendedDeviceEntries);
E_CMBS_RC cmbs_api_ie_HANDeviceSubInfoPhase2Add( void * pv_RefIEList, ST_HAN_EXTENDED_DEVICE_INFO_PHASE_2 * pst_HANExtendedDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANDeviceSubInfoPhase2Get( void * pv_RefIEList, ST_HAN_EXTENDED_DEVICE_INFO_PHASE_2 * pst_HANExtendedDeviceEntry);
E_CMBS_RC cmbs_api_ie_HANDeviceVBSCapAdd (void * pv_RefIE, u8 u8_VbsCap);
E_CMBS_RC cmbs_api_ie_HANDeviceVBSCapGet (void * pv_RefIE, u8* pu8_VbsCap);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelTypeGet (void * pv_RefIE, u8 *pu8_BroadcastChannelType);
E_CMBS_RC cmbs_api_ie_HANBroadcastChannelTypeAdd (void * pv_RefIE, u8 u8_BroadcastChannelType);
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#endif // CMBS_HAN_IE_H

File diff suppressed because it is too large Load Diff

View File

@@ -1,362 +0,0 @@
/*!
* \file cmbs_ie.h
* \brief Information Elements List functions
* \author andriig
*
* @(#) %filespec: cmbs_ie.h~7 %
*
*******************************************************************************/
#if !defined( CMBS_IE_H )
#define CMBS_IE_H
#include "cmbs_api.h" /* CMBS API definition */
/* Allocate IE list and verify it */
#define ALLOCATE_IE_LIST(p_List) \
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList(); \
if(!p_List) \
return CMBS_RC_ERROR_OUT_OF_MEM;
/* Get IE type and check it */
#define CHECK_IE_TYPE(pu8_Buffer, IEType) \
{ \
u16 u16_Type = 0; \
cfr_ie_dser_u16( pu8_Buffer + CFR_IE_TYPE_POS, &u16_Type ); \
if ( IEType != u16_Type ) \
return CMBS_RC_ERROR_PARAMETER; \
}
void * cmbs_api_ie_GetList( void );
E_CMBS_RC cmbs_api_ie_DeregisterThread (u32 u32_ThreadId);
E_CMBS_RC cmbs_api_ie_GetFirst( void * pv_RefIEList, void ** ppv_RefIE, u16 * pu16_IEType );
E_CMBS_RC cmbs_api_ie_GetNext( void * pv_RefIEList, void ** ppv_RefIE, u16 * pu16_IEType );
E_CMBS_RC cmbs_api_ie_GetIE( void * pv_RefIEList, void ** ppv_RefIE, u16 pu16_IEType );
E_CMBS_RC cmbs_api_ie_ByteValueAdd( void * pv_RefIEList, u8 u8_Value, E_CMBS_IE_TYPE e_IETYPE );
E_CMBS_RC cmbs_api_ie_ByteValueGet( void * pv_RefIE, u8 * pu8_Value, E_CMBS_IE_TYPE e_IETYPE );
E_CMBS_RC cmbs_api_ie_ShortValueAdd( void * pv_RefIEList, u16 u16_Value, E_CMBS_IE_TYPE e_IETYPE );
E_CMBS_RC cmbs_api_ie_ShortValueGet( void * pv_RefIE, u16 * pu16_Value, E_CMBS_IE_TYPE e_IETYPE );
E_CMBS_RC cmbs_api_ie_u32ValueAdd( void * pv_RefIEList, u32 u32_Value, E_CMBS_IE_TYPE e_IEType );
E_CMBS_RC cmbs_api_ie_u32ValueGet( void * pv_RefIE, u32 * pu32_Value, E_CMBS_IE_TYPE e_IEType );
E_CMBS_RC cmbs_api_ie_IntValueAdd( void * pv_RefIEList, u32 u32_Value );
E_CMBS_RC cmbs_api_ie_IntValueGet( void * pv_RefIE, u32 * pu32_Value );
E_CMBS_RC cmbs_api_ie_LineIdAdd( void * pv_RefIEList, u8 u8_LineId );
E_CMBS_RC cmbs_api_ie_LineIdGet( void * pv_RefIE, u8 * pu8_LineId );
E_CMBS_RC cmbs_api_ie_MelodyAdd( void * pv_RefIEList, u8 u8_Melody );
E_CMBS_RC cmbs_api_ie_MelodyGet( void * pv_RefIE, u8 * pu8_Melody );
E_CMBS_RC cmbs_api_ie_SplashTimerAdd(void *pv_RefIEList, u8 u8_SplashTimer);
E_CMBS_RC cmbs_api_ie_SplashTimerGet(void *pv_RefIE, u8 *pu8_SplashTimer);
E_CMBS_RC cmbs_api_ie_ReconnectGet(void *pv_RefIE, u8 *pu8_Reconnect);
E_CMBS_RC cmbs_api_ie_CallInstanceAdd( void * pv_RefIEList, u32 u32_CallInstance );
E_CMBS_RC cmbs_api_ie_CallInstanceGet( void * pv_RefIE, u32 * pu32_CallInstance );
E_CMBS_RC cmbs_api_ie_RequestIdAdd( void * pv_RefIE, u16 pu16_RequestId );
E_CMBS_RC cmbs_api_ie_RequestIdGet( void * pv_RefIE, u16 * pu16_RequestId );
E_CMBS_RC cmbs_api_ie_HandsetsAdd( void * pv_RefIE, u16 u16_Handsets );
E_CMBS_RC cmbs_api_ie_HandsetsGet( void * pv_RefIE, u16 * pu16_Handsets );
E_CMBS_RC cmbs_api_ie_HsNumberAdd( void * pv_RefIEList, u8 u8_HsNumber );
E_CMBS_RC cmbs_api_ie_MaxRepSubAdd(void *pv_RefIEList, u8 u8_HsNumber);
E_CMBS_RC cmbs_api_ie_MaxRepHsSubAdd(void *pv_RefIEList, u8 u8_HsNumber);
E_CMBS_RC cmbs_api_ie_RepNumberGet(void *pv_RefIE, u8 *pu8_HsNumber);
E_CMBS_RC cmbs_api_ie_RepHsNumberGet(void *pv_RefIE, u8 *pu8_HsNumber);
E_CMBS_RC cmbs_api_ie_HsNumberGet( void * pv_RefIE, u8 * pu8_HsNumber );
E_CMBS_RC cmbs_api_ie_GpioAdd( void * pv_RefIEList, u16 u16_Gpio );
E_CMBS_RC cmbs_api_ie_GpioGet( void * pv_RefIE, u16 * pu16_Gpio );
E_CMBS_RC cmbs_api_ie_CallTransferReqAdd( void * pv_RefIEList, PST_IE_CALLTRANSFERREQ pst_CallTrf );
E_CMBS_RC cmbs_api_ie_CallTransferReqGet( void * pv_RefIE, PST_IE_CALLTRANSFERREQ pst_CallTrf );
E_CMBS_RC cmbs_api_ie_InternalCallTransferReqAdd( void * pv_RefIEList, PST_IE_INTERNAL_TRANSFER pst_InternalTransfer );
E_CMBS_RC cmbs_api_ie_InternalCallTransferReqGet( void * pv_RefIE, PST_IE_INTERNAL_TRANSFER pst_InternalTransfer );
E_CMBS_RC cmbs_api_ie_CallerPartyAdd( void * pv_RefIEList, ST_IE_CALLERPARTY * pst_CallerParty );
E_CMBS_RC cmbs_api_ie_CallerPartyGet( void * pv_RefIE, ST_IE_CALLERPARTY * pst_CallerParty );
E_CMBS_RC cmbs_api_ie_CalledPartyAdd( void * pv_RefIEList, ST_IE_CALLEDPARTY * pst_CalledParty );
E_CMBS_RC cmbs_api_ie_CalledPartyGet( void * pv_RefIE, ST_IE_CALLEDPARTY * pst_CalledParty );
E_CMBS_RC cmbs_api_ie_CallerNameAdd( void * pv_RefIEList, ST_IE_CALLERNAME * pst_CallerName );
E_CMBS_RC cmbs_api_ie_CallerNameGet( void * pv_RefIE, ST_IE_CALLERNAME * pst_CallerName );
E_CMBS_RC cmbs_api_ie_CallProgressAdd( void * pv_RefIEList, ST_IE_CALLPROGRESS * pst_CallProgress );
E_CMBS_RC cmbs_api_ie_CallProgressGet( void * pv_RefIE, ST_IE_CALLPROGRESS * pst_CallProgress );
E_CMBS_RC cmbs_api_ie_CallInfoAdd( void * pv_RefIEList, ST_IE_CALLINFO * pst_CallInfo );
E_CMBS_RC cmbs_api_ie_CallInfoGet( void * pv_RefIE, ST_IE_CALLINFO * pst_CallInfo );
E_CMBS_RC cmbs_api_ie_DisplayStringAdd( void * pv_RefIEList, ST_IE_DISPLAY_STRING * pst_DisplayString );
E_CMBS_RC cmbs_api_ie_CallReleaseReasonAdd( void * pv_RefIEList, ST_IE_RELEASE_REASON * pst_RelReason );
E_CMBS_RC cmbs_api_ie_CallReleaseReasonGet( void * pv_RefIE, ST_IE_RELEASE_REASON * pst_RelReason );
E_CMBS_RC cmbs_api_ie_CallStateGet( void * pv_RefIE, ST_IE_CALL_STATE * pst_CallState );
E_CMBS_RC cmbs_api_ie_UpdatedDeviceStateGet(void *pv_RefIE, ST_IE_UPDATED_DEVICE_STATE *st_DeviceState);
E_CMBS_RC cmbs_api_ie_DeviceListStatusGet(void *pv_RefIE, ST_IE_DEVICE_LIST_STATUS *st_DevListStatus);
E_CMBS_RC cmbs_api_ie_MediaChannelAdd( void * pv_RefIEList, ST_IE_MEDIA_CHANNEL * pst_MediaChannel );
E_CMBS_RC cmbs_api_ie_MediaChannelGet( void * pv_RefIE, ST_IE_MEDIA_CHANNEL * pst_MediaChannel );
E_CMBS_RC cmbs_api_ie_AudioShmemAdd( void * pv_RefIEList, ST_IE_AUDIO_SHMEM * pst_ShmemParams );
E_CMBS_RC cmbs_api_ie_AudioShmemGet( void * pv_RefIE, ST_IE_AUDIO_SHMEM * pst_ShmemParams );
E_CMBS_RC cmbs_api_ie_MediaICAdd( void * pv_RefIEList, ST_IE_MEDIA_INTERNAL_CONNECT * pst_MediaIC );
E_CMBS_RC cmbs_api_ie_MediaICGet( void * pv_RefIE, ST_IE_MEDIA_INTERNAL_CONNECT * pst_MediaIC );
E_CMBS_RC cmbs_api_ie_MediaDescAdd( void * pv_RefIEList, ST_IE_MEDIA_DESCRIPTOR * pst_MediaDesc );
E_CMBS_RC cmbs_api_ie_MediaDescGet( void * pv_RefIE, ST_IE_MEDIA_DESCRIPTOR * pst_MediaDesc );
E_CMBS_RC cmbs_api_ie_ToneAdd( void * pv_RefIEList, ST_IE_TONE * pst_Tone );
E_CMBS_RC cmbs_api_ie_ToneVolumeAdd(void *pv_RefIEList, u16 u16_TOGVOlume);
E_CMBS_RC cmbs_api_ie_ToneVolumeGet(void *pv_RefIE, u16 *pu16_TOGVOlume);
E_CMBS_RC cmbs_api_ie_TimeAdd( void * pv_RefIEList, ST_IE_TIMEOFDAY * pst_TimeOfDay );
E_CMBS_RC cmbs_api_ie_TimeGet( void * pv_RefIE, ST_IE_TIMEOFDAY * pst_TimeOfDay );
E_CMBS_RC cmbs_api_ie_HandsetInfoGet( void * pv_RefIE, ST_IE_HANDSETINFO * pst_HandsetInfo );
E_CMBS_RC cmbs_api_ie_ParameterGet( void * pv_RefIE, ST_IE_PARAMETER * pst_Parameter );
E_CMBS_RC cmbs_api_ie_SubscribedHSListAdd( void * pv_RefIE, ST_IE_SUBSCRIBED_HS_LIST * pst_SubscribedHsList );
E_CMBS_RC cmbs_api_ie_SubscribedHSListGet( void * pv_RefIE, ST_IE_SUBSCRIBED_HS_LIST * pst_SubscribedHsList );
E_CMBS_RC cmbs_api_ie_LAPropCmdAdd( void * pv_RefIE, ST_LA_PROP_CMD * pst_Cmd );
E_CMBS_RC cmbs_api_ie_LAPropCmdGet( void * pv_RefIE, ST_LA_PROP_CMD * pst_Cmd );
E_CMBS_RC cmbs_api_ie_LineSettingsListAdd( void * pv_RefIE, ST_IE_LINE_SETTINGS_LIST * pst_LineSettingsList );
E_CMBS_RC cmbs_api_ie_LineSettingsListGet( void * pv_RefIE, ST_IE_LINE_SETTINGS_LIST * pst_LineSettingsList );
E_CMBS_RC cmbs_api_ie_ParameterAreaGet( void * pv_RefIE, ST_IE_PARAMETER_AREA * pst_ParameterArea );
E_CMBS_RC cmbs_api_ie_FwVersionGet( void * pv_RefIE, ST_IE_FW_VERSION * pst_FwVersion );
E_CMBS_RC cmbs_api_ie_HwVersionGet( void * pv_RefIE, ST_IE_HW_VERSION * pst_HwVersion );
E_CMBS_RC cmbs_api_ie_EEPROMVersionGet( void * pv_RefIE, ST_IE_EEPROM_VERSION * pst_EEPROMVersion );
E_CMBS_RC cmbs_api_ie_SysLogGet( void * pv_RefIE, ST_IE_SYS_LOG * pst_SysLog );
E_CMBS_RC cmbs_api_ie_SysStatusGet( void * pv_RefIE, ST_IE_SYS_STATUS * pst_SysStatus );
E_CMBS_RC cmbs_api_ie_ResponseAdd( void * pv_RefIE, ST_IE_RESPONSE * pst_Response );
E_CMBS_RC cmbs_api_ie_ResponseGet( void * pv_RefIE, ST_IE_RESPONSE * pst_Response );
E_CMBS_RC cmbs_api_ie_DateTimeAdd( void * pv_RefIEList, ST_IE_DATETIME * pst_DateTime );
E_CMBS_RC cmbs_api_ie_DateTimeGet( void * pv_RefIE, ST_IE_DATETIME * pst_DateTime );
E_CMBS_RC cmbs_api_ie_DataGet( void * pv_RefIE, ST_IE_DATA * pst_Data );
E_CMBS_RC cmbs_api_ie_DataSessionIdAdd( void * pv_RefIE, u16 pu16_DataSessionId );
E_CMBS_RC cmbs_api_ie_DataSessionIdGet( void * pv_RefIE, u16 * pu16_DataSessionId );
E_CMBS_RC cmbs_api_ie_DataSessionTypeGet( void * pv_RefIE, ST_IE_DATA_SESSION_TYPE * pst_DataSessionType );
E_CMBS_RC cmbs_api_ie_LASessionIdAdd( void * pv_RefIE, u16 pu16_LASessionId );
E_CMBS_RC cmbs_api_ie_LASessionIdGet( void * pv_RefIE, u16 * pu16_LASessionId );
E_CMBS_RC cmbs_api_ie_LAListIdGet( void * pv_RefIE, u16 * pu16_LAListId );
E_CMBS_RC cmbs_api_ie_LAListIdAdd( void * pv_RefIE, u16 u16_LAListId );
E_CMBS_RC cmbs_api_ie_LAFieldsGet( void * pv_RefIE, ST_IE_LA_FIELDS * pst_LAFields );
E_CMBS_RC cmbs_api_ie_LASearchCriteriaGet( void * pv_RefIE, ST_IE_LA_SEARCH_CRITERIA * pst_LASearchCriteria );
E_CMBS_RC cmbs_api_ie_LAEntryIdGet( void * pv_RefIE, u16 * pu16_LAEntryId );
E_CMBS_RC cmbs_api_ie_LAEntryIndexGet( void * pv_RefIE, u16 * pu16_LAEntryIndex );
E_CMBS_RC cmbs_api_ie_LAEntryCountGet( void * pv_RefIE, u16 * pu16_LAEntryCount );
E_CMBS_RC cmbs_api_ie_LAIsLastGet( void * pv_RefIE, u8 * pu8_LAIsLast );
E_CMBS_RC cmbs_api_ie_ATESettingsGet( void * pv_RefIE, ST_IE_ATE_SETTINGS * pst_AteSettings );
E_CMBS_RC cmbs_api_ie_ATESettingsAdd( void * pv_RefIEList, ST_IE_ATE_SETTINGS * pst_AteSettings );
E_CMBS_RC cmbs_api_ie_ReadDirectionAdd( void * pv_RefIEList, ST_IE_READ_DIRECTION * pst_ReadDirection );
E_CMBS_RC cmbs_api_ie_ReadDirectionGet( void * pv_RefIE, ST_IE_READ_DIRECTION * pst_ReadDirection );
E_CMBS_RC cmbs_api_ie_MarkRequestAdd( void * pv_RefIEList, ST_IE_MARK_REQUEST * pst_MarkRequest );
E_CMBS_RC cmbs_api_ie_MarkRequestGet( void * pv_RefIE, ST_IE_MARK_REQUEST * pst_MarkRequest );
E_CMBS_RC cmbs_api_ie_VersionAvailAdd( void * pv_RefIEList, ST_SUOTA_UPGRADE_DETAILS* st_HSVerAvail );
E_CMBS_RC cmbs_api_ie_VersionAvailGet (void * pv_RefIEList, ST_SUOTA_UPGRADE_DETAILS* pst_HSVerAvail );
E_CMBS_RC cmbs_api_ie_VersionBufferAdd( void * pv_RefIEList, ST_VERSION_BUFFER* pst_SwVersion);
E_CMBS_RC cmbs_api_ie_VersionBufferGet( void * pv_RefIEList, ST_VERSION_BUFFER* pst_SwVersion);
E_CMBS_RC cmbs_api_ie_VersionIndGet( void * pv_RefIEList, ST_SUOTA_HS_VERSION_IND* pst_HSVerInd);
E_CMBS_RC cmbs_api_ie_VersionIndAdd( void * pv_RefIEList, ST_SUOTA_HS_VERSION_IND* st_HSVerInd);
E_CMBS_RC cmbs_api_ie_UrlAdd( void * pv_RefIEList, ST_URL_BUFFER* pst_Url);
E_CMBS_RC cmbs_api_ie_UrlGet( void * pv_RefIEList, ST_URL_BUFFER* pst_Url);
E_CMBS_RC cmbs_api_ie_NBOTACodecAdd( void *pv_RefIEList, PST_IE_NB_CODEC_OTA pst_Codec );
E_CMBS_RC cmbs_api_ie_NBOTACodecGet( void *pv_RefIE, PST_IE_NB_CODEC_OTA pst_Codec );
E_CMBS_RC cmbs_api_ie_TargetListChangeNotifAdd( void *pv_RefIEList, PST_IE_TARGET_LIST_CHANGE_NOTIF pst_Notif );
E_CMBS_RC cmbs_api_ie_TargetListChangeNotifGet( void * pv_RefIE, PST_IE_TARGET_LIST_CHANGE_NOTIF pst_Notif );
E_CMBS_RC cmbs_api_ie_DectSettingsListAdd( void * pv_RefIEList, ST_IE_DECT_SETTINGS_LIST * pst_DectSettings );
E_CMBS_RC cmbs_api_ie_DectSettingsListGet( void * pv_RefIE, ST_IE_DECT_SETTINGS_LIST * pst_DectSettings );
E_CMBS_RC cmbs_api_ie_RTPSessionInformationAdd( void * pv_RefIEList, const ST_IE_RTP_SESSION_INFORMATION * pst_RTPSessionInformation );
E_CMBS_RC cmbs_api_ie_RTPSessionInformationGet( void * pv_RefIE, ST_IE_RTP_SESSION_INFORMATION * pst_RTPSessionInformation );
E_CMBS_RC cmbs_api_ie_RTCPIntervalAdd( void * pv_RefIEList, u32 u32_RTCPInterval );
E_CMBS_RC cmbs_api_ie_RTCPIntervalGet( void * pv_RefIE, u32 * pu32_RTCPInterval );
E_CMBS_RC cmbs_api_ie_RTPDTMFEventAdd( void * pv_RefIEList, const ST_IE_RTP_DTMF_EVENT * pst_RTPDTMFEvent );
E_CMBS_RC cmbs_api_ie_RTPDTMFEventGet( void * pv_RefIE, ST_IE_RTP_DTMF_EVENT * pst_RTPDTMFEvent );
E_CMBS_RC cmbs_api_ie_RTPDTMFEventInfoAdd( void * pv_RefIEList, const ST_IE_RTP_DTMF_EVENT_INFO * pst_RTPDTMFEventInfo );
E_CMBS_RC cmbs_api_ie_RTPDTMFEventInfoGet( void * pv_RefIE, ST_IE_RTP_DTMF_EVENT_INFO * pst_RTPDTMFEventInfo );
E_CMBS_RC cmbs_api_ie_RTPFaxToneTypeAdd( void * pv_RefIEList, E_CMBS_FAX_TONE_TYPE e_FaxToneType );
E_CMBS_RC cmbs_api_ie_RTPFaxToneTypeGet( void * pv_RefIE, E_CMBS_FAX_TONE_TYPE * pe_FaxToneType );
E_CMBS_RC cmbs_api_ie_BaseNameAdd( void * pv_RefIE, ST_IE_BASE_NAME* pst_BaseName );
E_CMBS_RC cmbs_api_ie_BaseNameGet( void * pv_RefIE, ST_IE_BASE_NAME* pst_BaseName );
E_CMBS_RC cmbs_api_ie_RegCloseReasonGet(void * pv_RefIE, ST_IE_REG_CLOSE_REASON* st_Reg_Close_Reason);
E_CMBS_RC cmbs_api_ie_RegEnableTypeAdd(void *pv_RefIE, E_CMBS_HS_REGISTER_ENABLE e_RegEnable);
E_CMBS_RC cmbs_api_ie_RegEnableTypeGet(void *pv_RefIE, u8 *u8_RegEnable);
E_CMBS_RC cmbs_api_ie_DCRejectReasonGet(void * pv_RefIE, ST_IE_DC_REJECT_REASON* st_DC_Reject_Reason);
E_CMBS_RC cmbs_api_ie_DCRejectReasonAdd(void * pv_RefIE, ST_IE_DC_REJECT_REASON* st_DC_Reject_Reason);
E_CMBS_RC cmbs_api_ie_ParameterAdd( void * pv_RefIEList, ST_IE_PARAMETER * pst_Param );
E_CMBS_RC cmbs_api_ie_ParameterAreaAdd( void * pv_RefIEList, ST_IE_PARAMETER_AREA * pst_ParamArea );
E_CMBS_RC cmbs_api_ie_HandsetInfoAdd( void * pv_RefIEList, ST_IE_HANDSETINFO * pst_HandsetInfo );
E_CMBS_RC cmbs_api_ie_DisplayStringGet( void * pv_RefIE, ST_IE_DISPLAY_STRING * pst_DisplayString );
E_CMBS_RC cmbs_api_ie_ToneGet( void * pv_RefIE, ST_IE_TONE * pst_Tone );
E_CMBS_RC cmbs_api_ie_FwVersionAdd( void * pv_RefIEList, ST_IE_FW_VERSION * pst_FwVersion );
E_CMBS_RC cmbs_api_ie_EEPROMVersionAdd( void * pv_RefIEList, ST_IE_EEPROM_VERSION * pst_EEPROMVersion );
E_CMBS_RC cmbs_api_ie_HwVersionAdd( void * pv_RefIEList, ST_IE_HW_VERSION * pst_HwVersion );
E_CMBS_RC cmbs_api_ie_SysLogAdd( void * pv_RefIEList, ST_IE_SYS_LOG * pst_SysLog );
E_CMBS_RC cmbs_api_ie_SysStatusAdd( void * pv_RefIEList, ST_IE_SYS_STATUS * pst_SysStatus );
E_CMBS_RC cmbs_api_ie_GenEventAdd( void * pv_RefIEList, ST_IE_GEN_EVENT * pst_GenEvent );
E_CMBS_RC cmbs_api_ie_GenEventGet( void * pv_RefIE, ST_IE_GEN_EVENT * pst_GenEvent );
E_CMBS_RC cmbs_api_ie_PropEventAdd( void * pv_RefIEList, ST_IE_PROP_EVENT * pst_PropEvent );
E_CMBS_RC cmbs_api_ie_PropEventGet( void * pv_RefIE, ST_IE_PROP_EVENT * pst_PropEvent );
E_CMBS_RC cmbs_api_ie_PropEventNotifyAdd(void *pv_RefIEList, ST_IE_PROP_EVENT_NOTIFY *pst_PropEvent);
E_CMBS_RC cmbs_api_ie_PropEventNotifyGet(void *pv_RefIE, ST_IE_PROP_EVENT_NOTIFY *pst_PropEvent);
E_CMBS_RC cmbs_api_ie_GenEventDetailsAdd(void *pv_RefIEList, ST_IE_GEN_EVENT_DETAILS *pst_GenEventDetails);
E_CMBS_RC cmbs_api_ie_GenEventDetailsGet(void *pv_RefIE, ST_IE_GEN_EVENT_DETAILS *pst_GenEventDetails);
E_CMBS_RC cmbs_api_ie_DataSessionTypeAdd( void * pv_RefIEList, ST_IE_DATA_SESSION_TYPE * pst_DataSessionType );
E_CMBS_RC cmbs_api_ie_DataAdd( void * pv_RefIEList, ST_IE_DATA * pst_Data );
E_CMBS_RC cmbs_api_ie_CallStateAdd( void * pv_RefIEList, ST_IE_CALL_STATE * pst_CallState );
E_CMBS_RC cmbs_api_ie_LAFieldsAdd( void * pv_RefIEList, ST_IE_LA_FIELDS * pst_LAFields, E_CMBS_IE_TYPE e_IEType );
E_CMBS_RC cmbs_api_ie_LASelectionTypeAdd(void *pv_RefIE, u16 u16_SelectionType);
E_CMBS_RC cmbs_api_ie_LASelectionTypeGet(void *pv_RefIE, u16 *u16_SelectionType);
E_CMBS_RC cmbs_api_ie_LAEntryRangeAdd(void *pv_RefIEList, ST_IE_LA_ENTRY_RANGE *pst_EntryRange);
E_CMBS_RC cmbs_api_ie_LAEntryRangeGet(void *pv_RefIE, ST_IE_LA_ENTRY_RANGE *pst_EntryRange);
E_CMBS_RC cmbs_api_ie_LAEntryIdsAdd(void *pv_RefIEList, ST_IE_LA_ENTRY_IDS *pst_EntryIds);
E_CMBS_RC cmbs_api_ie_LAEntryIdsGet(void *pv_RefIE, ST_IE_LA_ENTRY_IDS *pst_EntryIds);
E_CMBS_RC cmbs_api_ie_LASearchCriteriaAdd( void * pv_RefIEList, ST_IE_LA_SEARCH_CRITERIA * pst_LASearchCriteria );
E_CMBS_RC cmbs_api_ie_RegCloseReasonAdd( void * pv_RefIEList, ST_IE_REG_CLOSE_REASON * pst_Reg_Close_Reason );
E_CMBS_RC cmbs_api_ie_UpdatedDeviceStateAdd(void *pv_RefIEList, ST_IE_UPDATED_DEVICE_STATE *st_DeviceState);
E_CMBS_RC cmbs_api_ie_DeviceListStatusAdd(void *pv_RefIEList, ST_IE_DEVICE_LIST_STATUS *st_DevListStatus);
E_CMBS_RC cmbs_api_ie_LAEntryIdAdd( void * pv_RefIE, u16 u16_LAEntryId );
E_CMBS_RC cmbs_api_ie_LAEntryIndexAdd( void * pv_RefIE, u16 u16_LAEntryIndex );
E_CMBS_RC cmbs_api_ie_LAEntryCountAdd( void * pv_RefIE, u16 u16_LAEntryCount );
E_CMBS_RC cmbs_api_ie_LAIsLastAdd( void * pv_RefIE, u8 u8_LAIsLast );
E_CMBS_RC cmbs_api_ie_LARejectReasonAdd( void * pv_RefIE, u8 u8_LARejectReason );
E_CMBS_RC cmbs_api_ie_LARejectReasonGet( void * pv_RefIE, u8 * pu8_LARejectReason );
E_CMBS_RC cmbs_api_ie_LANrOfEntriesAdd( void * pv_RefIE, u16 u16_LANrOfEntries );
E_CMBS_RC cmbs_api_ie_LANrOfEntriesGet( void * pv_RefIE, u16 * pu16_LANrOfEntries );
E_CMBS_RC cmbs_api_ie_LineSubtypeAdd( void * pv_RefIEList, u8 value );
E_CMBS_RC cmbs_api_ie_LineSubtypeGet( void * pv_RefIE, u8 * value );
E_CMBS_RC cmbs_api_ie_SuSubtypeAdd( void * pv_RefIEList, u8 value );
E_CMBS_RC cmbs_api_ie_SuSubtypeGet( void * pv_RefIE, u8 * value );
E_CMBS_RC cmbs_api_ie_NumOfUrlsAdd( void * pv_RefIEList, u8 value );
E_CMBS_RC cmbs_api_ie_NumOfUrlsGet( void * pv_RefIE, u8 * value );
E_CMBS_RC cmbs_api_ie_RejectReasonAdd( void * pv_RefIEList, u8 value );
E_CMBS_RC cmbs_api_ie_RejectReasonGet( void * pv_RefIE, u8 * value );
E_CMBS_RC cmbs_api_ie_SuotaAppIdAdd(void * pv_RefIE, u32 u32_SuotaAppId);
E_CMBS_RC cmbs_api_ie_SuotaAppIdGet(void * pv_RefIE, u32 * u32_SuotaAppId);
E_CMBS_RC cmbs_api_ie_SuotaSessionIdAdd(void * pv_RefIE, u32 u32_SuotaSessionId);
E_CMBS_RC cmbs_api_ie_SuotaSessionIdGet(void * pv_RefIE, u32 * u32_SuotaSessionId);
E_CMBS_RC cmbs_api_ie_HsPropEventAdd( void * pv_RefIEList, ST_IE_HS_PROP_EVENT * pst_Param );
E_CMBS_RC cmbs_api_ie_HsPropEventGet( void * pv_RefIE, ST_IE_HS_PROP_EVENT * pst_Parameter );
E_CMBS_RC cmbs_api_ie_SYPOSpecificationGet(void * pv_RefIE, ST_IE_SYPO_SPECIFICATION* pst_Parameter);
E_CMBS_RC cmbs_api_ie_SYPOSpecificationAdd(void * pv_RefIE, ST_IE_SYPO_SPECIFICATION * pst_Parameter);
E_CMBS_RC cmbs_api_ie_AFE_EndpointConnectionGet( void *pv_RefIE, ST_IE_AFE_ENDPOINTS_CONNECT *pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointConnectionAdd( void *pv_RefIE, ST_IE_AFE_ENDPOINTS_CONNECT *pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointGet( void *pv_RefIE, ST_IE_AFE_ENDPOINT *pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointAdd( void * pv_RefIE, ST_IE_AFE_ENDPOINT * pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointGainGet( void * pv_RefIE, ST_IE_AFE_ENDPOINT_GAIN *pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointGainAdd( void * pv_RefIE, ST_IE_AFE_ENDPOINT_GAIN * pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointGainDBGet( void * pv_RefIE, ST_IE_AFE_ENDPOINT_GAIN_DB * pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_EndpointGainDBAdd( void * pv_RefIE, ST_IE_AFE_ENDPOINT_GAIN_DB * pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_AUXMeasureSettingsGet( void * pv_RefIE, ST_IE_AFE_AUX_MEASUREMENT_SETTINGS* pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_AUXMeasureSettingsAdd( void * pv_RefIE, ST_IE_AFE_AUX_MEASUREMENT_SETTINGS* pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_AUXMeasureResultGet( void * pv_RefIE, ST_IE_AFE_AUX_MEASUREMENT_RESULT* pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_AUXMeasureResultAdd( void * pv_RefIE, ST_IE_AFE_AUX_MEASUREMENT_RESULT* pst_Parameter );
E_CMBS_RC cmbs_api_ie_AFE_ResourceTypeAdd(void * pv_RefIE, u8 u8_ResourceType);
E_CMBS_RC cmbs_api_ie_AFE_ResourceTypeGet(void * pv_RefIE, u8 * u8_ResourceType);
E_CMBS_RC cmbs_api_ie_AFE_InstanceNumAdd(void * pv_RefIE, u8 u8_InstanceNum);
E_CMBS_RC cmbs_api_ie_AFE_InstanceNumGet(void * pv_RefIE, u8 * u8_InstanceNum);
E_CMBS_RC cmbs_api_ie_DHSGValueAdd(void * pv_RefIE, u8 u8_DHSGValue);
E_CMBS_RC cmbs_api_ie_DHSGValueGet(void * pv_RefIE, u8 *u8_DHSGValue);
E_CMBS_RC cmbs_api_ie_GPIOIDGet(void * pv_RefIE, PST_IE_GPIO_ID pst_GPIOID);
E_CMBS_RC cmbs_api_ie_GPIOIDAdd(void * pv_RefIE, PST_IE_GPIO_ID st_GPIOID);
E_CMBS_RC cmbs_api_ie_PWMIDAdd(void *pv_RefIE, PST_IE_PWM_ID st_PWMID);
E_CMBS_RC cmbs_api_ie_PWMIDGet(void *pv_RefIE,PST_IE_PWM_ID pst_PWMID);
E_CMBS_RC cmbs_api_ie_GPIOModeGet(void * pv_RefIE, u8 * u8_Mode);
E_CMBS_RC cmbs_api_ie_GPIOModeAdd(void * pv_RefIE, u8 u8_Mode);
E_CMBS_RC cmbs_api_ie_GPIOValueGet(void * pv_RefIE, u8 * u8_Value);
E_CMBS_RC cmbs_api_ie_GPIOValueAdd(void * pv_RefIE, u8 u8_Value);
E_CMBS_RC cmbs_api_ie_GPIOPullTypeGet(void * pv_RefIE, u8 * u8_PullType);
E_CMBS_RC cmbs_api_ie_GPIOPullTypeAdd(void * pv_RefIE, u8 u8_PullType);
E_CMBS_RC cmbs_api_ie_GPIOPullEnaGet(void * pv_RefIE, u8 * u8_PullEna);
E_CMBS_RC cmbs_api_ie_GPIOPullEnaAdd(void * pv_RefIE, u8 u8_PullEna);
E_CMBS_RC cmbs_api_ie_GPIOEnaGet(void * pv_RefIE, u8 * u8_Ena);
E_CMBS_RC cmbs_api_ie_GPIOEnaAdd(void * pv_RefIE, u8 u8_Ena);
E_CMBS_RC cmbs_api_ie_PWMEnaAdd(void *pv_RefIE, u8 u8_Ena);
E_CMBS_RC cmbs_api_ie_PWMEnaGet(void *pv_RefIE, u8 *u8_Ena);
E_CMBS_RC cmbs_api_ie_ExtIntNumGet(void * pv_RefIE, u8 * u8_IntNum);
E_CMBS_RC cmbs_api_ie_ExtIntNumAdd(void * pv_RefIE, u8 u8_IntNum);
E_CMBS_RC cmbs_api_ie_ExtIntConfigurationAdd(void * pv_RefIE, PST_IE_INT_CONFIGURATION st_INTConfiguration);
E_CMBS_RC cmbs_api_ie_ExtIntConfigurationGet(void * pv_RefIE, PST_IE_INT_CONFIGURATION st_INTConfiguration);
E_CMBS_RC cmbs_api_ie_TerminalCapabilitiesAdd(void * pv_RefIE, PST_IE_TERMINAL_CAPABILITIES pst_TermCapability);
E_CMBS_RC cmbs_api_ie_TerminalCapabilitiesGet(void * pv_RefIE, PST_IE_TERMINAL_CAPABILITIES pst_TermCapability);
E_CMBS_RC cmbs_api_ie_ChecksumErrorAdd( void * pv_RefIEList, PST_IE_CHECKSUM_ERROR pst_CheckSumError);
E_CMBS_RC cmbs_api_ie_ChecksumErrorGet( void * pv_RefIE, PST_IE_CHECKSUM_ERROR pst_CheckSumError );
E_CMBS_RC cmbs_api_ie_CallHoldReasonGet(void * pv_RefIE, PST_IE_CALL_HOLD_REASON pst_Reason);
E_CMBS_RC cmbs_api_ie_CallHoldReasonAdd(void * pv_RefIE, PST_IE_CALL_HOLD_REASON pst_Reason);
E_CMBS_RC cmbs_api_ie_SuotaFileInfoAdd(void *pv_RefIE, PST_IE_SUOTA_FILE_INFO pst_FileInfo);
E_CMBS_RC cmbs_api_ie_SuotaFileInfoGet(void *pv_RefIE, PST_IE_SUOTA_FILE_INFO pst_FileInfo);
E_CMBS_RC cmbs_api_ie_DTAMSessionIdAdd(void *pv_RefIE, u16 u16_SessionId);
E_CMBS_RC cmbs_api_ie_DTAMSessionIdGet(void *pv_RefIE, u16 *u16_SessionId);
E_CMBS_RC cmbs_api_ie_DTAMStartSessionCfmAdd(void *pv_RefIE, PST_CMBS_DTAM_START_SESSION_CFM pst_StartSessionCfm);
E_CMBS_RC cmbs_api_ie_DTAMStartSessionCfmGet(void *pv_RefIE, PST_CMBS_DTAM_START_SESSION_CFM pst_StartSessionCfm);
E_CMBS_RC cmbs_api_ie_DTAMCommandAdd(void *pv_RefIE, u8 u8_Command);
E_CMBS_RC cmbs_api_ie_DTAMCommandGet(void *pv_RefIE, u8 *u8_Command);
E_CMBS_RC cmbs_api_ie_DTAMCommandNackAdd(void *pv_RefIE, PST_CMBS_DTAM_NACK pst_CommandNack);
E_CMBS_RC cmbs_api_ie_DTAMCommandNackGet(void *pv_RefIE, PST_CMBS_DTAM_NACK pst_CommandNack);
E_CMBS_RC cmbs_api_ie_DTAMStatusAdd(void *pv_RefIE, PST_CMBS_DTAM_STATUS pst_DTAMStatus);
E_CMBS_RC cmbs_api_ie_DTAMStatusGet(void *pv_RefIE, PST_CMBS_DTAM_STATUS pst_DTAMStatus);
E_CMBS_RC cmbs_api_ie_DTAMSelectNextMsgAdd(void *pv_RefIE, u8 u8_Value);
E_CMBS_RC cmbs_api_ie_DTAMSelectNextMsgGet(void *pv_RefIE, u8 *pu8_Value);
E_CMBS_RC cmbs_api_ie_DTAMMsgTypeAdd(void *pv_RefIE, u8 u8_MsgType);
E_CMBS_RC cmbs_api_ie_DTAMMsgTypeGet(void *pv_RefIE, u8 *pu8_MsgType);
E_CMBS_RC cmbs_api_ie_DTAMMsgIdxGet(void *pv_RefIE, u8 *pu8_MsgIdx);
E_CMBS_RC cmbs_api_ie_DTAMMsgIdxAdd(void *pv_RefIE, u8 u8_MsgIdx);
E_CMBS_RC cmbs_api_ie_DTAMPlayModeAdd(void *pv_RefIE, u8 u8_PlayMode);
E_CMBS_RC cmbs_api_ie_DTAMPlayModeGet(void *pv_RefIE, u8 *pu8_PlayMode);
E_CMBS_RC cmbs_api_ie_DTAMNumOfSecAdd(void *pv_RefIE, u8 u8_NumOfSec);
E_CMBS_RC cmbs_api_ie_DTAMNumOfSecGet(void *pv_RefIE, u8 *pu8_NumOfSec);
E_CMBS_RC cmbs_api_ie_RSSIGet(void *pv_RefIE, u8 *u8_RSSI);
E_CMBS_RC cmbs_api_ie_RSSIAdd(void *pv_RefIE, u8 u8_RSSI);
E_CMBS_RC cmbs_api_ie_CallStateFilterGet(void *pv_RefIE, u8 *u8_FilterType);
E_CMBS_RC cmbs_api_ie_CallStateFilterAdd(void *pv_RefIE, u8 u8_FilterType);
E_CMBS_RC cmbs_api_ie_LineTestResultsGet(void *pv_RefIE, PST_IE_SLIC_LINE_TEST_RES pst_LineTestResults);
E_CMBS_RC cmbs_api_ie_LineTestResultsAdd(void *pv_RefIE, PST_IE_SLIC_LINE_TEST_RES pst_LineTestResults);
E_CMBS_RC cmbs_api_ie_NltCapTestResultsGet(void *pv_RefIE, PST_IE_SLIC_NLT_CAP_TEST_RES pst_NltCapTestResults);
E_CMBS_RC cmbs_api_ie_NltCapTestResultsAdd(void *pv_RefIE, PST_IE_SLIC_NLT_CAP_TEST_RES pst_NltCapTestResults);
E_CMBS_RC cmbs_api_ie_FxsHookStatusAdd(void *pv_RefIEList, ST_IE_FXS_HOOK_STATUS *pst_FxsHookStatus);
E_CMBS_RC cmbs_api_ie_FxsHookStatusGet(void *pv_RefIE, ST_IE_FXS_HOOK_STATUS *pst_FxsHookStatus);
E_CMBS_RC cmbs_api_ie_CallDirectionAdd(void *pv_RefIEList, ST_IE_CALL_DIRECTION *pst_CallDirection);
E_CMBS_RC cmbs_api_ie_CallDirectionGet(void *pv_RefIE, ST_IE_CALL_DIRECTION *pst_CallDirection);
E_CMBS_RC cmbs_api_ie_JEDECIdGet(void *pv_RefIE, PST_IE_CMBS_JEDEC_ID pst_JEDECid);
E_CMBS_RC cmbs_api_ie_JEDECIdAdd(void *pv_RefIE, PST_IE_CMBS_JEDEC_ID pst_JEDECid);
E_CMBS_RC cmbs_api_ie_DTMFToneDurAdd(void *pv_RefIE, u16 u16_ToneDur);
E_CMBS_RC cmbs_api_ie_DTMFToneDurGet(void *pv_RefIE, u16 *pu16_ToneDur);
E_CMBS_RC cmbs_api_ie_CallListAdd(void *pv_RefIEList, ST_IE_CALL_LIST *pst_CallList);
E_CMBS_RC cmbs_api_ie_CallListGet(void *pv_RefIE, ST_IE_CALL_LIST *pst_CallList);
E_CMBS_RC cmbs_api_ie_TDMSlotsAdd(void *pv_RefIEList, u32 u32_Slots);
E_CMBS_RC cmbs_api_ie_TDMSlotsGet(void *pv_RefIEList, u32 *pu32_Slots);
E_CMBS_RC cmbs_api_ie_DTMFToneToHSAdd(void *pv_RefIE, u16 u16_DTMFToneToHSMask);
E_CMBS_RC cmbs_api_ie_DTMFToneToHSGet(void *pv_RefIE, u16 *pu16_DTMFToneToHSMask);
E_CMBS_RC cmbs_api_ie_HSReleaseReasonAdd(void *pv_RefIEList, ST_IE_HS_RELEASE_REASON *pst_RelReason);
E_CMBS_RC cmbs_api_ie_HSReleaseReasonGet(void *pv_RefIE, ST_IE_HS_RELEASE_REASON *pst_RelReason);
E_CMBS_RC cmbs_api_ie_CrashDumpEnableStatusAdd(void *pv_RefIEList, PST_IE_CRASH_DUMP_ENABLE_STATUS pst_Enable);
E_CMBS_RC cmbs_api_ie_CrashDumpEnableStatusGet(void *pv_RefIEList, PST_IE_CRASH_DUMP_ENABLE_STATUS pst_Enable);
E_CMBS_RC cmbs_api_ie_PacketNumberAdd(void *pv_RefIEList, PST_IE_PACKET_NUMBER pst_PktNr);
E_CMBS_RC cmbs_api_ie_PacketNumberGet(void *pv_RefIEList, PST_IE_PACKET_NUMBER pst_PktNr);
E_CMBS_RC cmbs_api_ie_CallScreeningAdd(void *pv_RefIE, PST_IE_CALL_SCREENING pst_CallScreening);
E_CMBS_RC cmbs_api_ie_CallScreeningGet(void *pv_RefIE, PST_IE_CALL_SCREENING pst_CallScreening);
E_CMBS_RC cmbs_api_ie_ProductIDAdd(void *pv_RefIEList, PST_IE_PRODUCT_ID pst_ProductID);
E_CMBS_RC cmbs_api_ie_ProductIDGet(void *pv_RefIEList, PST_IE_PRODUCT_ID pst_ProductID);
E_CMBS_RC cmbs_api_ie_OPUSDataAdd(void *pv_RefIEList, u8 *pu8_OPUSData, u16 u16_OPUSData_Size);
E_CMBS_RC cmbs_api_ie_OPUSDataGet(void *pv_RefIEList, u8 **ppu8_OPUSData, u16 *pu16_OPUSData_Size);
// E_CMBS_RC cmbs_api_ie_CallDataAdd(void *pv_RefIEList, PST_IE_CALL_DATA pst_CallData, u8 u8_NR_OF_TERMINALS);
// E_CMBS_RC cmbs_api_ie_CSMTableAdd(void *pv_RefIEList, PST_IE_CSM_TABLE pst_CSMTable, u8 u8_MAX_NUM_CSM_SESSIONS);
// E_CMBS_RC cmbs_api_ie_LineSessionDataAdd(void *pv_RefIEList, PST_IE_LINE_SESSION_DATA pst_LineSessionData, u8 u8_MAX_NUM_LINE_SESSIONS);
E_CMBS_RC cmbs_api_ie_CallDataAdd(void *pv_RefIEList, u8 *pst_CallData, u8 u8_NR_OF_TERMINALS);
E_CMBS_RC cmbs_api_ie_CallDataGet(void *pv_RefIE, u8 *pst_CallData);
E_CMBS_RC cmbs_api_ie_CallDataSizeGet(void *pv_RefIE, u16 *pu16_CallDataSize);
E_CMBS_RC cmbs_api_ie_CSMTableAdd(void *pv_RefIEList, u8 *pst_CSMTable, u8 u8_MAX_NUM_CSM_SESSIONS);
E_CMBS_RC cmbs_api_ie_CSMTableGet(void *pv_RefIE, u8 *pst_CSMTable);
E_CMBS_RC cmbs_api_ie_CSMTableSizeGet(void *pv_RefIE, u16 *pu16_CSMTableSize);
E_CMBS_RC cmbs_api_ie_LineSessionDataAdd(void *pv_RefIEList, u8 *pst_LineSessionData, u8 u8_MAX_NUM_LINE_SESSIONS);
E_CMBS_RC cmbs_api_ie_LineSessionDataGet(void *pv_RefIE, u8 *pst_LineSessionData);
E_CMBS_RC cmbs_api_ie_LineSessionDataSizeGet(void *pv_RefIE, u16 *pu16_LineSessionDataSize);
E_CMBS_RC cmbs_api_ie_DebugInfoRequestAdd(void *pv_RefIE, u16 u16_RequestMask);
E_CMBS_RC cmbs_api_ie_DebugInfoReqGet(void *pv_RefIE, u16 *pu16_InfoRequest);
E_CMBS_RC cmbs_api_ie_CMBSAppLineAdd(void *pv_RefIEList, u8 *pst_CMBSAppLine, u8 u8_CMBS_APP_LINE_MAX);
E_CMBS_RC cmbs_api_ie_CMBSAppLineGet(void *pv_RefIE, u8 *pst_CMBSAppLine);
E_CMBS_RC cmbs_api_ie_CMBSAppLineSizeGet(void *pv_RefIE, u16 *pu16_CMBSAppLineSize);
E_CMBS_RC cmbs_api_ie_TermLineSessionAdd(void *pv_RefIE, ST_IE_CALL_INFO *pst_CallInfo);
E_CMBS_RC cmbs_api_ie_TermLineSessionGet(void *pv_RefIE, ST_IE_CALL_INFO *pst_CallInfo);
E_CMBS_RC cmbs_api_ie_CallReconnectAdd(void *pv_RefIEList, u8 u8_CallReconnect);
E_CMBS_RC cmbs_api_ie_PowerModeTypeGet (void *pv_RefIE, u8 *pu8_powerMode);
E_CMBS_RC cmbs_api_ie_NumOfSlotsGet (void *pv_RefIE, u8 *pu8_NumOfSlots);
E_CMBS_RC cmbs_api_ie_PowerModeResGet(void *pv_RefIE, u8 *u8_PowerModeRes);
#endif

File diff suppressed because it is too large Load Diff

View File

@@ -1,322 +0,0 @@
/*!
* \file cmbs_int.h
* \brief This file contains internal structures and definitions of CMBS
*
* \author stein
*
* @(#) %filespec: cmbs_int.h~12.1.12 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
* 27-Jan-14 tcmc_asa ---GIT-- change type of cmbs_int_SendChecksumError
* 13-Jan-2014 tcmc_asa -- GIT-- take checksum changes from 3.46.x to 3_x main (3.5x)
* 20-Dec-13 tcmc_asa GIT Added CHECKSUM_SUPPORT
* 25-Feb-09 stein 61 Restructuration \n
* 18-Feb-09 kelbch 3 add target build version to HOST API structure \n
* 16-Feb-09 kelbch 2 Integration to host/target build\n
*******************************************************************************/
#if !defined( CMBS_INT_H )
#define CMBS_INT_H
#include "cmbs_api.h" /* CMBS API definition */
#include "cfr_ie.h" /* CMBS IE handling */
#include "cfr_mssg.h"
#if defined( __linux__ )
#include <pthread.h>
#include <unistd.h>
#endif
#ifdef WIN32
#include "windows.h"
#endif
/* Local definitions */
#if defined(CHECKSUM_SUPPORT) && defined(CMBS_DEBUG)
# define CHECKSUMPRINT(x) printf x
#else
# define CHECKSUMPRINT(x)
#endif
#if !defined ( CMBS_API_TARGET )
#ifndef CMBS_NUM_OF_HOST_THREADS
#define CMBS_NUM_OF_HOST_THREADS 8
/* Current host threads:
-1- Callback
-2- HAN
-3- UART
-4- Reconnect (temporary thread)
-5- SUOTA
-6- Log
-7- main
-8- RESERVED/FUTURE
*/
#endif
#define CMBS_UNKNOWN_THREAD 0xFF
///////////////////////////
#endif
/*!
brief endianess
*/
typedef enum
{
E_CMBS_ENDIAN_LITTLE, /*!< little endian */
E_CMBS_ENDIAN_BIG, /*!< big endian */
E_CMBS_ENDIAN_MIXED /*!< mixed endian */
} E_CMBS_ENDIAN;
/*!
\brief return value of DnA CMBS framework
*/
typedef enum
{
CFR_E_RETVAL_OK, /*!< successful return value*/
CFR_E_RETVAL_ERR, /*!< general error occured */
CFR_E_RETVAL_ERR_MEM, /*!< not enough memory available */
} CFR_E_RETVAL;
/*! currently default value of target module */
#define B0 0000000 /* hang up */
#define B50 0000001
#define B75 0000002
#define B110 0000003
#define B134 0000004
#define B150 0000005
#define B200 0000006
#define B300 0000007
#define B600 0000010
#define B1200 0000011
#define B1800 0000012
#define B2400 0000013
#define B4800 0000014
#define B9600 0000015
#define B19200 0000016
#define B38400 0000017
#define B57600 0010001
#define B115200 0010002
#define B230400 0010003
#define B460800 0010004
#define B500000 0010005
#define B576000 0010006
#define B921600 0010007
#define B1000000 0010010
#define B1152000 0010011
#define B1500000 0010012
#define B2000000 0010013
#define B2500000 0010014
#define B3000000 0010015
#define B3500000 0010016
#define B4000000 0010017
/*! \brief local application slot */
typedef struct
{
void * pv_AppRefHandle; /*!< store application reference pointer */
PFN_CMBS_API_CB pFnAppCb; /*!< store to be called function (reception of CMBS events)*/
ST_CB_LOG_BUFFER pFnCbLogBuffer; /*!< storage for callback of log buffer */
u16 u16_AppAPIVersion; /*!< requested API version of application (further needed to get compatibility)*/
#if defined ( CMBS_API_TARGET )
ST_CFR_IE_LIST st_TransmitterIEList; /*!< IE list of transmit direction */
u8 u8_IEBuffers[1][CMBS_BUF_SIZE]; /*!< 1 buffer of a complete IE list (one buffer for each thread, max. 1 thread) */
#else
ST_CFR_IE_LIST st_TransmitterIEList[CMBS_NUM_OF_HOST_THREADS]; /*!< IE list of transmit direction */
u8 u8_IEBuffers[CMBS_NUM_OF_HOST_THREADS][CMBS_BUF_SIZE]; /*!< 4 buffers of a complete IE list (one buffer for each thread, max. 4 threads) */
u32 u32_ThreadIdArray[CMBS_NUM_OF_HOST_THREADS]; /*!< Array to store thread id */
#endif // defined ( CMBS_API_TARGET )
} ST_CMBS_API_SLOT, * PST_CMBS_API_SLOT;
/*!
brief enum of commuication flow control
*/
typedef enum
{
E_CMBS_FLOW_STATE_GO, /*!< transmitter/receiver works fine */
E_CMBS_FLOW_STATE_STOP, /*!< transmitter/receiver is busy, no packet transmission*/
E_CMBS_FLOW_STATE_MAX
} E_CMBS_FLOW_STATE;
/*! \brief CMBS API Instance (local)*/
typedef struct
{
ST_CMBS_API_SLOT st_ApplSlot;
u16 u16_TargetVersion; /*!< target CMBS API version */
E_CMBS_HW_CHIP u8_HwChip; /*!< HW chip */
E_CMBS_HW_COM_TYPE u8_HwComType; /*!< HW communication */
u32 u32_CallInstanceCount;
//#if !defined ( CMBS_API_TARGET )
u16 u16_TargetBuild; /*!< contains the build version of target side*/
//#endif
E_CMBS_API_MODE e_Mode; /*!< request CMBSMode */
E_CMBS_FLOW_STATE e_OrigFlowState; /*!< Originator transmission state */
E_CMBS_FLOW_STATE e_DestFlowState; /*!< Destination transmission state */
E_CMBS_ENDIAN e_Endian; /*!< endianess: 0 = little */
#if defined( __linux__ )
E_CMBS_DEVTYPE eDevCtlType; /*!< control device type properties*/
int fdDevCtl; /*!< handle of such device */
E_CMBS_DEVTYPE eDevMediaType; /*!< media device type properties */
pthread_t serialThreadId; /*!< thread ID of serial pump */
pthread_t callbThreadId; /*!< thread ID of callback function */
pthread_mutex_t cond_Mutex;
pthread_cond_t cond_UnLock;
int msgQId; /*!< message queue information*/
#else
# if defined ( WIN32 )
E_CMBS_DEVTYPE eDevCtlType; /*!< control device type properties*/
E_CMBS_DEVTYPE eDevMediaType; /*!< media device type properties */
HANDLE h_InitBlock; /*!< handle to wait until CMBS is connected */
HANDLE h_RecPath; /*!< handle of synchronization path */
HANDLE h_RecThread; /*!< handle of receive data collector thread */
DWORD dw_ThreadID;
BOOL bo_Run;
# endif
#endif
CFR_CMBS_CRITICALSECTION h_CriticalSectionTransmission; /*!< Critical section for transmission of packets */
CFR_CMBS_CRITICALSECTION h_TxThreadCriticalSection;
} ST_CMBS_API_INST, * PST_CMBS_API_INST;
/*!
The following serialized message format shall be used:
0 1 2 3 4 5 6 7 8 9 10 11
| 0xda 0xda 0xda 0xda | 0xLO 0xHI | 0xLO 0xHI | 0xXX 0xYY | 0xLO 0xHI | parameter data
sync. total len packet nr. command param len
*/
#define CMBS_SYNC_LENGTH 4 /*!< Synchronization size */
#define CMBS_SYNC 0xDADADADA /*!< Synchronization value */
#define CMBS_RCV_STATE_IDLE 0
#define CMBS_RCV_STATE_SYNC 1
#define CMBS_RCV_STATE_DATA 2
/*! \brief CMBS API Instance (local)*/
/*! \brief Union representing a complete serial cmbs api message
the union uses to work on the message with byte or structure access */
typedef union
{
char serialBuf[sizeof(u32)+sizeof(ST_CMBS_SER_MSG)];
struct
{
u32 u32_Sync;
ST_CMBS_SER_MSG
st_Msg;
}st_Data;
} U_CMBS_SER_DATA, * PU_CMBS_SER_DATA;
#if defined(__linux__)
typedef struct
{
int nLength;
u8 u8_Data[CMBS_BUF_SIZE + sizeof(u32)];
} ST_CMBS_LIN_MSGDATA, * PST_CMBS_LIN_MSGDATA;
typedef struct
{
long msgType;
ST_CMBS_LIN_MSGDATA
msgData;
} ST_CMBS_LIN_MSG, * PST_CMBS_LIN_MSG;
#endif
#if defined( __cplusplus )
extern "C"
{
#endif
extern ST_CMBS_API_INST g_CMBSInstance;
extern ST_CAPABLITIES g_st_CMBSCapabilities;
/*****************************************************************************
* CMBS API Internal functions
*****************************************************************************/
E_CMBS_ENDIAN cmbs_int_EndiannessGet( void );
u16 cmbs_int_EndianCvt16( u16 u16_Value );
u32 cmbs_int_EndianCvt32( u32 u32_Value );
void cmbs_int_HdrEndianCvt( ST_CMBS_SER_MSGHDR *pst_Hdr );
// OS and environment dependent function
E_CMBS_RC cmbs_int_EnvCreate( E_CMBS_API_MODE e_Mode, ST_CMBS_DEV * pst_DevCtl, ST_CMBS_DEV * pst_DevMedia );
E_CMBS_RC cmbs_int_EnvDestroy( void );
// start-up blocking function to wait until CMBS is available
void _cmbs_int_StartupBlockSignal( PST_CMBS_API_INST pst_CMBSInst );
E_CMBS_RC cmbs_int_SendHello(ST_CMBS_DEV * pst_DevCtl, ST_CMBS_DEV * pst_DevMedia);
E_CMBS_RC cmbs_int_SendRAMDumpStoreCmd(void);
#if !defined( CMBS_API_TARGET )
E_CMBS_RC cmbs_int_WaitForResponse(u32 u32_TimeoutMs);
#endif
void * cmbs_int_RegisterCb( void * pv_AppRef, PFN_CMBS_API_CB pfn_api_Cb, u16 u16_bcdVersion );
void cmbs_int_RegisterLogBufferCb( void * pv_AppRef, PST_CB_LOG_BUFFER pfn_log_buffer_Cb );
void cmbs_int_UnregisterCb( void * pv_AppRefHandle );
u16 cmbs_int_ModuleVersionGet( void );
u16 cmbs_int_ModuleVersionBuildGet( void );
E_CMBS_RC cmbs_int_EventSend( E_CMBS_EVENT_ID e_EventID, u8 *pBuf, u16 u16_Length );
void cmbs_int_EventReceive ( u8 * pu8_Mssg, u16 u16_Size );
E_CMBS_RC cmbs_int_ResponseSend( E_CMBS_EVENT_ID e_ID, E_CMBS_RESPONSE e_RSPCode );
E_CMBS_RC cmbs_int_ResponseWithCallInstanceSend( E_CMBS_EVENT_ID e_ID,
E_CMBS_RESPONSE e_RSPCode,
u32 u32CallInstance);
E_CMBS_RC cmbs_int_RespWithCallInstChannelID(E_CMBS_EVENT_ID e_ID,
E_CMBS_RESPONSE e_RSPCode,
u32 u32CallInstance,
PST_IE_MEDIA_CHANNEL st_MediaChannel);
E_CMBS_RC cmbs_int_RespWithChannelID(E_CMBS_EVENT_ID e_ID,
E_CMBS_RESPONSE e_RSPCode,
PST_IE_MEDIA_CHANNEL pst_MediaChannel);
E_CMBS_RC cmbs_int_cmd_Send( u8 u8_Cmd, u8 * pBuf, u16 u16_Length );
void cmbs_int_cmd_Dispatcher( u8 u8_Cmd, u8 * pu8_Buffer, u16 u16_Size );
void cmbs_int_cmd_ReceiveEarly ( u8 * pu8_buffer );
void _cmbs_int_SuspendTxCommands( void );
void _cmbs_int_SuspendTxCommandswithoutSendingRES( void );
void _cmbs_int_ResumeTxCommands( void );
void _cmbs_int_ResumeTxCommandswithoutSendingRES( void );
void cmbs_int_cmd_FlowRestartHandle ( u16 u16_Packet );
void cmbs_int_cmd_FlowNOKHandle ( u16 u16_Packet );
u8 cmbs_int_cmd_FlowStateGet ( void );
u32 cmbs_cmd_parser( CMBS_CMD id, u8* pu8_Buffer, u8* pu8_Buffer_parse, u32 u32_Pos);
#ifdef CHECKSUM_SUPPORT
void p_cmbs_int_CalcChecksum(u8 * pCheckSum, u8 * pBuf, u16 u16_Length);
u8 p_cmbs_int_ChecksumVerify(u8 u8_Checksum[2], u8 * pBuf, u16 u16_Length);
E_CMBS_RC cmbs_int_SendChecksumError(E_CMBS_CHECKSUM_ERROR e_ErrorType, u16 u16_EventID);
void cmbs_int_SimulateChecksumError(char u8_ErrorType);
#endif
void cmbs_int_cmd_SendCapablities (void);
void cmbs_int_cmd_SendCapablitiesReply (void);
void cmbs_int_ParseDectMsg(u8 * buff, u8 u8_ILen, u8 u8_HandsetNumber);
E_CMBS_RC cmbs_int_ie_RingTypeGet( void * pv_RefIE, u32 * pu32_Value );
#if defined( __cplusplus )
}
#endif
#endif // CMBS_INT_H
// EOF

View File

@@ -1,98 +0,0 @@
/*!
* \file cmbs_rtp.c
* \brief CMBS RTP Extension
* \Author Denis Matiukha
*
* @(#) cmbs_rtp.c~1
*
*******************************************************************************/
#if defined(__arm)
#include "tclib.h"
#include "embedded.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
#include "cmbs_int.h"
E_CMBS_RC cmbs_rtp_SessionStart ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_SESSION_START, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtp_SessionStop ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_SESSION_STOP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtp_SessionUpdate ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_SESSION_UPDATE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtcp_SessionStart ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTCP_SESSION_START, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtcp_SessionStop ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTCP_SESSION_STOP, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtp_SendDTMF ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_SEND_DTMF, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtp_EnableFaxAudioProcessingMode ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_ENABLE_FAX_AUDIO_PROCESSING_MODE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_rtp_DisableFaxAudioProcessingMode ( void * pv_AppRefHandle, void * pv_RefIEList )
{
PST_CFR_IE_LIST p_List = (PST_CFR_IE_LIST)pv_RefIEList;
UNUSED_PARAMETER( pv_AppRefHandle );
return cmbs_int_EventSend( CMBS_EV_RTP_DISABLE_FAX_AUDIO_PROCESSING_MODE, p_List->pu8_Buffer, p_List->u16_CurSize );
}

View File

@@ -1,180 +0,0 @@
/*!
* \file cmbs_suota.c
* \brief
* \Author stein
*
* @(#) %filespec: cmbs_suota.c~7 %
*
*******************************************************************************/
#if defined(__arm)
#include "tclib.h"
#include "embedded.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
#include "cmbs_int.h"
#define SUOTA_APPLICATION_ID 0x437
//effi
E_CMBS_RC cmbs_dsr_suota_Init(void *pv_AppRefHandle)
{
PST_CFR_IE_LIST p_List;
PST_CFR_IE_LIST p_List2;
E_CMBS_EVENT_ID e_EventID;
ST_IE_DATA st_Data;
char Buffer[4];
UNUSED_PARAMETER( pv_AppRefHandle );
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
e_EventID = CMBS_EV_DSR_SUOTA_REG_CPLANE_CB;
// Add IEs
cmbs_api_ie_SuotaAppIdAdd(p_List, SUOTA_APPLICATION_ID);
cmbs_api_ie_SuotaSessionIdAdd(p_List, 0);
st_Data.u16_DataLen = 0;
st_Data.pu8_Data = 0;
cmbs_api_ie_DataAdd(p_List, &st_Data);
cmbs_int_EventSend(e_EventID, p_List->pu8_Buffer, p_List->u16_CurSize);
// app cb
p_List2 = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
e_EventID = CMBS_EV_DSR_SUOTA_REG_APP_CB;
memset(Buffer,0,4);
// Add IEs
cmbs_api_ie_SuotaAppIdAdd(p_List, SUOTA_APPLICATION_ID);
cmbs_api_ie_SuotaSessionIdAdd(p_List, 0);
st_Data.u16_DataLen = 4;
st_Data.pu8_Data = (u8*)Buffer;
cmbs_api_ie_DataAdd(p_List, &st_Data);
cmbs_int_EventSend(e_EventID, p_List2->pu8_Buffer, p_List2->u16_CurSize);
return 0;
}
E_CMBS_RC cmbs_dsr_suota_SendHSVersionAvail (void *pv_AppRefHandle, ST_SUOTA_UPGRADE_DETAILS st_HSVerAvail, u16 u16_Handset, ST_VERSION_BUFFER* pst_SwVersion, u16 u16_RequestId)
{
PST_CFR_IE_LIST p_List;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_ShortValueAdd( p_List, u16_Handset, CMBS_IE_HANDSETS);
cmbs_api_ie_VersionAvailAdd(p_List, &st_HSVerAvail);
cmbs_api_ie_VersionBufferAdd( p_List, pst_SwVersion);
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
return cmbs_int_EventSend( CMBS_EV_DSR_SUOTA_SEND_VERS_AVAIL, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dsr_suota_SendSWUpdateInd ( void *pv_AppRefHandle, u16 u16_Handset, E_SUOTA_SU_SubType enSubType, u16 u16_RequestId )
{
PST_CFR_IE_LIST p_List;
UNUSED_PARAMETER( pv_AppRefHandle );
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
cmbs_api_ie_ShortValueAdd( p_List, u16_Handset, CMBS_IE_HANDSETS);
cmbs_api_ie_ByteValueAdd(p_List,enSubType,CMBS_IE_SU_SUBTYPE);
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
return cmbs_int_EventSend( CMBS_EV_DSR_SUOTA_SEND_SW_UPD_IND, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dsr_suota_SendURL ( void *pv_AppRefHandle, u16 u16_Handset, u8 u8_URLToFollow, ST_URL_BUFFER* pst_Url, u16 u16_RequestId )
{
PST_CFR_IE_LIST p_List;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_ShortValueAdd( p_List, u16_Handset, CMBS_IE_HANDSETS);
cmbs_api_ie_ByteValueAdd(p_List,u8_URLToFollow,CMBS_IE_NUM_OF_URLS);
cmbs_api_ie_UrlAdd(p_List,pst_Url);
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
return cmbs_int_EventSend( CMBS_EV_DSR_SUOTA_SEND_URL, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dsr_suota_SendNack ( void *pv_AppRefHandle, u16 u16_Handset, E_SUOTA_RejectReason RejectReason, u16 u16_RequestId )
{
PST_CFR_IE_LIST p_List;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_ShortValueAdd( p_List, u16_Handset, CMBS_IE_HANDSETS);
cmbs_api_ie_ByteValueAdd(p_List,RejectReason,CMBS_IE_REJECT_REASON);
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
return cmbs_int_EventSend( CMBS_EV_DSR_SUOTA_SEND_NACK, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dsr_suota_Unreg_App_CB(void)
{
PST_CFR_IE_LIST p_List;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
return cmbs_int_EventSend(CMBS_EV_DSR_SUOTA_UNREG_APP_CB, p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_suota_Session_Close ( void *pv_AppRefHandle, u32 u32_SessionId )
{
PST_CFR_IE_LIST p_List;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_SuotaSessionIdAdd(p_List, u32_SessionId );
return cmbs_int_EventSend( CMBS_EV_DSR_SUOTA_SESSION_CLOSE, p_List->pu8_Buffer, p_List->u16_CurSize );
}
E_CMBS_RC cmbs_dsr_suota_DataSend (void *pv_AppRefHandle, u32 u32_appId, u32 u32_SessionId,
char *pSdu, u32 u32_SduLength,u16 u16_RequestId)
{
PST_CFR_IE_LIST p_List;
ST_IE_DATA st_Data;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
cmbs_api_ie_SuotaAppIdAdd(p_List, u32_appId);
cmbs_api_ie_SuotaSessionIdAdd(p_List, u32_SessionId);
st_Data.u16_DataLen = u32_SduLength;
st_Data.pu8_Data = (u8*)pSdu;
cmbs_api_ie_DataAdd( p_List, &st_Data );
return cmbs_int_EventSend(CMBS_EV_DSR_SUOTA_DATA_SEND, p_List->pu8_Buffer, p_List->u16_CurSize);
}
E_CMBS_RC cmbs_dsr_suota_ExtendedDataSend (void *pv_AppRefHandle, u32 u32_appId, u32 u32_SessionId,
char *pSdu, u32 u32_SduLength,u16 u16_RequestId, PST_IE_SUOTA_FILE_INFO pst_FileInfo)
{
PST_CFR_IE_LIST p_List;
ST_IE_DATA st_Data;
p_List = (PST_CFR_IE_LIST)cmbs_api_ie_GetList();
UNUSED_PARAMETER( pv_AppRefHandle );
cmbs_api_ie_RequestIdAdd( p_List, u16_RequestId );
cmbs_api_ie_SuotaAppIdAdd(p_List, u32_appId);
cmbs_api_ie_SuotaSessionIdAdd(p_List, u32_SessionId);
cmbs_api_ie_SuotaFileInfoAdd(p_List, pst_FileInfo);
st_Data.u16_DataLen = u32_SduLength;
st_Data.pu8_Data = (u8*)pSdu;
cmbs_api_ie_DataAdd( p_List, &st_Data );
return cmbs_int_EventSend(CMBS_EV_DSR_SUOTA_DATA_SEND, p_List->pu8_Buffer, p_List->u16_CurSize);
}
/*---------[End Of File]---------------------------------------------------------------------------------------------------------------------------*/

View File

@@ -1,244 +0,0 @@
/*!
* \file cmbs_util.c
* \brief This file contains utility functions for CMBS API usage
* \Author andriig
*
* @(#) %filespec: cmbs_util.c~DMZD53#2.1.2 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================
* date name version action
* ---------------------------------------------------------------------------
*
* 17-Oct-14 tcmc_asa ---GIT-- added CMBS_PARAM_INL_DEL
* 30-Jul-2013 tcmc_asa --GIT-- added CMBS_PARAM_FP_CUSTOM_FEATURES(_LENGTH )
*
*******************************************************************************/
#include "cmbs_util.h"
#include "cfr_debug.h"
u16 cmbs_util_GetParameterLength( E_CMBS_PARAM e_Param )
{
switch ( e_Param )
{
case CMBS_PARAM_RFPI:
return CMBS_PARAM_RFPI_LENGTH;
case CMBS_PARAM_RVBG:
return CMBS_PARAM_RVBG_LENGTH;
case CMBS_PARAM_RVREF:
return CMBS_PARAM_RVREF_LENGTH;
case CMBS_PARAM_RXTUN:
return CMBS_PARAM_RXTUN_LENGTH;
case CMBS_PARAM_MASTER_PIN:
case CMBS_PARAM_AUTH_PIN:
return CMBS_PARAM_PIN_CODE_LENGTH;
case CMBS_PARAM_COUNTRY:
return CMBS_PARAM_COUNTRY_LENGTH;
case CMBS_PARAM_SIGNALTONE_DEFAULT:
return CMBS_PARAM_SIGNALTONE_LENGTH;
case CMBS_PARAM_TEST_MODE:
return CMBS_PARAM_TEST_MODE_LENGTH;
case CMBS_PARAM_ECO_MODE:
return CMBS_PARAM_ECO_MODE_LENGTH;
case CMBS_PARAM_AUTO_REGISTER:
return CMBS_PARAM_AUTO_REGISTER_LENGTH;
case CMBS_PARAM_NTP:
return CMBS_PARAM_NTP_LENGTH;
case CMBS_PARAM_GFSK:
return CMBS_PARAM_GFSK_LENGTH;
case CMBS_PARAM_RESET_ALL:
return CMBS_PARAM_RESET_ALL_LENGTH;
case CMBS_PARAM_SUBS_DATA:
return CMBS_PARAM_SUBS_DATA_LENGTH;
case CMBS_PARAM_AUXBGPROG:
return CMBS_PARAM_AUXBGPROG_LENGTH;
case CMBS_PARAM_AUXBGPROG_DIRECT:
return CMBS_PARAM_AUXBGPROG_DIRECT_LENGTH;
case CMBS_PARAM_ADC_MEASUREMENT:
return CMBS_PARAM_ADC_MEASUREMENT_LENGTH;
case CMBS_PARAM_PMU_MEASUREMENT:
return CMBS_PARAM_PMU_MEASUREMENT_LENGTH;
case CMBS_PARAM_RSSI_VALUE:
return CMBS_PARAM_RSSI_VALUE_LENGTH;
case CMBS_PARAM_DECT_TYPE:
return CMBS_PARAM_DECT_TYPE_LENGTH;
case CMBS_PARAM_MAX_NUM_ACT_CALLS_PT:
return CMBS_PARAM_MAX_NUM_ACT_CALLS_PT_LENGTH;
case CMBS_PARAM_ANT_SWITCH_MASK:
return CMBS_PARAM_ANT_SWITCH_MASK_LENGTH;
case CMBS_PARAM_PORBGCFG:
return CMBS_PARAM_PORBGCFG_LENGTH;
case CMBS_PARAM_BERFER_VALUE:
return CMBS_PARAM_BERFER_VALUE_LENGTH;
case CMBS_PARAM_INBAND_COUNTRY:
return CMBS_PARAM_INBAND_COUNTRY_LENGTH;
case CMBS_PARAM_FP_CUSTOM_FEATURES:
return CMBS_PARAM_FP_CUSTOM_FEATURES_LENGTH;
case CMBS_PARAM_HAN_DECT_SUB_DB_START:
case CMBS_PARAM_HAN_DECT_SUB_DB_END:
case CMBS_PARAM_HAN_ULE_SUB_DB_START:
case CMBS_PARAM_HAN_ULE_SUB_DB_END:
case CMBS_PARAM_HAN_FUN_SUB_DB_START:
case CMBS_PARAM_HAN_FUN_SUB_DB_END:
case CMBS_PARAM_HAN_FUN_GROUP_LIST_START:
case CMBS_PARAM_HAN_FUN_GROUP_LIST_END:
case CMBS_PARAM_HAN_FUN_GROUP_TABLE_START:
case CMBS_PARAM_HAN_FUN_GROUP_TABLE_END:
case CMBS_PARAM_HAN_ULE_BROADCAST_CONVERSION_TABLE_START:
case CMBS_PARAM_HAN_ULE_BROADCAST_CONVERSION_TABLE_END:
return CMBS_PARAM_HAN_DB_ADDR_LENGTH;
case CMBS_PARAM_HAN_ULE_NEXT_TPUI:
return CMBS_PARAM_HAN_ULE_NEXT_TPUI_LENGTH;
case CMBS_PARAM_DHSG_ENABLE:
return CMBS_PARAM_DHSG_ENABLE_LENGTH;
case CMBS_PARAM_PREAM_NORM:
return CMBS_PARAM_PREAM_NORM_LENGTH;
case CMBS_PARAM_RF_FULL_POWER:
return CMBS_PARAM_RF_FULL_POWER_LENGTH;
case CMBS_PARAM_RF_LOW_POWER:
return CMBS_PARAM_RF_LOW_POWER_LENGTH;
case CMBS_PARAM_RF_LOWEST_POWER:
return CMBS_PARAM_RF_LOWEST_POWER_LENGTH;
case CMBS_PARAM_RF19APU_MLSE:
return CMBS_PARAM_RF19APU_MLSE_LENGTH;
case CMBS_PARAM_RF19APU_KCALOVR:
return CMBS_PARAM_RF19APU_KCALOVR_LENGTH;
case CMBS_PARAM_RF19APU_KCALOVR_LINEAR:
return CMBS_PARAM_RF19APU_KCALOVR_LINEAR_LENGTH;
case CMBS_PARAM_RF19APU_SUPPORT_FCC:
return CMBS_PARAM_RF19APU_SUPPORT_FCC_LENGTH;
case CMBS_PARAM_RF19APU_DEVIATION:
return CMBS_PARAM_RF19APU_DEVIATION_LENGTH;
case CMBS_PARAM_RF19APU_PA2_COMP:
return CMBS_PARAM_RF19APU_PA2_COMP_LENGTH;
case CMBS_PARAM_RFIC_SELECTION:
return CMBS_PARAM_RFIC_SELECTION_LENGTH;
case CMBS_PARAM_MAX_USABLE_RSSI:
return CMBS_PARAM_MAX_USABLE_RSSI_LENGTH;
case CMBS_PARAM_LOWER_RSSI_LIMIT:
return CMBS_PARAM_LOWER_RSSI_LIMIT_LENGTH;
case CMBS_PARAM_PHS_SCAN_PARAM:
return CMBS_PARAM_PHS_SCAN_PARAM_LENGTH;
case CMBS_PARAM_JDECT_LEVEL1_M82:
return CMBS_PARAM_JDECT_LEVEL1_M82_LENGTH;
case CMBS_PARAM_JDECT_LEVEL2_M62:
return CMBS_PARAM_JDECT_LEVEL2_M62_LENGTH;
case CMBS_PARAM_AUXBGP_DCIN:
return CMBS_PARAM_AUXBGP_DCIN_LENGTH;
case CMBS_PARAM_AUXBGP_RESISTOR_FACTOR:
return CMBS_PARAM_AUXBGP_RESISTOR_FACTOR_LENGTH;
case CMBS_PARAM_DAC1_VOL:
return CMBS_PARAM_DAC_VOL_LENGTH;
case CMBS_PARAM_DAC2_VOL:
return CMBS_PARAM_DAC_VOL_LENGTH;
case CMBS_PARAM_INL_DEL:
return CMBS_PARAM_INL_DEL_LENGTH;
case CMBS_PARAM_SYPO_GPIO:
return CMBS_PARAM_SYPO_GPIO_LENGTH;
case CMBS_PARAM_SYPO_WAIT_FOR_SYNC:
return CMBS_PARAM_SYPO_WAIT_FOR_SYNC_LENGTH;
case CMBS_PARAM_SYPO_MODE:
return CMBS_PARAM_SYPO_MODE_LENGTH;
case CMBS_PARAM_UART_DELAY_TIMER:
return CMBS_PARAM_UART_DELAY_TIMER_LENGTH;
case CMBS_PARAM_MAX_TRANSFER_SIZE:
return CMBS_PARAM_MAX_TRANSFER_SIZE_LENGTH;
case CMBS_PARAM_IOM_TEST_MODE:
return CMBS_PARAM_IOM_TEST_MODE_LENGTH;
case CMBS_PARAM_RING_ON_OFF:
return CMBS_PARAM_RING_ON_OFF_LENGTH;
case CMBS_PARAM_NEMO_MODE:
return CMBS_PARAM_NEMO_MODE_LENGTH;
case CMBS_PARAM_HS_CW_DISABLED:
return CMBS_PARAM_HS_CW_DISABLED_LENGTH;
case CMBS_PARAM_ENC_DISABLE:
return CMBS_PARAM_ENC_DISABLE_LENGTH;
case CMBS_PARAM_INL_ADD:
return CMBS_PARAM_INL_ADD_LENGTH;
case CMBS_PARAM_BBD_UPDATE:
return CMBS_PARAM_BBD_UPDATE_LENGTH;
case CMBS_PARAM_CLOCK_MASTER_EDIT:
return CMBS_PARAM_CLOCK_MASTER_EDIT_LENGTH;
case CMBS_PARAM_FXS_CALLEE_REGRET_TIME:
case CMBS_PARAM_FXS_FIRST_DIGIT_TIMER:
case CMBS_PARAM_FXS_INTER_DIGIT_TIMER:
case CMBS_PARAM_FXS_STAR_HASH_CON_TIMER:
return CMBS_PARAM_FXS_TIMER_LENGTH;
case CMBS_PARAM_FXS_TONE_CONFIG:
return CMBS_PARAM_FXS_TONE_CONFIG_LENGTH;
case CMBS_PARAM_PREP_QSPI_FOR_HW_RESET:
return CMBS_PARAM_PREP_QSPI_FOR_HW_RESET_LENGTH;
case CMBS_PARAM_INT_START_CALL_TO_HOST:
return CMBS_PARAM_INT_START_CALL_TO_HOST_LENGTH;
case CMBS_PARAM_SUBS_DATA_EX:
return CMBS_PARAM_SUBS_DATA_EX_LENGTH;
case CMBS_PARAM_ULE_MULTICAST_ENC_PARAMS:
return CMBS_PARAM_ULE_MULTICAST_ENC_PARAMS_LENGTH;
case CMBS_PARAM_NEMO_CONTROL:
return CMBS_PARAM_NEMO_CONTROL_LENGTH;
case CMBS_PARAM_REPEATER_TYPE:
return CMBS_PARAM_REPEATER_TYPE_LENGTH;
case CMBS_PARAM_REPEATER_SUBS_START:
return CMBS_PARAM_REPEATER_SUBS_ADDR_LENGTH;
case CMBS_PARAM_REPEATER_SUBS_END:
return CMBS_PARAM_REPEATER_SUBS_ADDR_LENGTH;
case CMBS_PARAM_TEST_FLAGS:
return CMBS_PARAM_TEST_FLAGS_LENGTH;
case CMBS_PARAM_CP_FEATURES:
return CMBS_PARAM_CP_FEATURES_LENGTH;
case CMBS_PARAM_SUBS_DATA_EX_EEP_SIZE:
return CMBS_PARAM_SUBS_DATA_EX_EEP_SIZE_LENGTH;
default:
break;
}
return CMBS_RC_ERROR_PARAMETER;
}
E_CMBS_RC cmbs_util_ParameterValid( E_CMBS_PARAM e_Param, u16 u16_DataLen )
{
// get parameter length
u16 u16_RequiredLength = cmbs_util_GetParameterLength(e_Param);
// Check parameter length
if ( !u16_RequiredLength || u16_DataLen != u16_RequiredLength )
{
if(e_Param != CMBS_PARAM_BBD_UPDATE) // CMBS_PARAM_BBD_UPDATE is a special case that we do not know the size in advance
{
CFR_DBG_ERROR( "Parameter ERROR: Length mismatch. Required:%d <-> Got:%d\n",
u16_RequiredLength, u16_DataLen );
return CMBS_RC_ERROR_PARAMETER;
}
}
return CMBS_RC_OK;
}
bool cmbs_util_RawPayloadEvent( u16 u16_EventID )
{
switch(u16_EventID)
{
case CMBS_EV_DSR_FW_UPD_START:
case CMBS_EV_DSR_FW_UPD_PACKETNEXT:
case CMBS_EV_DSR_FW_UPD_END:
case CMBS_EV_DEM_OPUS_DATA:
return TRUE;
default:
break;
}
return FALSE;
}

View File

@@ -1,28 +0,0 @@
/*!
* \file cmbs_util.h
* \brief This file contains utility functions for CMBS API usage
* \author andriig
*
* @(#) %filespec: cmbs_util.h~DMZD53#2 %
*
*******************************************************************************/
#if !defined( CMBS_UTIL_H )
#define CMBS_UTIL_H
#include "cmbs_api.h" /* CMBS API definition */
#ifdef WIN32
#define SleepMs(x) Sleep(x)
#else
#define SleepMs(x) usleep(1000*x)
#endif
u16 cmbs_util_GetParameterLength( E_CMBS_PARAM e_Param );
E_CMBS_RC cmbs_util_ParameterValid( E_CMBS_PARAM e_Param, u16 u16_DataLen );
bool cmbs_util_RawPayloadEvent( u16 u16_EventID );
#endif

View File

@@ -1,389 +0,0 @@
/*!
* \file cfr_ie.c
* \brief
* \Author kelbch
*
* @(#) %filespec: cfr_ie.c~DMZD53#8 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
*******************************************************************************/
#if defined(__arm)
#include "tclib.h"
#include "embedded.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
#if defined( __linux__ )
#include <pthread.h>
#endif
#include "cmbs_int.h" /* internal API structure and defines */
#if defined( CMBS_API_TARGET )
#include "tapp_log.h"
#endif
#include "cfr_debug.h" /* debug handling */
#if !defined ( CMBS_API_TARGET )
E_CMBS_RC cfr_ie_DeregisterThread(u32 u32_ThreadId)
{
u8 u8_idx;
u8 u8_idx_max = sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers) / sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers[0]);
for (u8_idx = 0; u8_idx < u8_idx_max; ++u8_idx)
{
if ( g_CMBSInstance.st_ApplSlot.u32_ThreadIdArray[u8_idx] == u32_ThreadId )
{
// Current u8_idx represents the index of u8_IEBuffers
g_CMBSInstance.st_ApplSlot.u32_ThreadIdArray[u8_idx] = 0;
return CMBS_RC_OK;
}
}
// not found
return CMBS_RC_ERROR_PARAMETER;
}
u8 cfr_ie_getThreadIdx(void)
{
u32 u32_CurrentThreadId;
u8 u8_idx;
u8 u8_idx_max = sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers) / sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers[0]);
#if defined ( WIN32 )
u32_CurrentThreadId = (u32)GetCurrentThreadId();
#endif // defined ( WIN32 )
#if defined ( __linux__ )
u32_CurrentThreadId = (u32)pthread_self();
#endif // defined ( __linux__ )
for (u8_idx = 0; u8_idx < u8_idx_max; ++u8_idx)
{
if ( g_CMBSInstance.st_ApplSlot.u32_ThreadIdArray[u8_idx] == u32_CurrentThreadId )
{
// Current u8_idx represents the index of u8_IEBuffers
break;
}
}
if ( u8_idx == u8_idx_max )
{
u8_idx = CMBS_UNKNOWN_THREAD;
}
return u8_idx;
}
u8 cfr_ie_AllocThreadIdx(void)
{
u32 u32_CurrentThreadId;
u8 u8_idx;
u8 u8_idx_max = sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers) / sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers[0]);
#if defined ( WIN32 )
u32_CurrentThreadId = (u32)GetCurrentThreadId();
#endif // defined ( WIN32 )
#if defined ( __linux__ )
u32_CurrentThreadId = (u32)pthread_self();
#endif // defined ( __linux__ )
for ( u8_idx = 0; u8_idx < u8_idx_max; ++u8_idx )
{
if ( g_CMBSInstance.st_ApplSlot.u32_ThreadIdArray[u8_idx] == 0 )
{
// We found a free entry
g_CMBSInstance.st_ApplSlot.u32_ThreadIdArray[u8_idx] = u32_CurrentThreadId;
// CFR_DBG_OUT("New entry %d assign to thread id %d\n", u8_idx, u32_CurrentThreadId);
break;
}
}
if ( u8_idx == u8_idx_max )
{
u8_idx = CMBS_UNKNOWN_THREAD;
}
return u8_idx;
}
#endif
void* cfr_ie_ListNew(u8 *pu8_Buffer, u16 u16_Size)
{
PST_CFR_IE_LIST p_List;
u8 u8_idx;
if ( !u16_Size || !pu8_Buffer )
{
#if defined ( CMBS_API_TARGET )
// When target, always use index 0
u8_idx = 0;
p_List = &g_CMBSInstance.st_ApplSlot.st_TransmitterIEList;
memset(p_List, 0, sizeof(ST_CFR_IE_LIST));
#else
// Linux or WIN32 on host
u8_idx = cfr_ie_getThreadIdx();
if ( u8_idx == CMBS_UNKNOWN_THREAD )
{
// Try to allocate new entry for this thread
u8_idx = cfr_ie_AllocThreadIdx();
if ( u8_idx == CMBS_UNKNOWN_THREAD )
{
CFR_DBG_OUT("Not enough entries to store Thread Id !!!\n");
return NULL;
}
}
p_List = &g_CMBSInstance.st_ApplSlot.st_TransmitterIEList[u8_idx];
memset(p_List, 0, sizeof(ST_CFR_IE_LIST));
#endif // defined ( CMBS_API_TARGET )
p_List->pu8_Buffer = g_CMBSInstance.st_ApplSlot.u8_IEBuffers[u8_idx];
p_List->u16_MaxSize = sizeof(g_CMBSInstance.st_ApplSlot.u8_IEBuffers[u8_idx]);
return p_List;
}
else
{
CFR_DBG_OUT("cfr_ie_ListNew: Dynamic is not implemented, yet\n");
}
return NULL;
}
int cfr_ie_ItemAdd(PST_CFR_IE_LIST p_List, u8 *pu8_Buffer, u16 u16_Size)
{
if ( p_List->u16_MaxSize > (u16_Size + p_List->u16_CurSize) )
{
memcpy(p_List->pu8_Buffer + p_List->u16_CurSize, pu8_Buffer, u16_Size);
p_List->u16_CurSize += u16_Size;
return 0;
}
CFR_DBG_ERROR("[ERROR] cfr_ie_ItemAdd MaxSize=%d u16_Size=%d u16_CurSize=%d", p_List->u16_MaxSize, u16_Size, p_List->u16_CurSize);
return -1;
}
u8* cfr_ie_ItemGet(PST_CFR_IE_LIST p_List)
{
// check if IE length is correct
if ( p_List->u16_CurSize - p_List->u16_CurIE < CFR_IE_HEADER_SIZE )
return NULL;
// return pointer to IE
return p_List->pu8_Buffer + p_List->u16_CurIE;
}
u8* cfr_ie_ItemFirstGet(PST_CFR_IE_LIST p_List)
{
// set current IE to first one
p_List->u16_CurIE = 0;
// return IE item
return cfr_ie_ItemGet(p_List);
}
u8* cfr_ie_ItemNextGet(PST_CFR_IE_LIST p_List)
{
u16 u16_NextIE = 0, u16_IESize = 0;
// 16 bit size
cfr_ie_dser_u16(p_List->pu8_Buffer + p_List->u16_CurIE + CFR_IE_SIZE_POS, &u16_IESize);
u16_NextIE = p_List->u16_CurIE + // start of current IE
CFR_IE_HEADER_SIZE + // IE type 16 bit + IE length 16 bit
u16_IESize; // size of current IE
if ( p_List->u16_CurSize > u16_NextIE )
{
p_List->u16_CurIE = u16_NextIE;
return cfr_ie_ItemGet(p_List);
}
return NULL;
}
u16 cfr_ie_ser_u8(u8 *pu8_Buffer, u8 u8_Value)
{
if ( !pu8_Buffer )
return 0;
pu8_Buffer[0] = u8_Value;
return sizeof(u8);
}
u16 cfr_ie_ser_u16(u8 *pu8_Buffer, u16 u16_Value)
{
u8 *pu8_16 = (u8 *)&u16_Value;
if ( !pu8_Buffer )
return 0;
#if defined( CMBS_API_TARGET )
memcpy(pu8_Buffer, pu8_16, sizeof(u16_Value));
#else // Host
if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_LITTLE )
{
memcpy(pu8_Buffer, &u16_Value, sizeof(u16_Value));
}
else
{
pu8_Buffer[0] = pu8_16[1];
pu8_Buffer[1] = pu8_16[0];
}
#endif
return sizeof(u16_Value);
}
u16 cfr_ie_ser_u32(u8 *pu8_Buffer, u32 u32_Value)
{
u8 *pu8_32 = (u8 *)&u32_Value;
if ( !pu8_Buffer )
return 0;
#if defined( CMBS_API_TARGET )
memcpy(pu8_Buffer, pu8_32, sizeof(u32));
#else // Host
if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_LITTLE )
{
memcpy(pu8_Buffer, &u32_Value, sizeof(u32));
}
else if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_BIG )
{
pu8_Buffer[0] = pu8_32[3];
pu8_Buffer[1] = pu8_32[2];
pu8_Buffer[2] = pu8_32[1];
pu8_Buffer[3] = pu8_32[0];
}
else if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_MIXED )
{
pu8_Buffer[0] = pu8_32[1];
pu8_Buffer[1] = pu8_32[0];
pu8_Buffer[2] = pu8_32[3];
pu8_Buffer[3] = pu8_32[2];
}
else
{
return 0;
}
#endif
return sizeof(u32);
}
u16 cfr_ie_ser_pu8(u8 *pu8_Buffer, u8 *pu8_Data, u16 u16_DataSize)
{
if ( !pu8_Data )
return 0;
memcpy(pu8_Buffer, pu8_Data, u16_DataSize);
return u16_DataSize;
}
u16 cfr_ie_dser_u8(u8 *pu8_Buffer, u8 *pu8_Value)
{
if ( !pu8_Buffer || !pu8_Value )
return 0;
*pu8_Value = pu8_Buffer[0];
return sizeof(u8);
}
u16 cfr_ie_dser_u16(u8 *pu8_Buffer, u16 *pu16_Value)
{
u8 *pu8_16 = (u8 *)pu16_Value;
if ( !pu8_Buffer || !pu16_Value )
return 0;
#if defined( CMBS_API_TARGET )
pu8_16[1] = pu8_Buffer[1];
pu8_16[0] = pu8_Buffer[0];
#else // Host
if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_LITTLE )
{
memcpy(pu8_16, pu8_Buffer, sizeof(u16));
}
else
{
pu8_16[1] = pu8_Buffer[0];
pu8_16[0] = pu8_Buffer[1];
}
#endif
return sizeof(u16);
}
u16 cfr_ie_dser_s32(u8 *pu8_Buffer, s32 *ps32_Value)
{
return cfr_ie_dser_u32(pu8_Buffer, (u32 *)ps32_Value);
}
u16 cfr_ie_dser_u32(u8 *pu8_Buffer, u32 *pu32_Value)
{
u8 *pu8_32 = (u8 *)pu32_Value;
if ( !pu8_Buffer || !pu32_Value )
return 0;
#if defined( CMBS_API_TARGET )
memcpy(pu8_32, pu8_Buffer, sizeof(u32));
#else // Host
if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_LITTLE )
{
memcpy(pu8_32, pu8_Buffer, sizeof(u32));
}
else if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_BIG )
{
pu8_32[3] = pu8_Buffer[0];
pu8_32[2] = pu8_Buffer[1];
pu8_32[1] = pu8_Buffer[2];
pu8_32[0] = pu8_Buffer[3];
}
else if ( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_MIXED )
{
pu8_32[1] = pu8_Buffer[0];
pu8_32[0] = pu8_Buffer[1];
pu8_32[3] = pu8_Buffer[2];
pu8_32[2] = pu8_Buffer[3];
}
else
{
*pu32_Value = 0;
return 0;
}
#endif
return sizeof(u32);
}
u16 cfr_ie_dser_pu8(u8 *pu8_Buffer, u8 *pu8_Data, u16 u16_DataSize)
{
if ( !pu8_Buffer || !pu8_Data )
return 0;
memcpy(pu8_Data, pu8_Buffer, u16_DataSize);
return u16_DataSize;
}
//*/

View File

@@ -1,168 +0,0 @@
/*!
* \file cfr_ie.h
* \brief
* \Author kelbch
*
* @(#) %filespec: cfr_ie.h~DMZD53#6 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
* 27-05-14 ronenw GIT Added common ie for cmbs and han
*
*******************************************************************************/
#if !defined( CFR_IE_H )
#define CFR_IE_H
#include "cmbs_ie.h"
#include "cmbs_han.h"
#define CFR_IE_TYPE_POS 0
#define CFR_IE_SIZE_POS 2
#define CFR_IE_HEADER_SIZE 4
typedef struct
{
u16 u16_MaxSize;
u16 u16_CurSize;
u16 u16_CurIE;
u8 * pu8_Buffer;
} ST_CFR_IE_LIST, * PST_CFR_IE_LIST;
#define TEMP_SIZE (CMBS_PARAM_MAX_LENGTH+100)
typedef union
{
u8 u8_BufferByteValueAdd[CFR_IE_HEADER_SIZE + sizeof(u8)];
u8 u8_BufferShortValueAdd[CFR_IE_HEADER_SIZE + sizeof(u16)];
u8 u8_BufferByteU32ValueAdd[CFR_IE_HEADER_SIZE + sizeof(u32)];
u8 u8_BufferReqAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALLTRANSFERREQ)];
u8 u8_BufferInternalReqAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_INTERNAL_TRANSFER)];
u8 u8_BufferCallerPartyAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALLERPARTY)+ CMBS_CALLER_NUM_MAX_LEN];
u8 u8_BufferCalledPartyAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALLEDPARTY)+ CMBS_CALLER_NUM_MAX_LEN];
u8 u8_BufferCallerNameAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALLINFO)+ TEMP_SIZE];
u8 u8_BufferCallInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALLINFO)+ TEMP_SIZE];
u8 u8_BufferDisplayStringAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DISPLAY_STRING)+ CMBS_DISPLAY_STRING_LENGTH];
u8 u8_BufferReleaseReasonAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_RELEASE_REASON)];
u8 u8_BufferCallStateAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALL_STATE)];
u8 u8_BufferChannelAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_MEDIA_CHANNEL)];
u8 u8_BufferAudioShmemAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_IE_AUDIO_SHMEM)];
u8 u8_BufferICAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_MEDIA_INTERNAL_CONNECT)];
u8 u8_BufferDescAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_MEDIA_DESCRIPTOR)];
u8 u8_BufferInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_HANDSETINFO)];
u8 u8_BufferParameterAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_PARAMETER)+ TEMP_SIZE];
u8 u8_BufferHsListAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SUBSCRIBED_HS_LIST)+ TEMP_SIZE];
u8 u8_BufferSettingsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_LINE_SETTINGS_LIST)];
u8 u8_BufferVersionAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_FW_VERSION)];
u8 u8_BufferLogAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SYS_LOG)];
u8 u8_BufferAreaAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_PARAMETER_AREA)+ TEMP_SIZE];
u8 u8_BufferGenEventAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_GEN_EVENT)];
u8 u8_BufferPropEventAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_PARAMETER_AREA)+ TEMP_SIZE];
u8 u8_BufferDateAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DATETIME)];
u8 u8_BufferSessionTypeAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DATA_SESSION_TYPE)];
u8 u8_BufferDataAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DATA)+ TEMP_SIZE];
u8 u8_BufferFieldsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_LA_FIELDS)];
u8 u8_BufferCriteriaAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_LA_SEARCH_CRITERIA)];
u8 u8_BufferATESettingsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_ATE_SETTINGS)];
u8 u8_BufferVersionAvailAdd[CFR_IE_HEADER_SIZE + sizeof(ST_SUOTA_UPGRADE_DETAILS)+ 1];// because of bit fields
u8 u8_BufferVersionBufAdd[CFR_IE_HEADER_SIZE + sizeof(ST_VERSION_BUFFER)];
u8 u8_BufferVersionIndAdd[CFR_IE_HEADER_SIZE + sizeof(ST_SUOTA_HS_VERSION_IND)];
u8 u8_BufferURLAdd[CFR_IE_HEADER_SIZE + sizeof(ST_URL_BUFFER)];
u8 u8_BufferChangeNotifAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_TARGET_LIST_CHANGE_NOTIF)];
u8 u8_BufferHwVersionAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_HW_VERSION)];
u8 u8_BufferDectSettingsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DECT_SETTINGS_LIST)];
u8 u8_BufferPropSettingsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_PROP_FIELDS_LIST)];
u8 u8_BufferSessionInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_RTP_SESSION_INFORMATION)];
u8 u8_BufferDTMFEventAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_RTP_DTMF_EVENT)];
u8 u8_BufferDTMFEventInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_RTP_DTMF_EVENT_INFO)];
u8 u8_BufferPropCmdAdd[CFR_IE_HEADER_SIZE + sizeof(ST_LA_PROP_CMD)];
u8 u8_BufferBaseNameAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_BASE_NAME)];
u8 u8_BufferHsPropEventAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_HS_PROP_EVENT)+ TEMP_SIZE];
u8 u8_BufferSYPOSpecificationAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SYPO_SPECIFICATION)];
u8 u8_BufferAFEEndpointConnectionAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_ENDPOINTS_CONNECT)];
u8 u8_BufferAFEEndpointAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_ENDPOINT)];
u8 u8_BufferAFEEndpointGainAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_ENDPOINT_GAIN)];
u8 u8_BufferAFEEndpointGainDBAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_ENDPOINT_GAIN)];
u8 u8_BufferAFEAUXMeasureSettingsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_AUX_MEASUREMENT_SETTINGS)];
u8 u8_BufferAFEAUXMeasureResultAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_AFE_AUX_MEASUREMENT_RESULT)];
u8 u8_BufferGPIOIDAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_GPIO_ID)];
u8 u8_BufferPWMIDAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_PWM_ID)];
u8 u8_BufferExtINTConfigAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_INT_CONFIGURATION)];
u8 u8_BufferTerminalCapabilitiesAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_TERMINAL_CAPABILITIES)];
u8 u8_BufferChecksumErrorAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CHECKSUM_ERROR)];
u8 u8_BuffeCallHoldReasonAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALL_HOLD_REASON)];
u8 u8_BufferCalledNameAdd[CFR_IE_HEADER_SIZE + 3 * sizeof(u8) + 2 * CMBS_CALLED_NAME_MAX_LEN];
u8 u8_BufferSuotaFileInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SUOTA_FILE_INFO)];
u8 u8_DTAMStartSessionCfmAdd[CFR_IE_HEADER_SIZE + sizeof(ST_CMBS_DTAM_START_SESSION_CFM)];
u8 u8_DTAMCommandNackAdd[CFR_IE_HEADER_SIZE + sizeof(ST_CMBS_DTAM_NACK)];
u8 u8_DTAMStatusAdd[CFR_IE_HEADER_SIZE + sizeof(ST_CMBS_DTAM_STATUS)];
u8 u8_BufferLineTestResultsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SLIC_LINE_TEST_RES)];
u8 u8_BufferNltCapTestResultsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_SLIC_NLT_CAP_TEST_RES)];
u8 u8_BufferJEDECIdAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CMBS_JEDEC_ID)];
u8 u8_BufferUpdatedDeviceStateAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_UPDATED_DEVICE_STATE)];
u8 u8_BufferCallListAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_CALL_LIST)+ TEMP_SIZE];
u8 HanTableAdd[ CFR_IE_HEADER_SIZE + CMBS_HAN_IE_TABLE_SIZE]; // HAN part
u8 FunDeviceInfo[ CFR_IE_HEADER_SIZE + CMBS_HAN_IE_FUN_DEVICE_INFO_SIZE];
u8 BindRecordAdd[ CFR_IE_HEADER_SIZE + CMBS_HAN_IE_BIND_ENTRY_SIZE];
u8 GroupTableRecordAdd[ CFR_IE_HEADER_SIZE + CMBS_HAN_IE_GROUP_TABLE_ENTRY_SIZE];
u8 GroupListRecordAdd[ CFR_IE_HEADER_SIZE + CMBS_HAN_IE_GROUP_LIST_ENTRY_SIZE];
u8 RegInfoAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_HAN_MSG_REG_INFO)];
u8 HanMsgAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_IE_HAN_MSG) + CMBS_HAN_MAX_MSG_LEN];
u8 UpdateInfoAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_IE_HAN_TABLE_UPDATE_INFO)];
u8 Stage1ParamsAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_HAN_REG_STAGE_1_STATUS)];
u8 Stage2ParamsAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_HAN_REG_STAGE_2_STATUS)];
u8 HanBaseInfoAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_HAN_BASE_INFO)];
u8 UnknownDeviceParamsAdd[ CFR_IE_HEADER_SIZE + sizeof(ST_HAN_UNKNOWN_DEVICE_CONTACT_PARAMS)];
u8 HanFullRegistrationInfo[ CFR_IE_HEADER_SIZE + sizeof(ST_HAN_FULL_DEVICE_REGISTRATION_INFO)];
u8 HanULEDeviceIPUI[ CFR_IE_HEADER_SIZE + sizeof(ST_IE_HAN_ULE_DEVICE_IPUI)];
u8 HanULETBR6Statistics[ CFR_IE_HEADER_SIZE + sizeof(ST_IE_HAN_ULE_TBR6_STATISTICS)];
u8 u8_BufferDeviceListAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_DEVICE_LIST_STATUS)];
u8 BufferHSRelReasonAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_HS_RELEASE_REASON)];
u8 u8_BufferEntryRageAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_LA_ENTRY_RANGE)];
u8 u8_BufferEntryIdsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_LA_ENTRY_IDS)];
u8 u8_BufferGenEventDetailsAdd[CFR_IE_HEADER_SIZE + sizeof(ST_IE_GEN_EVENT_DETAILS)];
}
U_Buffer;
#if defined( __cplusplus )
extern "C"
{
#endif
void * cfr_ie_ListNew( u8* pu8_Buffer, u16 u16_Size );
int cfr_ie_ItemAdd( PST_CFR_IE_LIST p_List, u8 * pu8_Buffer, u16 u16_Size );
u8* cfr_ie_ItemGet( PST_CFR_IE_LIST p_List );
u8* cfr_ie_ItemNextGet( PST_CFR_IE_LIST p_List );
u8* cfr_ie_ItemFirstGet ( PST_CFR_IE_LIST p_List );
void cfr_ie_Serialize( PST_CFR_IE_LIST p_List, E_CMBS_IE_TYPE e_IE, void * pv_Data );
u16 cfr_ie_ser_pu8 ( u8 * pu8_buffer, u8 * pu8_Data, u16 u16_DataSize );
u16 cfr_ie_ser_u8 ( u8 * pu8_Buffer, u8 u8_Value );
u16 cfr_ie_ser_u16 ( u8 * pu8_buffer, u16 u16_Value );
u16 cfr_ie_ser_u32 ( u8 * pu8_buffer, u32 u32_Value );
u16 cfr_ie_dser_pu8 ( u8 * pu8_Buffer, u8 * pu8_Data, u16 u16_DataSize );
u16 cfr_ie_dser_u8 ( u8 * pu8_Buffer, u8 * pu8_Value );
u16 cfr_ie_dser_u16 ( u8 * pu8_Buffer, u16 * pu16_Value );
u16 cfr_ie_dser_u32 ( u8 * pu8_Buffer, u32 * pu32_Value );
u16 cfr_ie_dser_s32(u8 *pu8_Buffer, s32 *ps32_Value);
E_CMBS_RC cfr_ie_DeregisterThread (u32 u32_ThreadId);
#if !defined ( CMBS_API_TARGET )
u8 cfr_ie_getThreadIdx(void);
u8 cfr_ie_AllocThreadIdx(void);
#endif
#if defined( __cplusplus )
}
#endif
#endif // CFR_IE_H
//*/

View File

@@ -1,470 +0,0 @@
/*!
* \file cfr_cmbs.c
* \brief Target side
* \author stein
*
* @(#) %filespec: cfr_cmbs.c~10 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================ \n
* date name version action \n
* --------------------------------------------------------------------------- \n
* 14-feb-09 R.Stein 1 Initialize \n
* 14-feb-09 D.Kelbch 2 Project integration - VONE \n
* 09-Apr-09 Kelbch 161 Update of Media Configuration during start-up\n
*******************************************************************************/
#include <syslog.h>
#include "cmbs_platf.h"
#include "cmbs_int.h" /* internal API structure and defines */
#include "cfr_uart.h" /* packet handler */
#ifdef CMBS_COMA
#include "cfr_coma.h" /* packet handler */
#endif
#include "cfr_debug.h" /* debug handling */
void * _cmbs_int_CbThread( void * pVoid );
void cmbs_exit_callbThread(void);
static int G_MsgQueue;
volatile int g_WaitForResponseFlag = 0;
/* GLOBALS */
ST_CMBS_API_INST g_CMBSInstance; // global CMBS instance object
// ========== _cmbs_int_StartupBlockSignal ===========
/*!
\brief signal to block statement that CMBS is available
\param[in] pst_CMBSInst pointer to CMBS instance object
\return <none>
*/
void _cmbs_int_StartupBlockSignal( PST_CMBS_API_INST pst_CMBSInst )
{
// Update flag to CMBS host API, target available
g_WaitForResponseFlag = 1;
}
// ========== _cmbs_int_MsgQCreate ===========
/*!
\brief Create a message queue
\param[in,out] < none >
\return < int > return identifier of queue. If there was an error, a value of -1 is returned.
*/
int _cmbs_int_MsgQCreate( void )
{
int id = -1;
id = msgget( IPC_PRIVATE, IPC_CREAT | IPC_EXCL | 0666 );
if( id == -1 )
{
switch( errno )
{
case EEXIST:
CFR_DBG_ERROR( "[ERROR]msgget, message queue exists (EEXIST)\n" );
break;
case ENOMEM:
CFR_DBG_ERROR( "[ERROR]msgget, not enough memory (ENOMEM)\n" );
break;
case ENOSPC:
CFR_DBG_ERROR( "[ERROR]msgget, max. number of queues (MSGMNI) exceeded\n" );
break;
default:
perror( "[ERROR]msgget" );
}
}
return id;
}
// ========== _cmbs_int_MsgQDestroy ===========
/*!
\brief Destroy message queue
\param[in] nMsgQId message queue identifier
\return < none >
*/
void _cmbs_int_MsgQDestroy( int nMsgQId )
{
if( msgctl(nMsgQId, IPC_RMID, 0) == -1 )
{
perror( "[ERROR]msgctl" );
}
}
// ========== cmbs_int_EnvCreate ===========
/*!
\brief build up the environment of CMBS-API. Open the relevant devices and starts the pumps.
\param[in,out] e_Mode to be used CMBS mode, currently only CMBS Multiline is supported
\param[in,out] pst_DevCtl pointer to device call control properties
\param[in,out] pst_DevMedia pointer to device media control properties
\return < E_CMBS_RC >
*/
E_CMBS_RC cmbs_int_EnvCreate( E_CMBS_API_MODE e_Mode, ST_CMBS_DEV * pst_DevCtl, ST_CMBS_DEV * pst_DevMedia )
{
int rc;
UNUSED_PARAMETER(pst_DevMedia);
openlog("cmbs_api.c", LOG_CONS | LOG_PID, LOG_NEWS);
memset( &g_CMBSInstance, 0, sizeof(g_CMBSInstance) );
// initialize the device control
if( !pst_DevCtl )
{
CFR_DBG_ERROR( "[ERROR] cmbs_int_EnvCreate: Device type is not specified\n");
return CMBS_RC_ERROR_PARAMETER;
}
pthread_cond_init( &g_CMBSInstance.cond_UnLock, NULL );
pthread_mutex_init( &g_CMBSInstance.cond_Mutex, NULL );
CFR_CMBS_INIT_CRITICALSECTION ( g_CMBSInstance.h_CriticalSectionTransmission );
CFR_CMBS_INIT_CRITICALSECTION ( g_CMBSInstance.h_TxThreadCriticalSection);
g_CMBSInstance.u32_CallInstanceCount = 0x80000000;
g_CMBSInstance.e_Mode = e_Mode; // useful later, if the API is connected to target side.
g_CMBSInstance.e_Endian = cmbs_int_EndiannessGet();
g_CMBSInstance.eDevCtlType = pst_DevCtl->e_DevType;
g_CMBSInstance.eDevMediaType= pst_DevMedia->e_DevType;
do
{
// create message queue
if( (g_CMBSInstance.msgQId = _cmbs_int_MsgQCreate() ) == -1 )
{
CFR_DBG_ERROR( "cmbs_int_EnvCreate: ERROR creating message queue\n" );
break;
}
// initialize device configuration
if(pst_DevCtl->e_DevType == CMBS_DEVTYPE_UART)
{
g_CMBSInstance.fdDevCtl = cfr_uartInitialize( pst_DevCtl->u_Config.pUartCfg);
}
else if(pst_DevCtl->e_DevType == CMBS_DEVTYPE_USB)
{
g_CMBSInstance.fdDevCtl = cfr_usbInitialize( pst_DevCtl->u_Config.pUartCfg);
}
#ifdef CMBS_COMA
else if(pst_DevCtl->e_DevType == CMBS_DEVTYPE_COMA)
{
g_CMBSInstance.fdDevCtl = cfr_comaInitialize( pst_DevCtl->u_Config.pUartCfg);
}
#endif
else
{
CFR_DBG_ERROR( "[ERROR] cmbs_int_EnvCreate: Specified device type is not supported now\n");
break;
}
if( g_CMBSInstance.fdDevCtl == -1 )
{
CFR_DBG_ERROR( "[ERROR] cmbs_int_EnvCreate: Couldn't open Serial device\n" );
break;
}
#ifdef CMBS_COMA
rc = pthread_create( &g_CMBSInstance.serialThreadId, NULL, & cfr_comaThread, &g_CMBSInstance );
#else
rc = pthread_create( &g_CMBSInstance.serialThreadId, NULL, & cfr_uartThread, &g_CMBSInstance );
#endif
if( rc != 0 )
{
CFR_DBG_ERROR( "[ERROR] cmbs_int_EnvCreate: Couldn't create Serial Thread. ErrorCode: %d\n", rc );
break;
}
// control device pipe is established, start control thread
rc = pthread_create( &g_CMBSInstance.callbThreadId, NULL, &_cmbs_int_CbThread, &g_CMBSInstance );
if( rc != 0 )
{
CFR_DBG_ERROR( "[ERROR] cmbs_int_EnvCreate: Couldn't create CB Thread. ErrorCode: %d\n", rc );
break;
}
return CMBS_RC_OK;
}while(FALSE);
CFR_CMBS_DELETE_CRITICALSECTION ( g_CMBSInstance.h_CriticalSectionTransmission );
CFR_CMBS_DELETE_CRITICALSECTION ( g_CMBSInstance.h_TxThreadCriticalSection );
return CMBS_RC_ERROR_GENERAL;
}
// ========== cmbs_int_WaitForResponse ===========
/*!
\brief Waits for target response using timeout in ms
\param[in,out] u32_TimeoutMs waiting timeout in ms
\return < E_CMBS_RC >
*/
E_CMBS_RC cmbs_int_WaitForResponse(u32 u32_TimeoutMs)
{
u32 u32_TimeoutSec = u32_TimeoutMs/1000;
u32 u32_numOfSec = 0;
while(u32_numOfSec < u32_TimeoutSec)
{
if(g_WaitForResponseFlag== 1)
{
g_WaitForResponseFlag = 0;
return CMBS_RC_OK;
}
u32_numOfSec++;
sleep(1);
}
CFR_DBG_ERROR( "[ERROR] cmbs_int_WaitForResponse: pthread_cond_timedwait returned error\n");
return CMBS_RC_ERROR_OPERATION_TIMEOUT;
}
// ========== cmbs_int_EnvDestroy ===========
/*!
\brief clean up the CMBS environment
\param[in,out] < none >
\return < E_CMBS_RC >
*/
E_CMBS_RC cmbs_int_EnvDestroy( void )
{
// maybe we need to de-register on module side
if( g_CMBSInstance.serialThreadId )
{
pthread_cancel( g_CMBSInstance.serialThreadId );
pthread_join(g_CMBSInstance.serialThreadId, NULL);
}
if( g_CMBSInstance.callbThreadId )
{
cmbs_exit_callbThread();
pthread_join(g_CMBSInstance.callbThreadId, NULL);
}
pthread_cond_destroy( &g_CMBSInstance.cond_UnLock );
pthread_mutex_destroy( &g_CMBSInstance.cond_Mutex );
CFR_CMBS_DELETE_CRITICALSECTION ( g_CMBSInstance.h_CriticalSectionTransmission );
CFR_CMBS_DELETE_CRITICALSECTION ( g_CMBSInstance.h_TxThreadCriticalSection );
if( g_CMBSInstance.msgQId != -1 )
_cmbs_int_MsgQDestroy( g_CMBSInstance.msgQId );
close( g_CMBSInstance.fdDevCtl );
closelog();
return CMBS_RC_OK;
}
void cmbs_exit_callbThread(void)
{
ST_CMBS_LIN_MSG LinMsg;
LinMsg.msgType = 2;
LinMsg.msgData.nLength = 4;
LinMsg.msgData.u8_Data[0] = 'E';
LinMsg.msgData.u8_Data[1] = 'X';
LinMsg.msgData.u8_Data[2] = 'I';
LinMsg.msgData.u8_Data[3] = 'T';
if( msgsnd( G_MsgQueue, &LinMsg, (LinMsg.msgData.nLength + sizeof(LinMsg.msgData.nLength)), 0 ) < 0 )
{
CFR_DBG_ERROR( "UartThread: msgsnd ERROR:%d\n", errno );
}
}
// ========== _cmbs_int_CbThread ===========
/*!
\brief callback pump to receive and call application call-back
\param[in,out] pVoid pointer to CMBS instance object
\return < void * > always NULL
*/
void * _cmbs_int_CbThread( void * pVoid )
{
PST_CMBS_API_INST
pInstance = (PST_CMBS_API_INST)pVoid;
int msgQId = pInstance->msgQId;
int nRetVal;
size_t nMsgSize;
ST_CMBS_LIN_MSG
LinMsg;
U_CMBS_SER_DATA
CmbsMsg;
u32 u32_Sync = CMBS_SYNC;
static u32 nDataIndex = 0;
static bool bNewMessage = TRUE;
G_MsgQueue = msgQId;
nMsgSize = sizeof( LinMsg.msgData );
// never ending loop
// thread will be exited automatically when parent thread finishes
while( 1 )
{
/*
msgrcv() returns -1 if error.
A signal can arrive and be handled while an I/O primitive such as msgrcv(), open() or read() is waiting for an I/O device.
When msgrcv() returned error of EINTR, it is means that this call did not succeed because it was interrupted.
However, if you try again, it will probably work.
In other words, EINTR is not a fatal error - it just means you should retry msgrcv().
*/
nRetVal = msgrcv( msgQId, &LinMsg, nMsgSize, 0, 0);
if( nRetVal == -1 )
{
if (EINTR == errno)
{
return NULL;
}
CFR_DBG_ERROR( "[ERROR]CB Thread: !!!! msgrcv ERROR:%d\n", errno );
}
else
{
u32 i;
u32 LinMsgIndex = 0;
/*
CFR_DBG_OUT( "Received raw data %2d bytes:", LinMsg.msgData.nLength );
for( i = 0; i < (u32)LinMsg.msgData.nLength; i++ )
{
CFR_DBG_OUT( " %02X", LinMsg.msgData.u8_Data[i] );
}
CFR_DBG_OUT( "\n" );
*/
if (bNewMessage)
{
if( ( LinMsg.msgType == 2) &&
( LinMsg.msgData.nLength == 4 ) &&
( LinMsg.msgData.u8_Data[0] == 'E' ) &&
( LinMsg.msgData.u8_Data[1] == 'X' ) &&
( LinMsg.msgData.u8_Data[2] == 'I' ) &&
( LinMsg.msgData.u8_Data[3] == 'T' ))
{
CFR_DBG_OUT("--> EXIT message arrived to CbThread \n" );
return NULL;
}
else
// If waiting for a new message, eliminate any non DA preceeding
for (i=0; i<(u32)LinMsg.msgData.nLength; i++)
{
if (LinMsg.msgData.u8_Data[i] != 0xDA)
{
LinMsgIndex++;
}
else
{
break;
}
}
if (LinMsgIndex >0)
{
//shift arriving bytes to beginning of buffer (to start with DA)
for (i=0; i<(u32)LinMsg.msgData.nLength - LinMsgIndex ; i++)
{
LinMsg.msgData.u8_Data[i] = LinMsg.msgData.u8_Data[LinMsgIndex + i];
}
CFR_DBG_OUT("LinMsgIndex = %d \n",LinMsgIndex);
LinMsg.msgData.nLength -= LinMsgIndex;
}
}
if (LinMsg.msgData.nLength > 0)
{
// parse received message
for( i = 0; i < (u32)LinMsg.msgData.nLength; i++ )
{
if( nDataIndex == 0 )
{
memset( &CmbsMsg, 0, sizeof(CmbsMsg) );
}
// save message data
if( i < sizeof(CmbsMsg.serialBuf) )
{
CmbsMsg.serialBuf[nDataIndex] = LinMsg.msgData.u8_Data[i];
nDataIndex++;
}
else
{
CFR_DBG_ERROR( "[ERROR]CB Thread: !!!! msgrcv ERROR: buffer overflow\n" );
nDataIndex = 0;
break;
}
// validate syc dword
if((bNewMessage) && nDataIndex == sizeof(u32) )
{
if( memcmp( CmbsMsg.serialBuf, &u32_Sync, sizeof(u32)) == 0 )
{
// synch dword detected
bNewMessage = FALSE;
}
else
{
CFR_DBG_ERROR("CmbsMsg.serialBuf = %x %x %x %x \n",CmbsMsg.serialBuf[0],CmbsMsg.serialBuf[1],CmbsMsg.serialBuf[2],CmbsMsg.serialBuf[3]);
CFR_DBG_ERROR( "[ERROR]CB Thread: !!!! msgrcv ERROR: NO sync word detected\n" );
nDataIndex = 0;
break;
}
}
// check cmbs message length
if( nDataIndex >= sizeof(u32) + sizeof(u16) ) // sizeof(u32_Sync) + sizeof(u16_TotalLength)
{
u16 u16_Total ;
if( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_BIG )
{
u16_Total = cmbs_int_EndianCvt16(CmbsMsg.st_Data.st_Msg.st_MsgHdr.u16_TotalLength);
}
else
{
u16_Total = CmbsMsg.st_Data.st_Msg.st_MsgHdr.u16_TotalLength;
}
if( nDataIndex == sizeof(CmbsMsg.st_Data.u32_Sync) + u16_Total )
{
// we assume that cmbs message is complete
if( g_CMBSInstance.e_Endian == E_CMBS_ENDIAN_BIG )
{
cmbs_int_HdrEndianCvt( &CmbsMsg.st_Data.st_Msg.st_MsgHdr );
}
if( g_CMBSInstance.st_ApplSlot.pFnCbLogBuffer.pfn_cmbs_api_log_incoming_packet_write_finish_cb != NULL )
{
g_CMBSInstance.st_ApplSlot.pFnCbLogBuffer.pfn_cmbs_api_log_incoming_packet_write_finish_cb((u8 *)&CmbsMsg.st_Data.st_Msg, CmbsMsg.st_Data.st_Msg.st_MsgHdr.u16_TotalLength);
}
cmbs_int_EventReceive( (u8 *)&CmbsMsg.st_Data.st_Msg, CmbsMsg.st_Data.st_Msg.st_MsgHdr.u16_TotalLength );
// reset; we might have received more than one cmbs message
nDataIndex = 0;
bNewMessage = TRUE;
}
}
}
}
}
}
return NULL;
}
//*/

View File

@@ -1,36 +0,0 @@
/*!
* \file cfr_coma.h
* \brief
* \author
*******************************************************************************/
#if !defined( CFR_COMA_H )
#define CFR_COMA_H
#include "cmbs_int.h"
/*! current packet transmission size */
#define CFR_BUFFER_WINDOW_SIZE 3
/*! identifier for receive path */
#define CFR_BUFFER_COMA_REC 0
/*! identifier for transmit path */
#define CFR_BUFFER_COMA_TRANS 1
#if defined( __cplusplus )
extern "C"
{
#endif
void * cfr_comaThread( void * pVoid );
int cfr_comaInitialize( void *p );
int cfr_comaPacketPartWrite( u8* pu8_Buffer, u16 u16_Size );
void cfr_comaPacketWriteFinish( u8 u8_BufferIDX );
CFR_E_RETVAL cfr_comaPacketPrepare ( u16 u16_size );
void cfr_comaDataTransmitKick ( void );
void cfr_comaStop(void);
#if defined( __cplusplus )
}
#endif
#endif // CFR_COMA_H
//*/

View File

@@ -1,482 +0,0 @@
/*!
* \file cfr_uart.c
* \brief UART implementation of linux host side
* \author stein
*
* @(#) %filespec: cfr_uart.c~DMZD53#4.1.2 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
* 14-feb-09 R.Stein 1 Initialize \n
*******************************************************************************/
#include <stdlib.h>
#include <stddef.h> // for offsetof
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <termios.h>
#include <string.h>
#include <sys/time.h> // we need <sys/select.h>; should be included in <sys/types.h> ???
#include <pthread.h>
#include <sys/ipc.h>
#include <sys/msg.h>
#include <errno.h>
#include "cmbs_int.h" /* internal API structure and defines */
#include "cfr_uart.h" /* packet handler */
#include "cfr_debug.h" /* debug handling */
// ========== cfr_uartThread ===========
/*!
\brief UART data receive pump. if data is available a message is send
to cfr_cmbs task.
\param[in] pVoid pointer to CMBS instance object
\return <void *> return always NULL
*/
void * cfr_uartThread( void * pVoid )
{
PST_CMBS_API_INST
pInstance = (PST_CMBS_API_INST)pVoid;
int fdDevCtl = pInstance->fdDevCtl;
int msgQId = pInstance->msgQId;
fd_set input_fdset;
ST_CMBS_LIN_MSG LinMsg;
int retval;
// CFR_DBG_OUT( "UART Thread: ID:%lu running\n", (unsigned long)pthread_self() );
/*
Never ending loop.
Thread will be exited automatically when parent thread finishes.
*/
while( 1 )
{
FD_ZERO( &input_fdset );
FD_SET( fdDevCtl, &input_fdset);
/*
select() returns 0 if timeout, 1 if input available, -1 if error.
A signal can arrive and be handled while an I/O primitive such as select(), open() or read() is waiting for an I/O device.
When select() returned error of EINTR, it is means that this call did not succeed because it was interrupted.
However, if you try again, it will probably work.
In other words, EINTR is not a fatal error - it just means you should retry select().
*/
retval = select(fdDevCtl+1, &input_fdset, NULL, NULL, NULL);
if (-1 == retval)
{
if (EINTR == errno)
{
return NULL;
}
CFR_DBG_ERROR( "UartThread Error: select() failed with error %d\n",errno );
/*!\todo exception handling is needed !*/
}
else if (0 == retval)
{
CFR_DBG_ERROR( "UartThread Error: select() failed on timeout error\n");
}
else
{
if( FD_ISSET(fdDevCtl, &input_fdset) )
{
//memset( &LinMsg.msgData, 0, sizeof(LinMsg.msgData) );
/* Reading available data from serial interface */
if( (LinMsg.msgData.nLength = read(fdDevCtl, LinMsg.msgData.u8_Data, sizeof(LinMsg.msgData.u8_Data))) <= 0 )
{
CFR_DBG_ERROR( "UartThread Error: read() failed len=%d\n", LinMsg.msgData.nLength);
#if SU_XHOST
#if SU_XHOST_USB
// Detected disconnection of USB, sending CMBS_EV_DSR_TARGET_UP message to try and reconnect
LinMsg.msgType = 1;
LinMsg.msgData.nLength = 12;
LinMsg.msgData.u8_Data[0] = 0xDA;
LinMsg.msgData.u8_Data[1] = 0xDA;
LinMsg.msgData.u8_Data[2] = 0xDA;
LinMsg.msgData.u8_Data[3] = 0xDA;
LinMsg.msgData.u8_Data[4] = 0x08;
LinMsg.msgData.u8_Data[5] = 0x00;
LinMsg.msgData.u8_Data[6] = 0x00;
LinMsg.msgData.u8_Data[7] = 0x00;
LinMsg.msgData.u8_Data[8] = 0x7D;
LinMsg.msgData.u8_Data[9] = 0x00;
LinMsg.msgData.u8_Data[10] = 0x00;
LinMsg.msgData.u8_Data[11] = 0x00;
if( msgsnd( msgQId, &LinMsg, (LinMsg.msgData.nLength + sizeof(LinMsg.msgData.nLength)), 0 ) < 0 )
{
CFR_DBG_ERROR( "UartThread Error: reconnect msgsnd ERROR:%d\n", errno );
}
return NULL;
#endif
#endif //SU_XHOST
}
else
{
// CFR_DBG_OUT( "UartThread: received %d bytes\n", LinMsg.msgData.nLength );
/* Send what we received to callback thread */
if( msgQId >= 0 )
{
LinMsg.msgType = 1;
// CFR_DBG_OUT( "UartThread: sent %d bytes\n", LinMsg.msgData.nLength + 4 );
if( msgsnd( msgQId, &LinMsg, (LinMsg.msgData.nLength + sizeof(LinMsg.msgData.nLength)), 0 ) < 0 )
{
CFR_DBG_ERROR( "UartThread: msgsnd ERROR:%d\n", errno );
}
else
{
// CFR_DBG_OUT( "UartThread: msgsnd sent ok.\n");
}
}
else
{
CFR_DBG_ERROR( "UartThread: invalid msgQId:%d\n", msgQId );
}
}
}
}
}
return NULL;
}
// ========== cfr_wait_till_characters_transmitted ===========
/*!
\brief Wait till characters are transmitted
\param[in,out] fd pointer to packet part
\return < none >
*/
void cfr_uartWaitPacketPartTransmitFinished(int fd)
{
int rv;
fd_set writefds;
while(1)
{
FD_ZERO(&writefds);
FD_SET(fd, &writefds);
rv=select(fd+1, NULL, &writefds, NULL, NULL);
if (rv >= 0) break;
if (errno != EINTR) break;
}
}
// ========== cfr_uartPacketPartWrite ===========
/*!
\brief write partly the packet into communication device
\param[in,out] pu8_Buffer pointer to packet part
\param[in,out] u16_Size size of packet part
\return < int > currently, alway 0
*/
int cfr_uartPacketPartWrite( u8* pu8_Buffer, u16 u16_Size )
{
// int i;
// CFR_DBG_OUT( "PacketPartWrite: " );
// for (i=0; i < u16_Size; i++ )
// {
// CFR_DBG_OUT( "%02x ",pu8_Buffer[i] );
// write( g_CMBSInstance.fdDevCtl, pu8_Buffer + i, 1 );
// }
// CFR_DBG_OUT( "\n" );
write( g_CMBSInstance.fdDevCtl, pu8_Buffer, u16_Size);
cfr_uartWaitPacketPartTransmitFinished(g_CMBSInstance.fdDevCtl);
return 0;
}
// ========== cfr_uartPacketWriteFinish ===========
/*!
\brief Currently dummy function is not needed on host side
\param[in,out] u8_BufferIDX buffer index
\return < none >
*/
void cfr_uartPacketWriteFinish( u8 u8_BufferIDX )
{
// For logging sent data packets
UNUSED_PARAMETER(u8_BufferIDX);
}
// ========== cfr_uartPacketPrepare ===========
/*!
\brief Currently dummy function is not needed on host side
\param[in,out] u16_size size of to be submitted packet for transmission
\return < CFR_E_RETVAL >
*/
CFR_E_RETVAL cfr_uartPacketPrepare( u16 u16_size )
{
// dummy function
UNUSED_PARAMETER(u16_size);
return CFR_E_RETVAL_OK;
}
// ========== cfr_uartDataTransmitKick ===========
/*!
\brief Currently dummy function is not needed on host side
\param[in,out] < none >
\return < CFR_E_RETVAL >
*/
void cfr_uartDataTransmitKick( void )
{
// dummy function
}
// ========== cfr_uartInitialize ===========
/*!
\brief open the serial communication interface with relevant parameter sets
\param[in,out] pst_Config pointer to UART configuration
\return < int > if failed returns -1, otherwise 0
*/
int cfr_uartInitialize( PST_UART_CONFIG pst_Config )
{
char szDevName[128] = {0};
int fd;
struct termios term_attr;
unsigned int baud = B115200; /* defaults */
// generate device name
if( pst_Config->psz_ComDevName )
{
sprintf( szDevName, "/dev/%s", pst_Config->psz_ComDevName );
}
else if( pst_Config->u8_Port < 1 )
{
// CFR_DBG_WARN( "Warning: Invalid port COM%d. Using default COM1\n", pst_Config->u8_Port );
sprintf( szDevName, "/dev/ttyS0" );
}
else
{
sprintf( szDevName, "/dev/ttyS%d", pst_Config->u8_Port );
}
// open device
if( (fd = open(szDevName, O_RDWR | O_NOCTTY | O_NDELAY)) == -1 )
{
CFR_DBG_ERROR( "Error: Can't open device %s\n", szDevName );
return -1;
}
else
{
CFR_DBG_OUT( "Opened %s\n", szDevName );
/* Configure terminal attributes */
if( tcgetattr(fd, &term_attr) != 0 )
{
CFR_DBG_ERROR( "Error: tcgetattr() for TERM_DEVICE failed\n" );
close ( fd );
return -1;
}
/* setup the serial device communication properties */
term_attr.c_cflag = CS8|CREAD|CLOCAL;//|CRTSCTS;
/* Control flag
CS8 : 8n1 (8bit,no parity,1 stopbit)
CREAD : enable receiving characters
CLOCAL : local connection, no modem control
CRTSCTS : output hardware flow control
*/
/* Raw data transmission; No pre- or post-processing */
term_attr.c_iflag = 0; // Input flag
term_attr.c_oflag = 0; // Output flag
term_attr.c_lflag = 0; // Local flag
switch(pst_Config->u32_BaudRate)
{
case 4800:
baud = B4800;
break;
case 9600:
baud = B9600;
break;
case 19200:
baud = B19200;
break;
case 57600:
baud = B57600;
break;
case 115200:
baud = B115200;
break;
case 230400:
baud = B230400;
break;
default :
baud = B115200;
break;
}
if( cfsetispeed(&term_attr, baud) == -1 )
{
CFR_DBG_ERROR( "Error: failed to set input baud rate\n" );
close (fd);
return -1;
}
if( cfsetospeed(&term_attr, baud) == -1 )
{
CFR_DBG_ERROR( "Error: failed to set output baud rate\n" );
close (fd);
return -1;
}
if( tcsetattr(fd, TCSAFLUSH, &term_attr) != 0 )
{
CFR_DBG_ERROR( "Error: tcsetattr() for TERM_DEVICE failed\n" );
close (fd);
return -1;
}
}
return fd;
}
//todo: rename ST_UART_CONFIG to ST_SERIAL_CONFIG
int cfr_usbInitialize( PST_UART_CONFIG pst_Config )
{
char szDevName[128];
int fd;
struct termios term_attr;
unsigned int baud = B115200; /* defaults */
if(pst_Config->psz_ComDevName)
{
sprintf( szDevName, "/dev/%s", pst_Config->psz_ComDevName );
fd = open(szDevName, O_RDWR | O_NOCTTY | O_NDELAY);
}
else
{
// generate device name /dev/ttyACM
sprintf( szDevName, "/dev/ttyACM%d", pst_Config->u8_Port );
// open device
fd = open(szDevName, O_RDWR | O_NOCTTY | O_NDELAY);
if(fd == -1)
{
// generate device name /dev/ttyUSB
sprintf( szDevName, "/dev/ttyUSB%d", pst_Config->u8_Port );
// open device
fd = open(szDevName, O_RDWR | O_NOCTTY | O_NDELAY);
}
}
if(fd == -1)
{
CFR_DBG_ERROR( "Error: Can't open device /dev/ttyACM%d or /dev/ttyUSB%d\n", pst_Config->u8_Port, pst_Config->u8_Port );
return -1;
}
CFR_DBG_OUT( "Opened %s\n", szDevName );
/* Configure terminal attributes */
if( tcgetattr(fd, &term_attr) != 0 )
{
CFR_DBG_ERROR( "Error: tcgetattr() for TERM_DEVICE failed\n" );
close ( fd );
return -1;
}
/* setup the serial device communication properties */
term_attr.c_cflag = CS8|CREAD|CLOCAL;//|CRTSCTS;
/* Control flag
CS8 : 8n1 (8bit,no parity,1 stopbit)
CREAD : enable receiving characters
CLOCAL : local connection, no modem control
CRTSCTS : output hardware flow control
*/
/* Raw data transmission; No pre- or post-processing */
term_attr.c_iflag = 0; // Input flag
term_attr.c_oflag = 0; // Output flag
term_attr.c_lflag = 0; // Local flag
switch(pst_Config->u32_BaudRate)
{
case 4800:
baud = B4800;
break;
case 9600:
baud = B9600;
break;
case 19200:
baud = B19200;
break;
case 57600:
baud = B57600;
break;
case 115200:
baud = B115200;
break;
case 230400:
baud = B230400;
break;
default :
baud = B115200;
break;
}
if( cfsetispeed(&term_attr, baud) == -1 )
{
CFR_DBG_ERROR( "Error: failed to set input baud rate\n" );
close (fd);
return -1;
}
if( cfsetospeed(&term_attr, baud) == -1 )
{
CFR_DBG_ERROR( "Error: failed to set output baud rate\n" );
close (fd);
return -1;
}
if( tcsetattr(fd, TCSAFLUSH, &term_attr) != 0 )
{
CFR_DBG_ERROR( "Error: tcsetattr() for TERM_DEVICE failed\n" );
close (fd);
return -1;
}
return fd;
}

View File

@@ -1,44 +0,0 @@
/*!
* \file cmbs_uart.h
* \brief
* \author stein
*
* @(#) %filespec: cfr_uart.h~DMZD53#2 %
*
*******************************************************************************
* \par History
* \n==== History ============================================================\n
* date name version action \n
* ----------------------------------------------------------------------------\n
*******************************************************************************/
#if !defined( CFR_UART_H )
#define CFR_UART_H
/*! current packet transmission size */
#define CFR_BUFFER_WINDOW_SIZE 3
/*! identifier for receive path */
#define CFR_BUFFER_UART_REC 0
/*! identifier for transmit path */
#define CFR_BUFFER_UART_TRANS 1
#if defined( __cplusplus )
extern "C"
{
#endif
void * cfr_uartThread( void * pVoid );
int cfr_uartInitialize( PST_UART_CONFIG pst_Config );
int cfr_usbInitialize( PST_UART_CONFIG pst_Config );
int cfr_uartPacketPartWrite( u8* pu8_Buffer, u16 u16_Size );
void cfr_uartPacketWriteFinish( u8 u8_BufferIDX );
CFR_E_RETVAL cfr_uartPacketPrepare ( u16 u16_size );
void cfr_uartDataTransmitKick ( void );
#if defined( __cplusplus )
}
#endif
#endif // CFR_UART_H
//*/

View File

@@ -1,29 +0,0 @@
FRAMEBASE:=$(PROJDIR)/frame
cfr_objects:=
####################################################################
# settle includes
includes += -I$(FRAMEBASE) -I$(FRAMEBASE)/linux
ifdef CMBS_COMA
includes += -I$(LIBCOMA)/inc/ -I$(LIBCOMA)/../include
endif
####################################################################
# settle objects
cfr_objects += $(OBJDIR)/cfr_uart.o
cfr_objects += $(OBJDIR)/cfr_cmbs.o
cfr_objects += $(OBJDIR)/cfr_ie.o
ifdef CMBS_COMA
cfr_objects += $(OBJDIR)/cfr_coma.o
endif
####################################################################
# settle vpath
vpath %.c $(FRAMEBASE)
# linux
vpath %.c $(FRAMEBASE)/linux

View File

@@ -1,32 +0,0 @@
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE_TAGS := optional
LOCAL_MODULE := osl
#LOCAL_CFLAGS := \
LOCAL_C_INCLUDES:= \
$(LOCAL_PATH)/inc
LOCAL_SRC_FILES := \
linux/OsLiteCritSect.c \
linux/OsLiteEvents.c \
linux/OsLiteInit.c \
linux/OsLiteIntr.c \
linux/OsLiteQueue.c \
linux/OsLiteSem.c \
linux/OsLiteTask.c \
linux/OsLiteTick.c \
linux/Smartlog.c \
linux/TimeUtils.c
#LOCAL_STATIC_LIBRARIES :=
include $(BUILD_STATIC_LIBRARY)

Some files were not shown because too many files have changed in this diff Show More