Skip to content

Commit

Permalink
ucode: update patches and add multi-radio support
Browse files Browse the repository at this point in the history
Signed-off-by: John Crispin <john@phrozen.org>
  • Loading branch information
blogic committed Nov 28, 2024
1 parent 9b70a00 commit 1e307dd
Show file tree
Hide file tree
Showing 19 changed files with 1,752 additions and 983 deletions.
20 changes: 20 additions & 0 deletions feeds/qca/hostapd/patches/zzz-100-skip-iface-recreate.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- a/src/drivers/driver_nl80211.c
+++ b/src/drivers/driver_nl80211.c
@@ -14314,6 +14314,8 @@ static int wpa_driver_nl80211_can_share_
const u8 *addr;
int ret = -1;

+ return -1;
+
/* create a dummy drv to read the phyname */
if (params->global_priv == NULL)
return ret;
@@ -14367,7 +14369,7 @@ static int wpa_driver_nl80211_can_share_
params->ifname, addr, ctx, drv_priv,
force_ifname, if_addr,
params->num_bridge && params->bridge[0] ? params->bridge[0] : NULL,
- 0, 1)) {
+ 1, 1)) {
wpa_printf(MSG_DEBUG, "nl80211: Failed to add BSS. Expect issues!");
goto free_all;
}
20 changes: 20 additions & 0 deletions feeds/qca/hostapd/patches/zzz-101-scan_delay.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
--- a/src/ap/hw_features.c
+++ b/src/ap/hw_features.c
@@ -525,7 +525,7 @@ static void ap_ht40_scan_retry(void *elo
wpa_printf(MSG_ERROR,
"Failed to request a scan of neighboring BSSes ret=%d (%s) - try to scan again (attempt %d)",
ret, strerror(-ret), iface->num_ht40_scan_tries);
- eloop_register_timeout(1, 0, ap_ht40_scan_retry, iface, NULL);
+ eloop_register_timeout(10, 0, ap_ht40_scan_retry, iface, NULL);
return;
}

@@ -582,7 +582,7 @@ static int ieee80211n_check_40mhz(struct
ret, strerror(-ret));
iface->num_ht40_scan_tries = 1;
eloop_cancel_timeout(ap_ht40_scan_retry, iface, NULL);
- eloop_register_timeout(1, 0, ap_ht40_scan_retry, iface, NULL);
+ eloop_register_timeout(10, 0, ap_ht40_scan_retry, iface, NULL);
return 1;
}

Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ caldata_extract() {
caldata_die "failed to extract calibration data from $mtd"
}

ath12k_generate_macs_eap105() {
touch /lib/firmware/ath12k-macs
eth=$(cat /sys/class/net/eth0/address)
mac1=$(macaddr_add $eth 2)
mac2=$(macaddr_add $eth 3)
mac3=$(macaddr_add $eth 4)
echo -ne \\x${mac1//:/\\x} >> /lib/firmware/ath12k-macs
echo -ne \\x${mac2//:/\\x} >> /lib/firmware/ath12k-macs
echo -ne \\x${mac3//:/\\x} >> /lib/firmware/ath12k-macs
}

board=$(board_name)

case "$FIRMWARE" in
Expand All @@ -44,6 +55,13 @@ ath12k/QCN92XX/hw1.0/cal-pci-0001:01:00.0.bin)
;;
esac
;;
ath12k-macs)
case "$board" in
edgecore,eap105)
ath12k_generate_macs_eap105
;;
esac
;;
*)
exit 1
;;
Expand Down
Loading

0 comments on commit 1e307dd

Please sign in to comment.