Skip to content

Commit ea7aea9

Browse files
[bot] AutoMerging: merge all upstream's changes:
* https://github.com/coolsnowwolf/lede: arm-trusted-firmware-mediatek: skip bad blocks on SPI-NAND (SNFI) mac80211: parse the correct set of HE capabilities for AP mode hostapd: fix WPA3 enterprise keys and ciphers vsftpd-alt: fix compilation with glibc r8101: fixes download link/hash (coolsnowwolf#9988) r8101: fix PKG_SOURCE_URL (coolsnowwolf#9986) ipq806x: add missing scaling_available_frequencies for dedicated cpufreq
2 parents efb5a40 + 547bdeb commit ea7aea9

File tree

6 files changed

+63
-8
lines changed

6 files changed

+63
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
--- a/plat/mediatek/mt7622/bl2_boot_snand.c
2+
+++ b/plat/mediatek/mt7622/bl2_boot_snand.c
3+
@@ -21,6 +21,10 @@
4+
#define FIP_BASE 0x80000
5+
#define FIP_SIZE 0x200000
6+
7+
+#ifndef NMBM
8+
+#define SNAND_MAX_BAD_BLOCK 3
9+
+#endif
10+
+
11+
struct snfi_gpio_mux_info {
12+
const uint32_t *pins;
13+
uint32_t count;
14+
@@ -45,12 +49,26 @@ static size_t snand_read_range(int lba,
15+
size_t sizeremain = size, chunksize;
16+
uint64_t off = lba * cinfo.pagesize;
17+
uint8_t *ptr = (uint8_t *)buf;
18+
+ struct mtk_snand_chip_info info;
19+
+ unsigned int bad_blocks = 0;
20+
int ret = 0;
21+
22+
if (!snf)
23+
return 0;
24+
25+
+ ret = mtk_snand_get_chip_info(snf, &info);
26+
+ if (ret)
27+
+ return 0;
28+
+
29+
while (sizeremain) {
30+
+ while (mtk_snand_block_isbad(snf, off)) {
31+
+ if (bad_blocks > SNAND_MAX_BAD_BLOCK)
32+
+ return size - sizeremain;
33+
+
34+
+ off += info.blocksize;
35+
+ ++bad_blocks;
36+
+ }
37+
+
38+
chunksize = cinfo.pagesize;
39+
if (chunksize > sizeremain)
40+
chunksize = sizeremain;

package/kernel/mac80211/files/lib/netifd/wireless/mac80211.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ mac80211_hostapd_setup_base() {
420420
he_spr_non_srg_obss_pd_max_offset:1 \
421421
he_bss_color
422422

423-
he_phy_cap=$(iw phy "$phy" info | awk -F "[()]" '/HE PHY Capabilities/ { print $2 }' | head -1)
423+
he_phy_cap=$(iw phy "$phy" info | sed -n '/HE Iftypes: AP/,$p' | awk -F "[()]" '/HE PHY Capabilities/ { print $2 }' | head -1)
424424
he_phy_cap=${he_phy_cap:2}
425-
he_mac_cap=$(iw phy "$phy" info | awk -F "[()]" '/HE MAC Capabilities/ { print $2 }' | head -1)
425+
he_mac_cap=$(iw phy "$phy" info | sed -n '/HE Iftypes: AP/,$p' | awk -F "[()]" '/HE MAC Capabilities/ { print $2 }' | head -1)
426426
he_mac_cap=${he_mac_cap:2}
427427

428428
append base_cfg "ieee80211ax=1" "$N"

package/lean/r8101/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ PKG_VERSION:=1.037.01
1111
PKG_RELEASE:=$(AUTORELEASE)
1212

1313
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14-
PKG_SOURCE_URL:=https://github.com/umarizulkifli/r8101/blob/main/r8101-1.037.01.tar.bz2
15-
PKG_HASH:=45b3ae6af31054879b06c13ce4f0fb14
14+
PKG_SOURCE_URL:=https://github.com/umarizulkifli/r8101/raw/main/
15+
PKG_HASH:=62bb19848a87d2fe4de3fa9332225dcb5381f06cb93ec8931ea3fd894d492aea
1616
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
1717

1818
PKG_MAINTAINER:=umarizulkifli <[email protected]>

package/lean/vsftpd-alt/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ endef
4848

4949
ifneq ($(CONFIG_USE_MUSL),)
5050
NLSSTRING:=-lcrypt
51+
else ifneq ($(CONFIG_USE_GLIBC),)
52+
NLSSTRING:=-lcrypt
5153
else
5254
NLSSTRING:=-lcrypt -lnsl
5355
endif

package/network/services/hostapd/files/hostapd.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,15 @@ hostapd_append_wpa_key_mgmt() {
4848
;;
4949
eap192)
5050
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
51-
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP"
51+
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP-SHA384"
5252
;;
5353
eap-eap192)
5454
append wpa_key_mgmt "WPA-EAP-SUITE-B-192"
5555
append wpa_key_mgmt "WPA-EAP"
56-
[ "${ieee80211r:-0}" -gt 0 ] && append wpa_key_mgmt "FT-EAP"
56+
[ "${ieee80211r:-0}" -gt 0 ] && {
57+
append wpa_key_mgmt "FT-EAP-SHA384"
58+
append wpa_key_mgmt "FT-EAP"
59+
}
5760
[ "${ieee80211w:-0}" -gt 0 ] && append wpa_key_mgmt "WPA-EAP-SHA256"
5861
;;
5962
sae)
@@ -934,7 +937,11 @@ hostapd_set_bss_options() {
934937
json_get_vars ieee80211w_mgmt_cipher ieee80211w_max_timeout ieee80211w_retry_timeout
935938
append bss_conf "ieee80211w=$ieee80211w" "$N"
936939
[ "$ieee80211w" -gt "0" ] && {
937-
append bss_conf "group_mgmt_cipher=${ieee80211w_mgmt_cipher:-AES-128-CMAC}" "$N"
940+
if [ "$auth_type" = "eap192" ]; then
941+
append bss_conf "group_mgmt_cipher=BIP-GMAC-256" "$N"
942+
else
943+
append bss_conf "group_mgmt_cipher=${ieee80211w_mgmt_cipher:-AES-128-CMAC}" "$N"
944+
fi
938945
[ -n "$ieee80211w_max_timeout" ] && \
939946
append bss_conf "assoc_sa_query_max_timeout=$ieee80211w_max_timeout" "$N"
940947
[ -n "$ieee80211w_retry_timeout" ] && \

target/linux/ipq806x/patches-5.4/098-1-cpufreq-add-Krait-dedicated-scaling-driver.patch

+7-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Signed-off-by: Ansuel Smith <[email protected]>
7575
##################################################################################
7676
--- /dev/null
7777
+++ b/drivers/cpufreq/qcom-cpufreq-krait.c
78-
@@ -0,0 +1,603 @@
78+
@@ -0,0 +1,609 @@
7979
+// SPDX-License-Identifier: GPL-2.0
8080
+
8181
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -435,6 +435,11 @@ Signed-off-by: Ansuel Smith <[email protected]>
435435
+ return 0;
436436
+}
437437
+
438+
+static struct freq_attr *krait_cpufreq_attr[] = {
439+
+ &cpufreq_freq_attr_scaling_available_freqs,
440+
+ NULL,
441+
+};
442+
+
438443
+static struct cpufreq_driver krait_cpufreq_driver = {
439444
+ .flags = CPUFREQ_STICKY | CPUFREQ_NEED_INITIAL_FREQ_CHECK |
440445
+ CPUFREQ_IS_COOLING_DEV,
@@ -446,6 +451,7 @@ Signed-off-by: Ansuel Smith <[email protected]>
446451
+ .online = cpufreq_online,
447452
+ .offline = cpufreq_offline,
448453
+ .name = "krait-cpufreq",
454+
+ .attr = krait_cpufreq_attr,
449455
+ .suspend = cpufreq_generic_suspend,
450456
+};
451457
+

0 commit comments

Comments
 (0)