Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIFI-14127: Update bdf for Edgecore EAP105 #718

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file modified feeds/ipq807x_v5.4/ath11k-wifi/board-edgecore-eap104.bin.IPQ5018
Binary file not shown.
Binary file modified feeds/ipq807x_v5.4/ath11k-wifi/board-edgecore-eap104.bin.QCN6122
Binary file not shown.
Binary file modified feeds/ipq807x_v5.4/ath11k-wifi/board-edgecore-oap101.bin.IPQ5018
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion feeds/ipq807x_v5.4/hostapd/files/hostapd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ hostapd_append_wpa_key_mgmt() {
append wpa_key_mgmt "OWE"
;;
psk2-radius)
append wpa_key_mgmt "WPA-PSK-SHA256"
append wpa_key_mgmt "WPA-PSK"
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-PSK"
;;
esac
Expand Down
23 changes: 18 additions & 5 deletions feeds/ipq807x_v5.4/hostapd/files/mpskd
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ function netifd_reload() {
let vid = stacfg.vid;
if (vid)
keydata.vlan = +vid;

let mac = stacfg.mac;
if (mac)
keydata.mac = mac;
ssid.keys[key] = keydata;
}
}
Expand Down Expand Up @@ -201,12 +203,23 @@ function sta_cache_entry_add(ssid, addr, key) {
return cache_data;
}

function ssid_psk(ssid) {
function ssid_psk(ssid, addr) {
ssid = ssids[ssid];
if (!ssid)
return [];

return keys(ssid.keys);
let specific = [];
let rest = [];
for (let k, v in ssid.keys)
if (v.mac == addr)
push(specific, k);
else if (!v.mac)
push(rest, k);

if (length(specific))
return specific;

return rest;
}

function sta_auth_psk(ifname, addr) {
Expand All @@ -218,7 +231,7 @@ function sta_auth_psk(ifname, addr) {
if (cache)
return [ cache.key ];

return ssid_psk(ssid);
return ssid_psk(ssid, addr);
}

function sta_auth_cache(ifname, addr, idx) {
Expand All @@ -230,7 +243,7 @@ function sta_auth_cache(ifname, addr, idx) {
if (cache)
return cache.data;

let psk = ssid_psk(ssid);
let psk = ssid_psk(ssid, addr);
if (!psk)
return;

Expand Down
Binary file modified feeds/ipq95xx/ath12k-wifi/board-cig-wf189.bin.ipq53xx
Binary file not shown.
Binary file modified feeds/ipq95xx/ath12k-wifi/board-cig-wf189.bin.qcn9224
Binary file not shown.
Binary file modified feeds/ipq95xx/ath12k-wifi/board-edgecore-eap105.bin.ipq53xx
Binary file not shown.
Binary file modified feeds/ipq95xx/ath12k-wifi/board-edgecore-eap105.bin.qcn9224
Binary file not shown.
29 changes: 29 additions & 0 deletions feeds/ipq95xx/ipq53xx/base-files/etc/board.d/02_network
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

. /lib/functions/uci-defaults.sh
. /lib/functions.sh
. /lib/functions/system.sh

ipq53xx_setup_interfaces()
{
Expand All @@ -20,9 +22,36 @@ ipq53xx_setup_interfaces()
esac
}

qcom_setup_macs()
{
local board="$1"

case $board in
cig,wf189)
mtd=$(find_mtd_chardev "0:APPSBLENV")
[ -z "$mtd" ] && return;
mac=$(grep BaseMacAddress= $mtd | cut -dx -f2)
[ -z "$mac" ] && return;
wan_mac=$(macaddr_canonicalize $mac)
lan_mac=$(macaddr_add "$wan_mac" 1)
ucidef_set_network_device_mac eth0 $lan_mac
ucidef_set_network_device_mac eth1 $wan_mac
ucidef_set_label_macaddr $wan_mac
;;
*)
wan_mac=$(cat /sys/class/net/eth1/address)
lan_mac=$(macaddr_add "$wan_mac" 1)
;;
esac
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
[ -n "$wan_mac" ] && ucidef_set_interface_macaddr "wan" $wan_mac
[ -n "$wan_mac" ] && ucidef_set_label_macaddr "$wan_mac"
}

board_config_update
board=$(board_name)
ipq53xx_setup_interfaces $board
qcom_setup_macs $board
board_config_flush

exit 0
4 changes: 2 additions & 2 deletions feeds/ucentral/ucentral-schema/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ PKG_NAME:=ucentral-schema
PKG_RELEASE:=1

PKG_SOURCE_URL=https://github.com/Telecominfraproject/wlan-ucentral-schema.git
PKG_MIRROR_HASH:=edb452068069b97afe076a8b936f1e5edbbbbeb8635d8ccdd4d9570cbc78a875
PKG_MIRROR_HASH:=8d13c000a08ae844f22e5e21a1f29f9bfa09951135187095ff8d34bf66f8c75b
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2024-07-03
PKG_SOURCE_VERSION:=a62609706481e3b6496fd0a2aab643aa15a03c3c
PKG_SOURCE_VERSION:=658a29d248b94cc65ebe2ed128c8554f9e264930
PKG_MAINTAINER:=John Crispin <[email protected]>
PKG_LICENSE:=BSD-3-Clause

Expand Down
3 changes: 3 additions & 0 deletions feeds/ucentral/ucentral-state/files/ucentral-state
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ function blink_timeout() {
return;
blink_timer.cancel();
blink_timer = null;
if (current_state == 'blink') {
current_state = 'online';
}
system('/etc/init.d/led turnon');
}

Expand Down
Loading