Skip to content

Commit 97b382f

Browse files
Merge pull request #1 from rdkcentral/develop
Update to latest
2 parents caf623a + c21fff6 commit 97b382f

File tree

46 files changed

+2302
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2302
-32
lines changed

NOTICE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ Licensed under the Apache License, Version 2.0
88

99
Copyright [2014] [Cisco Systems, Inc.]
1010
Licensed under the Apache License, Version 2.0
11+
12+
Some material is derived from openembedded.org or the yocto project and is licensed in the same manner here (MIT for metadata; source code to match the associated recipe license).

conf/distro/include/rdk-bpi.inc

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'rdkb_wan_manager', '
1010
DISTRO_FEATURES_append = " halVersion3"
1111

1212
#rdk-wifi-libhostap support for broadband
13-
DISTRO_FEATURES_append = " HOSTAPD_2_10"
13+
DISTRO_FEATURES_append = " HOSTAPD_2_11"
1414

1515
# OneWifi feature
1616
DISTRO_FEATURES_append = " OneWifi"
1717

1818
# MacFilter Feature
19-
DISTRO_FEATURES_append = " acl_nl_support"
19+
DISTRO_FEATURES_append = " disable_nl80211_acl"
2020

2121
#No Moca Support
2222
DISTRO_FEATURES_append = " no_moca_support"
@@ -40,3 +40,10 @@ DISTRO_FEATURES_append = " sdmmc"
4040

4141
#PPP Feature
4242
#DISTRO_FEATURES_append = "ppp-enabled"
43+
44+
#disabling lan0_as_wan to allow lan0 interface to come
45+
DISTRO_FEATURES_remove = " lan0_as_wan"
46+
47+
#Need to enable below distro once required changes are merged
48+
#DISTRO_FEATURES_append = " EasyMesh"
49+
PREFERRED_VERSION_go = "1.19.%"
Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
SRC_URI_remove = "${CMF_GIT_ROOT}/rdkb/components/opensource/ccsp/OneWifi;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};name=libwebconfig"
22

33
SRC_URI = "git://github.com/rdkcentral/OneWifi.git;protocol=https;branch=develop;name=libwebconfig"
4-
SRCREV_libwebconfig = "7d4697bc74017e0ec57c3ba903a70dfe56809cb4"
4+
SRCREV_libwebconfig = "3962d0b1f141bc1f00ef81ff25c2a36bcd5cf4e2"
5+
6+
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' rdk-wifi-libhostap unified-wifi-mesh-header ', '', d)}"
7+
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' --enable-easymesh ', '', d)}"
8+
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' --enable-em-app ', '', d)}"
9+
10+
CFLAGS += " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' -Wno-error=maybe-uninitialized -Wno-error=unused-variable -Wno-error=unused-but-set-variable -Wno-error=incompatible-pointer-types -Wno-error=sign-compare -Wno-error -DEASY_MESH_NODE ', '', d)}"
11+
12+
CFLAGS_append = " -Wno-enum-conversion"
13+
14+
do_compile_append() {
15+
oe_runmake -C source/platform
16+
}
17+
18+
do_install_append() {
19+
oe_runmake -C source/platform DESTDIR=${D} install
20+
install -m 644 ${S}/include/webconfig_external_proto_easymesh.h ${D}/usr/include/ccsp
21+
}
22+
23+
FILES_${PN} += " \
24+
${libdir}/libwifi_bus.so* \
25+
"
26+

meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-one-wifi.bbappend

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
44

55
SRC_URI_remove = "${CMF_GIT_ROOT}/rdkb/components/opensource/ccsp/OneWifi;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};name=OneWifi"
66
SRC_URI = "git://github.com/rdkcentral/OneWifi.git;protocol=https;branch=develop;name=OneWifi"
7-
SRCREV_OneWifi = "7d4697bc74017e0ec57c3ba903a70dfe56809cb4"
7+
SRCREV_OneWifi = "3962d0b1f141bc1f00ef81ff25c2a36bcd5cf4e2"
88
DEPENDS_append = " mesh-agent "
9+
DEPENDS_remove = " opensync "
10+
DEPENDS += " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' rdk-wifi-libhostap ', '', d)}"
911

1012
CFLAGS_append = " -DWIFI_HAL_VERSION_3 -Wno-unused-function "
1113
LDFLAGS_append = " -ldl"
1214
CFLAGS_append_aarch64 = " -Wno-error "
1315

16+
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' --enable-em-app ', '', d)}"
17+
CFLAGS_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'EasyMesh', ' -DEASY_MESH_NODE ', '', d)}"
18+
1419
SRC_URI += " \
1520
file://checkwifi.sh \
1621
file://onewifi_pre_start.sh \

meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/files/onewifi_pre_start.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/sh
22
sleep 20
3+
4+
#To update al_mac_addr in EasyMeshCfg.json to avoid onewifi restarting during fresh boot-up
5+
wan_mac="$(cat /sys/class/ieee80211/phy0/macaddress)"
6+
old_al_mac_addr=`cat /nvram/EasymeshCfg.json | grep AL_MAC_ADDR | cut -d '"' -f4`
7+
if [ "$old_al_mac_addr" == "00:00:00:00:00:00" ]; then
8+
sed -i "s/$old_al_mac_addr/$wan_mac/g" /nvram/EasymeshCfg.json
9+
fi
10+
311
iw phy phy0 interface add wifi0 type __ap
412
iw phy phy0 interface add wifi1 type __ap
513
iw phy phy0 interface add wifi2 type __ap
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"AL_MAC_ADDR": "00:00:00:00:00:00",
3+
"Colocated_mode": 1,
4+
"Backhaul_SSID": "mesh_backhaul",
5+
"Backhaul_KeyPassphrase": "test-backhaul"
6+
}
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
################################################
2+
#From: 2deb7d57df61e41ae71d8431bbc62dabeae8b660,
3+
# a1a55d64c1240a1f9cf34dcd1cdde9b29070cc6d
4+
#Subject: Add callback func to get AKM and wpa3 comp enum
5+
#Source: COMCAST
6+
#Signed-off-by:[email protected]
7+
################################################
8+
diff --git a/wifi_hal_ap.h b/wifi_hal_ap.h
9+
index f5c37db..7daf939 100644
10+
--- a/wifi_hal_ap.h
11+
+++ b/wifi_hal_ap.h
12+
@@ -349,7 +349,8 @@ typedef enum
13+
WIFI_RADIO_SCAN_MODE_FULL,
14+
WIFI_RADIO_SCAN_MODE_ONCHAN,
15+
WIFI_RADIO_SCAN_MODE_OFFCHAN,
16+
- WIFI_RADIO_SCAN_MODE_SURVEY
17+
+ WIFI_RADIO_SCAN_MODE_SURVEY,
18+
+ WIFI_RADIO_SCAN_MODE_SELECT_CHANNELS
19+
} wifi_neighborScanMode_t;
20+
21+
/**
22+
@@ -2736,6 +2737,14 @@ typedef struct {
23+
} __attribute__((packed)) wifi_back_haul_sta_t;
24+
25+
#define WIFI_AP_MAX_SSID_LEN 33
26+
+/**
27+
+ * @brief Maximum length of the vendor information elements buffer
28+
+ *
29+
+ * Not a standard value, but a reasonable maximum for vendor elements
30+
+ * Computed by taking Max MPDU size - ~ MAX 802.11 header size - 802.11 FCS size - ~Size of required IEs
31+
+ * 2,310 is divisible by the typical Vendor IE size (7 = IE Type[1] + IE Length[1] + OUI[3] + VIE Type[1] + VIE Subtype [1])
32+
+ */
33+
+#define WIFI_AP_MAX_VENDOR_IE_LEN 2310
34+
typedef struct {
35+
CHAR ssid[WIFI_AP_MAX_SSID_LEN];
36+
BOOL enabled;
37+
@@ -2763,6 +2772,8 @@ typedef struct {
38+
UINT wmmNoAck;
39+
UINT wepKeyLength;
40+
BOOL bssHotspot;
41+
+ UINT vendor_elements_len;
42+
+ UCHAR vendor_elements[WIFI_AP_MAX_VENDOR_IE_LEN];
43+
UINT wpsPushButton;
44+
char beaconRateCtl[32];
45+
BOOL network_initiated_greylist;
46+
@@ -2919,4 +2930,4 @@ INT wifi_hal_analytics_callback_register(wifi_analytics_callback callback);
47+
}
48+
#endif
49+
50+
-#endif
51+
\ No newline at end of file
52+
+#endif
53+
diff --git a/wifi_hal_generic.h b/wifi_hal_generic.h
54+
index a55ede6..c8ca1a8 100644
55+
--- a/wifi_hal_generic.h
56+
+++ b/wifi_hal_generic.h
57+
@@ -832,6 +832,7 @@ typedef struct {
58+
BOOL radio_presence[MAX_NUM_RADIOS]; /**< Indicates if the interfaces is present (not in deep sleep)*/
59+
wifi_multi_link_info_t mu_info;
60+
UINT BssMaxStaAllow; /**< Maximum number of stations supported for given platform. Gets populated during bring-up. */
61+
+ UINT colocated_mode;
62+
63+
//Device Information related fields
64+
CHAR manufacturer[DEFAULT_DEVICE_FIELD_LEN];
65+
diff --git a/wifi_hal_telemetry.h b/wifi_hal_telemetry.h
66+
index 6867002..3596ea0 100644
67+
--- a/wifi_hal_telemetry.h
68+
+++ b/wifi_hal_telemetry.h
69+
@@ -102,6 +102,7 @@ typedef struct _wifi_neighbor_ap2
70+
CHAR ap_SupportedDataTransferRates[256]; /**< Comma-separated list (maximum list length 256) of strings. Data transmit rates (in Mbps) for unicast frames at which the SSID will permit a station to connect. For example, ifSupportedDataTransferRatesis "1,2,5.5", this indicates that the SSID will only permit connections at 1 Mbps, 2 Mbps and 5.5 Mbps. */
71+
UINT ap_DTIMPeriod; /**< The number of beacon intervals that elapse between transmission of Beacon frames containing a TIM element whose DTIM count field is 0. This value is transmitted in the DTIM Period field of beacon frames. [802.11-2012] */
72+
UINT ap_ChannelUtilization; /**< Indicates the fraction of the time AP senses that the channel is in use by the neighboring AP for transmissions. */
73+
+ UINT ap_freq; /**< Frequency. */
74+
} wifi_neighbor_ap2_t; //COSA_DML_NEIGHTBOURING_WIFI_RESULT
75+
76+
/* Explanation:
77+
@@ -338,4 +339,4 @@ INT wifi_getVAPTelemetry(UINT apIndex, wifi_VAPTelemetry_t *telemetry);
78+
}
79+
#endif
80+
81+
-#endif
82+
\ No newline at end of file
83+
+#endif
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
11
CFLAGS_append = " -DWIFI_HAL_VERSION_3"
2+
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
3+
4+
SRC_URI += "file://hal_interface.patch;apply=no "
5+
#need to remove this patch once this changes merged in rdk-next
6+
do_hal_interface_patches() {
7+
cd ${S}
8+
if [ ! -e patch_applied ]; then
9+
bbnote "Patching hal_interface.patch"
10+
patch -p1 < ${WORKDIR}/hal_interface.patch
11+
12+
touch patch_applied
13+
fi
14+
}
15+
addtask hal_interface_patches after do_unpack before do_configure
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
1-
SRC_URI_remove = "${CMF_GIT_ROOT}/rdkb/components/opensource/ccsp/hal/rdk-wifi-hal;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};name=rdk-wifi-hal"
1+
SRC_URI_remove = "git://github.com/rdkcentral/rdk-wifi-hal.git;protocol=https;branch=main;name=rdk-wifi-hal"
22

33
SRC_URI += "git://github.com/rdkcentral/rdk-wifi-hal.git;protocol=https;branch=develop;name=rdk-wifi-hal"
4-
SRCREV_rdk-wifi-hal = "51ce6f510012f1d3989bbe7141429498c9158d82"
4+
SRCREV_rdk-wifi-hal = "a8bdea1dce2761060f54e4dfe8e69af19f3d9b1f"
55

66
CFLAGS_append = " -D_PLATFORM_BANANAPI_R4_ -DBANANA_PI_PORT -DFEATURE_SINGLE_PHY "
77
CFLAGS_append_kirkstone = " -fcommon"
8+
CFLAGS_remove = "-DCONFIG_MBO"
89
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' ONE_WIFIBUILD=true ', '', d)}"
910
EXTRA_OECONF_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'OneWifi', ' BANANA_PI_PORT=true ', '', d)}"
1011

1112
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
1213

1314
SRC_URI += " \
1415
  file://InterfaceMap.json \
16+
file://EasymeshCfg.json \
1517
"
1618

17-
SRC_URI += " file://6g_interface_added_in_bridge.patch;patchdir=../"
18-
1919
# Install InterfaceMap.json in /nvram
2020
do_install_append() {
2121
install -d ${D}/nvram
2222
install -m 0644 ${WORKDIR}/InterfaceMap.json ${D}/nvram/InterfaceMap.json
23+
install -m 0644 ${WORKDIR}/EasymeshCfg.json ${D}/nvram
2324
}
2425

2526
FILES_${PN} += " \
26-
  /nvram/InterfaceMap.json \
27+
  /nvram/* \
2728
"
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
SRC_URI_remove += "${CMF_GIT_ROOT}/rdkb/components/opensource/ccsp/hal/rdk-wifi-hal;protocol=${CMF_GIT_PROTOCOL};branch=${CMF_GIT_BRANCH};name=rdk-wifi-util"
2-
3-
LIC_FILES_CHKSUM = "file://../LICENSE;md5=5d50b1d1fb741ca457897f9e370bc747"
1+
SRC_URI_remove = "git://github.com/rdkcentral/rdk-wifi-hal.git;protocol=https;branch=main;name=rdk-wifi-util"
42

53
SRC_URI = "git://github.com/rdkcentral/rdk-wifi-hal.git;protocol=https;branch=develop;name=rdk-wifi-util"
6-
SRCREV_rdk-wifi-util = "51ce6f510012f1d3989bbe7141429498c9158d82"
4+
SRCREV_rdk-wifi-util = "a8bdea1dce2761060f54e4dfe8e69af19f3d9b1f"

0 commit comments

Comments
 (0)