Commit graph

21 commits

Author SHA1 Message Date
Amin Ben Ramdhane
5a2aba3430 WiFi.DataElements.: Add support for ChannelScanRequest() operate 2022-03-22 19:31:03 +01:00
vdutta
8892e6784e Added pseudo blocking call for firmware upgrade 2022-03-14 12:45:15 +05:30
suvendhu
889c15feeb Fix ticket#7333 fix cppcheck warnings 2022-02-22 18:24:19 +05:30
vdutta
d522d8011b Fix static code warnings 2022-02-17 16:41:10 +05:30
Amin Ben Ramdhane
080f7b4f85 Ticket refs #7333: fix warnings, code analysis and clean up the code
- Fix all errors catched by cppcheck threadsafety (cppcheck --error-exitcode=0 --addon=threadsafety bbf)
 - Fix some errors catched by cppcheck cert (cppcheck --error-exitcode=0 --addon=cert bbf)
 - Add new str-protected macros instead of using str functions directly to avoid crashes
2022-02-16 10:33:59 +00:00
suvendhu
74b65edade WiFi scanresult to wait for scan_finished or 30sec timeout 2022-01-24 09:44:46 +00:00
Amin Ben Ramdhane
35633a3bc8 Ticket refs #6623: remove static code analysis warnings 2021-11-22 11:47:14 +01:00
Suvendhu Hansa
d0a593e257 Optimized algorithm for dmubus_call 2021-11-03 15:22:10 +00:00
suvendhu
d895f2d4cd Support of event and operates from json plugin 2021-10-29 12:55:21 +00:00
Amin Ben Ramdhane
a82500080a Device.DeviceInfo.FirmwareImage: add support for Download() and Activate() commands 2021-05-25 10:49:17 +01:00
Amin Ben Ramdhane
92d1f62cab bbf: cleanup
- fix flawfinder and cppcheck issues
 - remove all unused functions
2021-02-10 17:31:55 +01:00
Amin Ben Ramdhane
80839e0903 ubus: increase the timeout to 5 seconds 2020-12-15 09:47:09 +01:00
Amin Ben Ramdhane
3f4a97c1af Ticket refs#2512: libbbf: an object should not be presented if the uci file or ubus object it depends on does not exist 2020-05-27 08:55:07 +01:00
Amin Ben Ramdhane
5f4659f054 ubus api: remove unused code and use libubus api by default 2020-05-27 08:47:30 +01:00
Amin Ben Ramdhane
0adb74f0ae dmubus: added handling for integer arguments 2020-03-28 19:44:07 +01:00
Amin Ben Ramdhane
905d78844c Ticket refs #1254: TR-x69: add support for parameter validation 2020-02-20 23:25:49 +01:00
Daniel Danzberger
dd31072c40 dmubus: remove deprectated is_error macro
This fixes undefined reference erros when linking against newer
libjson-c versions.

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:53:48 +01:00
Daniel Danzberger
7779fc6928 dmubus: improve chache handling
- use less memory
- decrease lookup time
- make read only variables const
- remove unused variables / macros

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:53:48 +01:00
Daniel Danzberger
588db7e54f dmubus: fixes and improvements
- use libubus instead of fork and exec ubus program
- move redundant code to static functions
- don't export ubus_ctx. It's only used in dmubus.c
- mark static gobals static
- remove unecessary json to blobmsg conversions/allocations when preparing parameters for ubus_invoke
- fix memleaks on not freeing ubus_ctx from ubus_connect
- fix invoking requests on random stack value id when ubus_lookup_id failed
- don't connect/disconnect on every request
- don't reallocate blob_buf on every request

Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
2020-02-19 11:53:48 +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
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
Renamed from dmubus.c (Browse further)