Skip to content

Commit 233104f

Browse files
authored
Merge pull request #287 from mahanteshchitt/branch-1036
RDKBACCL-1036: Remove openwrt pieces in our rdk-b banana pi
2 parents 0f3f254 + bff91ac commit 233104f

File tree

6 files changed

+83
-6
lines changed

6 files changed

+83
-6
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
DEPENDS_remove = "ubus uci"
2+
EXTRA_OECMAKE += " \
3+
-DUBUS_SUPPORT=OFF \
4+
-DUCI_SUPPORT=OFF \
5+
"
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
diff --git a/wpa_supplicant/wpa_supplicant.c b/wpa_supplicant/wpa_supplicant.c
2+
index da471c9b8..a1a442403 100644
3+
--- a/wpa_supplicant/wpa_supplicant.c
4+
+++ b/wpa_supplicant/wpa_supplicant.c
5+
@@ -7999,7 +7999,7 @@ struct wpa_supplicant * wpa_supplicant_add_iface(struct wpa_global *global,
6+
}
7+
#endif /* CONFIG_P2P */
8+
9+
- wpas_ubus_add_bss(wpa_s);
10+
+ //wpas_ubus_add_bss(wpa_s);
11+
wpas_ucode_add_bss(wpa_s);
12+
13+
return wpa_s;
14+
@@ -8029,7 +8029,7 @@ int wpa_supplicant_remove_iface(struct wpa_global *global,
15+
#endif /* CONFIG_MESH */
16+
17+
wpas_ucode_free_bss(wpa_s);
18+
- wpas_ubus_free_bss(wpa_s);
19+
+ //wpas_ubus_free_bss(wpa_s);
20+
21+
/* Remove interface from the global list of interfaces */
22+
prev = global->ifaces;
23+
diff --git a/wpa_supplicant/wpa_supplicant_i.h b/wpa_supplicant/wpa_supplicant_i.h
24+
index 1c1e69d3b..3532b5803 100644
25+
--- a/wpa_supplicant/wpa_supplicant_i.h
26+
+++ b/wpa_supplicant/wpa_supplicant_i.h
27+
@@ -21,7 +21,7 @@
28+
#include "config_ssid.h"
29+
#include "wmm_ac.h"
30+
#include "pasn/pasn_common.h"
31+
-#include "ubus.h"
32+
+//#include "ubus.h"
33+
#include "ucode.h"
34+
35+
extern const char *const wpa_supplicant_version;
36+
@@ -322,7 +322,7 @@ struct wpa_global {
37+
38+
struct psk_list_entry *add_psk; /* From group formation */
39+
40+
- struct ubus_object ubus_global;
41+
+ //struct ubus_object ubus_global;
42+
};
43+
44+
45+
@@ -697,7 +697,7 @@ struct wpa_supplicant {
46+
unsigned char own_addr[ETH_ALEN];
47+
unsigned char perm_addr[ETH_ALEN];
48+
char ifname[100];
49+
- struct wpas_ubus_bss ubus;
50+
+ //struct wpas_ubus_bss ubus;
51+
struct wpas_ucode_bss ucode;
52+
#ifdef CONFIG_MATCH_IFACE
53+
int matched;

meta-rdk-mtk-bpir4/recipes-connectivity/wpa-supplicant/wpa-supplicant_%.bbappend

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
EXTRA_OEMAKE = "CONFIG_BUILD_WPA_CLIENT_SO=y"
22
FILES_SOLIBSDEV = ""
3-
do_install_append () {
4-
install -d ${D}${includedir}
5-
install -d ${D}${libdir}
6-
install -d ${D}/lib/rdk/
3+
FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
74

8-
install -m 0777 ${S}/wpa_supplicant/libwpa_client.so ${D}${libdir}/
9-
install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}/
5+
DEPENDS_remove += "${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'ubus udebug', '', d)}"
6+
SRC_URI_append = "${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' file://0001-remove-ubus-on-rdkb.patch', '', d)}"
7+
do_configure:append() {
8+
if ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', 'true', 'false', d)}; then
9+
sed -i 's/^CONFIG_UBUS=y/# CONFIG_UBUS is not set/' ${S}/wpa_supplicant/.config
10+
sed -i 's/^CONFIG_UCODE=y/# CONFIG_UCODE is not set/' ${S}/wpa_supplicant/.config
11+
fi
1012
}
1113

14+
do_install_append () {
15+
install -d ${D}${includedir}
16+
install -d ${D}${libdir}
17+
install -d ${D}/lib/rdk/
18+
19+
install -m 0777 ${S}/wpa_supplicant/libwpa_client.so ${D}${libdir}/
20+
install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}/
21+
}
1222
FILES_${PN} += "${libdir}/libwpa_client.so"
1323
FILES_${PN} += "${includedir}/wpa_ctrl.h"
1424
FILES_${PN} += "lib/rdk"

meta-rdk-mtk-bpir4/recipes-core/images/rdk-generic-broadband-image.bbappend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,4 @@ do_filogic_gen_image(){
6666
IMAGE_INSTALL_remove = "${@bb.utils.contains('DISTRO_FEATURES', 'ppp-enabled', '', 'pptp-linux rp-pppoe xl2tpd', d)}"
6767
IMAGE_INSTALL_append = "${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh',' unified-wifi-mesh unified-wifi-mesh-cli socat','',d)}"
6868
IMAGE_INSTALL_append = "${@bb.utils.contains('DISTRO_FEATURES', 'with_alsap',' ieee1905-em ','',d)}"
69+
IMAGE_INSTALL_remove += " mtkhnat-util"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
RDEPENDS_packagegroup-filogic-logan_remove += " iwinfo \
2+
uci \
3+
ubus \
4+
"

meta-rdk-mtk-bpir4/recipes-core/packagegroups/packagegroup-filogic-mt76.bbappend

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ RDEPENDS_packagegroup-filogic-mt76_remove_onewifi = " \
55
vts \
66
"
77
RDEPENDS_packagegroup-filogic-mt76_remove_broadband = " mt76-test"
8+
RDEPENDS_packagegroup-filogic-mt76_remove += " iwinfo \
9+
uci \
10+
ubus \
11+
"

0 commit comments

Comments
 (0)