Commit graph

36 commits

Author SHA1 Message Date
Amin Ben Ramdhane
eef08e0770 bbf: remove the call to icwmp shell script 2021-01-04 10:22:12 +01:00
Omar Kallel
07975229f1 make diagnostics functions work for both usp and cwmp 2020-12-30 17:31:44 +01:00
Omar Kallel
54748ddb63 Make ip_diagnostics_download function works for both usp and cwmp 2020-12-30 17:11:10 +01:00
Amin Ben Ramdhane
ae196c5459 SoftwareModules: move it from TR157 to TR181 folder 2020-12-21 20:47:04 +01:00
Amin Ben Ramdhane
b9a12b057b remove tr064 feature and cleanup 2020-12-16 10:03:25 +01:00
Amin Ben Ramdhane
d5bf04b6a2 bbf: Fix some transaction issues and improve the code 2020-12-07 22:20:12 +01:00
Omar Kallel
8b433b79cf Add CMD_INIT_NOTIFY: add nodtify parameters to list_parameter of dmctx 2020-12-07 16:07:27 +01:00
Amin Ben Ramdhane
18643f29b3 bbf: enhance the code
- remove unused argument from dmuci_add_section() and dmuci_add_section_bbfdm() functions
 - use snprintf instead of dmasptintf
 - change function name: add_list_paramameter -> add_list_parameter
2020-11-23 10:58:48 +01:00
Amin Ben Ramdhane
a83984d914 Ticket refs #3539: bbf: the setting of Interface param has no effect on diagnostic objects 2020-10-19 23:06:05 +01:00
Amin Ben Ramdhane
c4c10e2b9c WiFi.DataElements: fix some issues 2020-10-14 11:50:45 +01:00
Amin Ben Ramdhane
027d8fb599 bbf: save diagnostics data under '/etc/bbfdm/dmmap_diagnostics' instead of '/vat/state/cwmp' 2020-09-28 10:08:13 +01:00
Daniel Danzberger
5fe7af87d4 dmoperate: Add arguments to operate helpers
Adds input and output arguments for each operate call
Arguments are stored in the data field on USP_LIST_OPERATE

NOTE: Dynamic operates need to be recomplied when running libbbf
      with this commit, hence the op_cmd struct has changed

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-09-11 17:33:09 +02:00
vdutta
a9dff9e621 operate: remove dependency of cmwp uci config 2020-09-11 13:01:35 +05:30
Daniel Danzberger
0e46e0630b operate: fix memory issues
- Fix memleak of not free'd json_tokener_parse memory
- Make read-only memory const

Note that this commit changes the operation input argument from
'char *' to 'json_object *', which breaks older dynamic_operate
implementations from outisde the bbf source tree.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-27 12:43:48 +02:00
Daniel Danzberger
c1501b5077 tr181: implement Device.DeviceInfo.FirmwareImage.
This implementation uses the currently running image as image number 1.
An OS dependent implementation with multi Firmware support will be
added in the future.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-08-26 14:01:51 +02:00
Amin Ben Ramdhane
a9e1a747b4 WiFi.Neighboring operate: fix OperatingFrequencyBand and Noise parameters 2020-08-22 17:15:30 +01:00
Amin Ben Ramdhane
b408257e35 Enhance code structure 2020-07-08 18:38:08 +01:00
vdutta
57ae1244cc obuspa: List supported operate commands 2020-06-29 12:50:01 +05:30
Amin Ben Ramdhane
0ac2a81280 SoftwareModules: add operate commands 2020-06-25 18:24:27 +01:00
vdutta
d71af3a2a0 uspd: Remove invalid character from type field of operate cmd 2020-06-08 11:52:47 +05:30
Daniel Danzberger
4d67121a68 Revert "change strcat->strncat"
This reverts commit c0a476dec0.
2020-04-22 10:08:39 +02:00
Amin Ben Ramdhane
c0a476dec0 change strcat->strncat 2020-04-16 18:16:26 +01:00
Amin Ben Ramdhane
862c54780e Update WiFi object with new ubus calls: wifi, wifi.radio, wifi.ap 2020-03-02 19:28:07 +01:00
Amin Ben Ramdhane
ff14c27fc3 clean up the source code
- remove unused variables
- fix coding style of most function (Indentation, Tabulation, ..)
- check the source code using cppcheck tool
- change sprintf by snprintf
2020-02-12 19:08:49 +01:00
vdutta
fdb4b9ab76 bbf: Update db parameters 2020-02-04 12:19:19 +05:30
Amin Ben Ramdhane
4ab526b9f2 Ticket refs#1598: libbbfdm: plug-in based with support for dynamic loading of libraries + separate libbbfdm into two libraries: libbbf_api (API) and libbbfdm (data model) 2020-01-21 22:43:37 +01:00
Sukru Senli
1e11720828 Change License to LGPLv2.1 2019-12-04 09:52:05 +01:00
yyashvardhan
7df5f00548 bbf: Fix Device.WiFi.NeighboringWiFiDiagnostic 2019-11-05 17:43:47 +05:30
Amin Ben Ramdhane
4777b9166f change cwmp -> bbfdm 2019-09-15 11:52:54 +01:00
Amin Ben Ramdhane
b8d5e9fde5 Fix the issues in ServerSelectionDiagnostics() command + remove authentication when calling VendorConfigFile.{i}.Backup and VendorConfigFile.{I}.Restore commands 2019-09-06 10:02:15 +01:00
Amin Ben Ramdhane
f236c73ef2 Fix issue in ServerSelectionDiagnostics() command 2019-09-03 15:34:35 +01:00
Amin Ben Ramdhane
8655b0a37d change icwmp,icwmpd -> bbfdm 2019-09-03 15:24:55 +01:00
Amin Ben Ramdhane
9f59685ea4 change free -> dmfree 2019-09-03 12:33:00 +01:00
Amin Ben Ramdhane
6c63ff2f70 Fix the issue 'Device.WiFi.AccessPoint.*.Security.' command operate 2019-09-03 12:26:28 +01:00
Amin Ben Ramdhane
c2c0f8a4f9 Fix the crash in the operate commands : Device.IP.Interface.{i}.Reset and Device.DeviceInfo.VendorConfigFile.{i}.Backup 2019-08-30 18:43:17 +01:00
Amin Ben Ramdhane
cb2dd1e4ac libbbfdm : initial release 2019-08-26 17:02:43 +01:00