[rdkb][mt7986][app][Add uci command]
[Description]
Add uci command
1. add uci bb file , version aligned to openwrt
2. add wireless default config for uci
[Release-log]
diff --git a/recipes-connectivity/hostapd/files/wireless b/recipes-connectivity/hostapd/files/wireless
new file mode 100644
index 0000000..5fea015
--- /dev/null
+++ b/recipes-connectivity/hostapd/files/wireless
@@ -0,0 +1,29 @@
+config wifi-device 'radio0'
+ option type 'mac80211'
+ option path 'platform/18000000.wbsys'
+ option channel '1'
+ option band '2g'
+ option htmode 'HE20'
+ option disabled '1'
+
+config wifi-iface 'default_radio0'
+ option device 'radio0'
+ option network 'lan'
+ option mode 'ap'
+ option ssid 'Filogic'
+ option encryption 'none'
+
+config wifi-device 'radio1'
+ option type 'mac80211'
+ option path 'platform/18000000.wbsys+1'
+ option channel '36'
+ option band '5g'
+ option htmode 'HE80'
+ option disabled '1'
+
+config wifi-iface 'default_radio1'
+ option device 'radio1'
+ option network 'lan'
+ option mode 'ap'
+ option ssid 'Filogic_5'
+ option encryption 'none'
\ No newline at end of file
diff --git a/recipes-connectivity/hostapd/hostapd_2.10.bb b/recipes-connectivity/hostapd/hostapd_2.10.bb
index 7497f07..4cbab01 100644
--- a/recipes-connectivity/hostapd/hostapd_2.10.bb
+++ b/recipes-connectivity/hostapd/hostapd_2.10.bb
@@ -24,6 +24,7 @@
file://hostapd-init.sh \
file://src \
file://001-rdkb-remove-ubus-support.patch;apply=no \
+ file://wireless \
"
require files/patches/patches.inc
@@ -98,6 +99,8 @@
install -m 0644 ${WORKDIR}/hostapd-bhaul5G.conf ${D}${sysconfdir}
install -m 0644 ${WORKDIR}/hostapd.service ${D}${systemd_unitdir}/system
install -m 0755 ${WORKDIR}/hostapd-init.sh ${D}${base_libdir}/rdk
+ install -d ${D}${sysconfdir}/config
+ install -m 0644 ${WORKDIR}/wireless ${D}${sysconfdir}/config
}
FILES_${PN} += " \
@@ -107,4 +110,5 @@
${sysconfdir}/hostapd-bhaul2G.conf \
${sysconfdir}/hostapd-bhaul5G.conf \
${base_libdir}/rdk/hostapd-init.sh \
+ ${sysconfdir}/config/wireless \
"
diff --git a/recipes-devtools/uci/uci_git.bb b/recipes-devtools/uci/uci_git.bb
new file mode 100644
index 0000000..71598db
--- /dev/null
+++ b/recipes-devtools/uci/uci_git.bb
@@ -0,0 +1,36 @@
+DESCRIPTION = "Unified Configuration Interface (UCI)"
+SECTION = "libs"
+LICENSE_NAME = "${@bb.utils.contains('DISTRO_CODENAME', 'dunfell', 'LGPL-2.1', 'LGPL-2.1-only', d)}"
+LICENSE = "${LICENSE_NAME}"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/${LICENSE_NAME};md5=1a6d268fd218675ffea8be556788b780"
+
+SRC_URI = " \
+ git://git.openwrt.org/project/uci.git \
+"
+
+SRCREV = "f84f49f00fb70364f58b4cce72f1796a7190d370"
+PV = "1.0.0+git${SRCPV}"
+
+S = "${WORKDIR}/git"
+
+
+DEPENDS += "libubox"
+
+INSANE_SKIP_${PN} += "dev-deps"
+FILES_SOLIBSDEV = ""
+
+FILES_${PN}-dev = "${includedir}/*"
+FILES_${PN} = "${bindir}/uci ${libdir}/libuci.so"
+
+inherit cmake
+
+EXTRA_OECMAKE = " -DBUILD_LUA=OFF -DCMAKE_SKIP_RPATH=TRUE"
+
+do_install() {
+ install -d ${D}${libdir}
+ install -d ${D}${bindir}
+ install -d ${D}${includedir}
+ install -m 0755 ${B}/uci ${D}${bindir}
+ install -m 0755 ${B}/libuci.so ${D}${libdir}/
+ install -m 0644 ${S}/uci*.h ${D}${includedir}
+}