Compare commits

..

1 Commits

Author SHA1 Message Date
Amin Ben Romdhane
f56b780135 decollector: add libbbfdm-{api,api-v2,ubus} dependencies 2025-12-24 23:08:55 +01:00
4 changed files with 1 additions and 58 deletions

View File

@@ -32,6 +32,7 @@ define Package/decollector
TITLE:=WiFi DataElements Collector Proxy
DEPENDS:=+libuci +libubox +ubus +libpthread +libnl-genl \
+libeasy +libwifiutils +libieee1905 +ieee1905-map-plugin
DEPENDS+=+libbbfdm-api +libbbfdm-api-v2 +libbbfdm-ubus
endef
define Package/decollector/description

View File

@@ -19,8 +19,4 @@ config ICWMP_VENDOR_PREFIX
config ICWMP_ENABLE_SMM_SUPPORT
bool "Enable software module management support"
default n
config ICWMP_ENABLE_ANNEX_F_INFORM_PARAM
bool "Enable Device.Gateway. and Device.ManagementServer.ManageableDevice. as inform parameter"
default y
endmenu

View File

@@ -90,9 +90,6 @@ define Package/icwmp/install
$(INSTALL_BIN) ./files/etc/uci-defaults/95-set-random-inform-time $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/etc/uci-defaults/85-migrate-gw-info $(1)/etc/uci-defaults/
$(INSTALL_BIN) ./files/etc/uci-defaults/999-cwmp-conn-config $(1)/etc/uci-defaults/
ifeq ($(CONFIG_ICWMP_ENABLE_ANNEX_F_INFORM_PARAM),y)
$(INSTALL_BIN) ./files/etc/uci-defaults/999-cwmp-annex-f-config $(1)/etc/uci-defaults/
endif
$(INSTALL_BIN) ./files/etc/icwmpd/vendor_log.sh $(1)/etc/icwmpd/vendor_log.sh
$(INSTALL_BIN) ./files/etc/icwmpd/firewall.cwmp $(1)/etc/icwmpd/firewall.cwmp
$(INSTALL_DATA) ./files/lib/upgrade/keep.d/icwmp $(1)/lib/upgrade/keep.d/icwmp

View File

@@ -1,51 +0,0 @@
#!/bin/sh
. /lib/functions.sh
validate_inform_parameter() {
local section="${1}"
local target_param="${2}"
local parameter_name
config_get parameter_name "${section}" parameter_name
if [ "${parameter_name}" = "${target_param}" ]; then
return 0
fi
return 1
}
check_param_exists() {
local target_param="${1}"
local found=1
check_section() {
local section="${1}"
if validate_inform_parameter "${section}" "${target_param}"; then
found=0
fi
}
config_foreach check_section inform_parameter
return "${found}"
}
configure_annex_f_inform_param() {
config_load cwmp
if ! check_param_exists "Device.GatewayInfo."; then
uci -q set cwmp.gw_info_param=inform_parameter
uci -q set cwmp.gw_info_param.enable='1'
uci -q set cwmp.gw_info_param.events_list='0 BOOTSTRAP,1 BOOT'
uci -q set cwmp.gw_info_param.parameter_name='Device.GatewayInfo.'
fi
if ! check_param_exists "Device.ManagementServer.ManageableDevice."; then
uci -q set cwmp.mng_dev_param=inform_parameter
uci -q set cwmp.mng_dev_param.enable='1'
uci -q set cwmp.mng_dev_param.events_list='0 BOOTSTRAP,1 BOOT'
uci -q set cwmp.mng_dev_param.parameter_name='Device.ManagementServer.ManageableDevice.'
fi
}
configure_annex_f_inform_param