Skip to content

Commit

Permalink
[bot] AutoMerging: merge all upstream's changes:
Browse files Browse the repository at this point in the history
* https://github.com/coolsnowwolf/lede:
  kernel: bump 5.19 to 5.19.3 (coolsnowwolf#9983)
  hostapd: make LAR-friendly AP mode for AX200/AX210
  cleanup: Remove upstreamed patch (coolsnowwolf#9982)
  • Loading branch information
github-actions[bot] committed Aug 22, 2022
2 parents 1059ffd + a36ce80 commit 57fb305
Show file tree
Hide file tree
Showing 6 changed files with 136 additions and 110 deletions.
4 changes: 2 additions & 2 deletions include/kernel-5.19
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
LINUX_VERSION-5.19 = .2
LINUX_KERNEL_HASH-5.19.2 = 48e40a1f5501ec6c40e3c86d3d5319200b688f2d9360f72833084d74801fe63d
LINUX_VERSION-5.19 = .3
LINUX_KERNEL_HASH-5.19.3 = 513bd672066f5fb22e5739aae3eed60c75c4accc9ba365d1060c4e4225442721
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
diff -ru a/src/ap/hw_features.c b/src/ap/hw_features.c
--- a/src/ap/hw_features.c 2022-01-16 15:51:29.000000000 -0500
+++ b/src/ap/hw_features.c 2022-07-06 22:57:53.007315518 -0500
@@ -26,6 +26,17 @@
#include "beacon.h"
#include "hw_features.h"

+static void ieee80211n_do_nothing(struct hostapd_iface *iface)
+{
+ wpa_printf(MSG_DEBUG,
+ "Scan finished!");
+}
+
+static void ieee80211n_scan_channels_2g4(struct hostapd_iface *iface,
+ struct wpa_driver_scan_params *params);
+static void ieee80211n_scan_channels_5g(struct hostapd_iface *iface,
+ struct wpa_driver_scan_params *params);
+

void hostapd_free_hw_features(struct hostapd_hw_modes *hw_features,
size_t num_hw_features)
@@ -82,6 +93,33 @@

if (hostapd_drv_none(hapd))
return -1;
+
+
+ if (!iface->conf->noscan) {
+ // scan
+ struct wpa_driver_scan_params params;
+ int ret1;
+
+ os_memset(&params, 0, sizeof(params));
+ ieee80211n_scan_channels_5g(iface, &params);
+
+ ret1 = hostapd_driver_scan(iface->bss[0], &params);
+
+ if (ret1 == -EBUSY) {
+ wpa_printf(MSG_ERROR,
+ "Failed to request a scan of neighboring BSSes ret=%d (%s)!",
+ ret1, strerror(-ret1));
+ }
+
+ if (ret1 == 0) {
+ iface->scan_cb = ieee80211n_do_nothing;
+ wpa_printf(MSG_DEBUG,
+ "Sleeping...");
+ for (int i=0; i<110; i++) {
+ usleep(100000);
+ }
+ }
+ }
modes = hostapd_get_hw_feature_data(hapd, &num_modes, &flags,
&dfs_domain);
if (modes == NULL) {

@@ -308,7 +346,6 @@
sec_chan);
}

-
static void ieee80211n_check_scan(struct hostapd_iface *iface)
{
struct wpa_scan_results *scan_res;
@@ -517,8 +554,10 @@
int ret;

/* Check that HT40 is used and PRI / SEC switch is allowed */
- if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch)
+ if (!iface->conf->secondary_channel || iface->conf->no_pri_sec_switch || iface->conf->noscan) {
+ wpa_printf(MSG_DEBUG, "Not scanning due to noscan?");
return 0;
+ }

hostapd_set_state(iface, HAPD_IFACE_HT_SCAN);
wpa_printf(MSG_DEBUG, "Scan for neighboring BSSes prior to enabling "
@@ -916,7 +954,7 @@
if (!hostapd_is_usable_edmg(iface))
return 0;

- if (!iface->conf->secondary_channel)
+ if (!iface->conf->secondary_channel || iface->conf->noscan)
return 1;

if (hostapd_is_usable_chan(iface, iface->freq +

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ Signed-off-by: Heiko Stuebner <heiko@sntech.de>

--- a/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-rock-3a.dts
@@ -196,6 +196,10 @@
};
@@ -200,6 +200,10 @@
status = "okay";
};

+&hdmi_sound {
Expand All @@ -26,14 +26,14 @@ Signed-off-by: Heiko Stuebner <heiko@sntech.de>
&i2c0 {
status = "okay";

@@ -436,6 +440,10 @@
};
@@ -441,6 +445,10 @@
};

+&i2s0_8ch {
&i2s0_8ch {
+ status = "okay";
+};
+
&i2s1_8ch {
rockchip,trcm-sync-tx-only;
+&i2s0_8ch {
status = "okay";
};

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
From efaa0a55ce429107697f641921336cc51518693a Mon Sep 17 00:00:00 2001
From: Brian Norris <briannorris@chromium.org>
Date: Fri, 17 Jun 2022 17:26:52 -0700
Subject: [PATCH 39/51] drm/rockchip: vop: Don't crash for invalid
duplicate_state()

It's possible for users to try to duplicate the CRTC state even when the
state doesn't exist. drm_atomic_helper_crtc_duplicate_state() (and other
users of __drm_atomic_helper_crtc_duplicate_state()) already guard this
with a WARN_ON() instead of crashing, so let's do that here too.

Fixes: 4e257d9eee23 ("drm/rockchip: get rid of rockchip_drm_crtc_mode_config")
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220617172623.1.I62db228170b1559ada60b8d3e1637e1688424926@changeid
---
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +++
1 file changed, 3 insertions(+)

--- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c
@@ -1573,6 +1573,9 @@ static struct drm_crtc_state *vop_crtc_d
if (WARN_ON(!crtc->state))
return NULL;

+ if (WARN_ON(!crtc->state))
+ return NULL;
+
rockchip_state = kzalloc(sizeof(*rockchip_state), GFP_KERNEL);
if (!rockchip_state)
return NULL;
Original file line number Diff line number Diff line change
Expand Up @@ -110,39 +110,39 @@ Signed-off-by: Marty Jones <mj8263788@gmail.com>
status = "okay";
};

@@ -313,6 +358,7 @@
@@ -317,6 +362,7 @@

vdda0v9_image: LDO_REG1 {
regulator-name = "vdda0v9_image";
+ regulator-always-on;
regulator-min-microvolt = <900000>;
regulator-max-microvolt = <900000>;

@@ -349,6 +395,7 @@
@@ -353,6 +399,7 @@
vccio_acodec: LDO_REG4 {
regulator-name = "vccio_acodec";
regulator-always-on;
+ regulator-boot-on;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;

@@ -407,6 +454,7 @@
@@ -411,6 +458,7 @@

vcca1v8_image: LDO_REG9 {
regulator-name = "vcca1v8_image";
+ regulator-always-on;
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;

@@ -427,6 +475,7 @@
@@ -431,6 +479,7 @@

vcc3v3_sd: SWITCH_REG2 {
regulator-name = "vcc3v3_sd";
+ regulator-always-on;

regulator-state-mem {
regulator-off-in-suspend;
@@ -453,14 +502,30 @@
@@ -461,14 +510,30 @@
rgmii_phy1: ethernet-phy@0 {
compatible = "ethernet-phy-ieee802.3-c22";
reg = <0x0>;
Expand Down Expand Up @@ -178,7 +178,7 @@ Signed-off-by: Marty Jones <mj8263788@gmail.com>
&pinctrl {
ethernet {
eth_phy_rst: eth_phy_rst {
@@ -555,7 +620,7 @@
@@ -563,7 +628,7 @@
};

&usb_host0_xhci {
Expand All @@ -187,7 +187,7 @@ Signed-off-by: Marty Jones <mj8263788@gmail.com>
status = "okay";
};

@@ -581,7 +646,7 @@
@@ -589,7 +654,7 @@
};

&usb2phy0_otg {
Expand All @@ -196,7 +196,7 @@ Signed-off-by: Marty Jones <mj8263788@gmail.com>
status = "okay";
};

@@ -590,12 +655,10 @@
@@ -598,12 +663,10 @@
};

&usb2phy1_host {
Expand Down

0 comments on commit 57fb305

Please sign in to comment.