Re: [PATCH] ramips: add support for Huasifei WS1208V2

2023-01-26 Thread Enrico Mioso




On Thu, 26 Jan 2023, Arınç ÜNAL wrote:


Date: Thu, 26 Jan 2023 20:40:15
From: Arınç ÜNAL 
To: Enrico Mioso 
Cc: openwrt-devel@lists.openwrt.org
Subject: Re: [PATCH] ramips: add support for Huasifei WS1208V2

On 26.01.2023 22:31, Enrico Mioso wrote:




On Thu, 26 Jan 2023, arinc9.u...@gmail.com wrote:


Date: Thu, 26 Jan 2023 19:35:27
From: arinc9.u...@gmail.com
To: openwrt-devel@lists.openwrt.org
Cc: Arınç ÜNAL 
Subject: [PATCH] ramips: add support for Huasifei WS1208V2

From: Arınç ÜNAL 

The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with 
a

Quectel RM520N-GL cellular modem which supports QMI and MBIM modes.

Specifications:
- MT7621AT, 256 MiB RAM, 16 MiB SPI Flash
- MT7603EN 2.4 GHz & MT7612EN 5 GHz WLAN
- Quectel RM520N-GL Cellular Modem
- 2 WLAN & 4 Cellular Antennas
- 5 Gigabit Ethernet Ports
- 1 USB 2.0 port
- 1 PCI-E Slot
- 1 M.2 slot
- 1 SIM card slot
- 1 SD card slot

Installation:
- Install sysupgrade image via ROOter OS.


Thanks a lot! Seems a nice device.
Does it offer any recovery mechanism? In case it does, would you mind 
adding the procedure description to this commit? Thanks!


No special recovery mechanism is there. It's the usual tftp recovery with 
U-Boot.




Thanks for the information. Maybe you can specify if the UART is needed and 
write in the commit a suitable command to recover the device (e.g.: via 
tftpboot if that's the right one).

Thanks again,

Enrico

Arınç
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] ramips: add support for Huasifei WS1208V2

2023-01-26 Thread Arınç ÜNAL

On 26.01.2023 22:31, Enrico Mioso wrote:




On Thu, 26 Jan 2023, arinc9.u...@gmail.com wrote:


Date: Thu, 26 Jan 2023 19:35:27
From: arinc9.u...@gmail.com
To: openwrt-devel@lists.openwrt.org
Cc: Arınç ÜNAL 
Subject: [PATCH] ramips: add support for Huasifei WS1208V2

From: Arınç ÜNAL 

The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports 
with a

Quectel RM520N-GL cellular modem which supports QMI and MBIM modes.

Specifications:
- MT7621AT, 256 MiB RAM, 16 MiB SPI Flash
- MT7603EN 2.4 GHz & MT7612EN 5 GHz WLAN
- Quectel RM520N-GL Cellular Modem
- 2 WLAN & 4 Cellular Antennas
- 5 Gigabit Ethernet Ports
- 1 USB 2.0 port
- 1 PCI-E Slot
- 1 M.2 slot
- 1 SIM card slot
- 1 SD card slot

Installation:
- Install sysupgrade image via ROOter OS.


Thanks a lot! Seems a nice device.
Does it offer any recovery mechanism? In case it does, would you mind 
adding the procedure description to this commit? Thanks!


No special recovery mechanism is there. It's the usual tftp recovery 
with U-Boot.


Arınç

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [PATCH] ramips: add support for Huasifei WS1208V2

2023-01-26 Thread Enrico Mioso




On Thu, 26 Jan 2023, arinc9.u...@gmail.com wrote:


Date: Thu, 26 Jan 2023 19:35:27
From: arinc9.u...@gmail.com
To: openwrt-devel@lists.openwrt.org
Cc: Arınç ÜNAL 
Subject: [PATCH] ramips: add support for Huasifei WS1208V2

From: Arınç ÜNAL 

The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with a
Quectel RM520N-GL cellular modem which supports QMI and MBIM modes.

Specifications:
- MT7621AT, 256 MiB RAM, 16 MiB SPI Flash
- MT7603EN 2.4 GHz & MT7612EN 5 GHz WLAN
- Quectel RM520N-GL Cellular Modem
- 2 WLAN & 4 Cellular Antennas
- 5 Gigabit Ethernet Ports
- 1 USB 2.0 port
- 1 PCI-E Slot
- 1 M.2 slot
- 1 SIM card slot
- 1 SD card slot

Installation:
- Install sysupgrade image via ROOter OS.


Thanks a lot! Seems a nice device.
Does it offer any recovery mechanism? In case it does, would you mind adding 
the procedure description to this commit? Thanks!

Enrico



Link: https://www.huasifei.com/a/Products/5G%20CPE/240.html
Signed-off-by: Arınç ÜNAL 
---
.../ramips/dts/mt7621_huasifei_ws1208v2.dts   | 187 ++
target/linux/ramips/image/mt7621.mk   |  12 ++
.../mt7621/base-files/etc/board.d/01_leds |   3 +
3 files changed, 202 insertions(+)
create mode 100644 target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts

diff --git a/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts 
b/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts
new file mode 100644
index 00..c69f05a0f4
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts
@@ -0,0 +1,187 @@
+#include "mt7621.dtsi"
+
+#include 
+#include 
+
+/ {
+   compatible = "huasifei,ws1208v2", "mediatek,mt7621-soc";
+   model = "Huasifei WS1208V2";
+
+   aliases {
+   led-boot = _status;
+   led-failsafe = _status;
+   led-running = _status;
+   led-upgrade = _status;
+   label-mac-device = 
+   };
+
+   chosen {
+   bootargs = "console=ttyS0,115200";
+   };
+
+   keys {
+   compatible = "gpio-keys";
+
+   button-reset {
+   label = "Reset";
+   gpios = < 18 GPIO_ACTIVE_LOW>;
+   linux,code = ;
+   };
+   };
+
+   leds {
+   compatible = "gpio-leds";
+
+   led_status: led-status {
+   label = "green:status";
+   gpios = < 12 GPIO_ACTIVE_LOW>;
+   };
+
+   led-cellular {
+   label = "green:cellular";
+   gpios = < 10 GPIO_ACTIVE_LOW>;
+   };
+
+   led-wlan5g {
+   label = "green:wlan5g";
+   gpios = < 14 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "phy1tpt";
+   };
+
+   led-wlan2g {
+   label = "green:wlan2g";
+   gpios = < 5 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "phy0tpt";
+   };
+
+   led-usb {
+   label = "green:usb";
+   gpios = < 11 GPIO_ACTIVE_HIGH>;
+   trigger-sources = <_ehci_port1>;
+   linux,default-trigger = "usbport";
+   };
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+
+   flash@0 {
+   compatible = "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <1000>;
+
+   partitions {
+   compatible = "fixed-partitions";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   partition@0 {
+   label = "u-boot";
+   reg = <0x0 0x3>;
+   read-only;
+   };
+
+   partition@3 {
+   label = "u-boot-env";
+   reg = <0x3 0x1>;
+   read-only;
+   };
+
+   factory: partition@4 {
+   label = "factory";
+   reg = <0x4 0x1>;
+   read-only;
+   };
+
+   firmware: partition@5 {
+   compatible = "denx,uimage";
+   reg = <0x5 0xfb>;
+   label = "firmware";
+   };
+   };
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   wifi@0,0 {
+   compatible = "pci14c3,7603";
+   reg = <0x 0 0 0 0>;
+   mediatek,mtd-eeprom = < 0x>;
+   };
+};
+
+ {
+   wifi@0,0 {
+   compatible = "pci14c3,7662";
+   reg = <0x 0 0 0 0>;
+   

[PATCH] ramips: mt7621-dts: fix compatible string for mt7530 on TP-Link EAP615-Wall

2023-01-26 Thread arinc9 . unal
From: Arınç ÜNAL 

The correct compatible string for the multi-chip module MT7530 switch in
MT7621AT, MT7621DAT and MT7621ST SoCs is mediatek,mt7621. Remove the
property on TP-Link EAP615-Wall which will default to the said string.

Fixes: a1b8a4d7b3ff ("ramips: support TP-Link EAP615-Wall")
Link: 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/net/dsa/mediatek,mt7530.yaml
Signed-off-by: Arınç ÜNAL 
---
 target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts 
b/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
index 594a9e7bb1..36809d48ff 100644
--- a/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
+++ b/target/linux/ramips/dts/mt7621_tplink_eap615-wall-v1.dts
@@ -173,7 +173,6 @@
 };
 
  {
-   compatible = "mediatek,mt7530";
ports {
port@1 {
status = "okay";
-- 
2.37.2


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] ramips: add support for Huasifei WS1208V2

2023-01-26 Thread arinc9 . unal
From: Arınç ÜNAL 

The Huasifei WS1208V2 is an AC1200 router featuring 5 Ethernet ports with a
Quectel RM520N-GL cellular modem which supports QMI and MBIM modes.

Specifications:
- MT7621AT, 256 MiB RAM, 16 MiB SPI Flash
- MT7603EN 2.4 GHz & MT7612EN 5 GHz WLAN
- Quectel RM520N-GL Cellular Modem
- 2 WLAN & 4 Cellular Antennas
- 5 Gigabit Ethernet Ports
- 1 USB 2.0 port
- 1 PCI-E Slot
- 1 M.2 slot
- 1 SIM card slot
- 1 SD card slot

Installation:
- Install sysupgrade image via ROOter OS.

Link: https://www.huasifei.com/a/Products/5G%20CPE/240.html
Signed-off-by: Arınç ÜNAL 
---
 .../ramips/dts/mt7621_huasifei_ws1208v2.dts   | 187 ++
 target/linux/ramips/image/mt7621.mk   |  12 ++
 .../mt7621/base-files/etc/board.d/01_leds |   3 +
 3 files changed, 202 insertions(+)
 create mode 100644 target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts

diff --git a/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts 
b/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts
new file mode 100644
index 00..c69f05a0f4
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_huasifei_ws1208v2.dts
@@ -0,0 +1,187 @@
+#include "mt7621.dtsi"
+
+#include 
+#include 
+
+/ {
+   compatible = "huasifei,ws1208v2", "mediatek,mt7621-soc";
+   model = "Huasifei WS1208V2";
+
+   aliases {
+   led-boot = _status;
+   led-failsafe = _status;
+   led-running = _status;
+   led-upgrade = _status;
+   label-mac-device = 
+   };
+
+   chosen {
+   bootargs = "console=ttyS0,115200";
+   };
+
+   keys {
+   compatible = "gpio-keys";
+
+   button-reset {
+   label = "Reset";
+   gpios = < 18 GPIO_ACTIVE_LOW>;
+   linux,code = ;
+   };
+   };
+
+   leds {
+   compatible = "gpio-leds";
+
+   led_status: led-status {
+   label = "green:status";
+   gpios = < 12 GPIO_ACTIVE_LOW>;
+   };
+
+   led-cellular {
+   label = "green:cellular";
+   gpios = < 10 GPIO_ACTIVE_LOW>;
+   };
+
+   led-wlan5g {
+   label = "green:wlan5g";
+   gpios = < 14 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "phy1tpt";
+   };
+
+   led-wlan2g {
+   label = "green:wlan2g";
+   gpios = < 5 GPIO_ACTIVE_LOW>;
+   linux,default-trigger = "phy0tpt";
+   };
+
+   led-usb {
+   label = "green:usb";
+   gpios = < 11 GPIO_ACTIVE_HIGH>;
+   trigger-sources = <_ehci_port1>;
+   linux,default-trigger = "usbport";
+   };
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   status = "okay";
+
+   flash@0 {
+   compatible = "jedec,spi-nor";
+   reg = <0>;
+   spi-max-frequency = <1000>;
+
+   partitions {
+   compatible = "fixed-partitions";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   partition@0 {
+   label = "u-boot";
+   reg = <0x0 0x3>;
+   read-only;
+   };
+
+   partition@3 {
+   label = "u-boot-env";
+   reg = <0x3 0x1>;
+   read-only;
+   };
+
+   factory: partition@4 {
+   label = "factory";
+   reg = <0x4 0x1>;
+   read-only;
+   };
+
+   firmware: partition@5 {
+   compatible = "denx,uimage";
+   reg = <0x5 0xfb>;
+   label = "firmware";
+   };
+   };
+   };
+};
+
+ {
+   status = "okay";
+};
+
+ {
+   wifi@0,0 {
+   compatible = "pci14c3,7603";
+   reg = <0x 0 0 0 0>;
+   mediatek,mtd-eeprom = < 0x>;
+   };
+};
+
+ {
+   wifi@0,0 {
+   compatible = "pci14c3,7662";
+   reg = <0x 0 0 0 0>;
+   mediatek,mtd-eeprom = < 0x8000>;
+   ieee80211-freq-limit = <500 600>;
+
+   led {
+   led-sources = <2>;
+   };
+   };
+};
+
+ {
+   nvmem-cells = <_factory_e000>;
+   nvmem-cell-names = "mac-address";
+};
+
+ {
+   status = "okay";
+   label = "wan";
+   phy-handle = <>;
+
+   nvmem-cells = 

Re: [PATCH] mt7621: Initial Atel platform support

2023-01-26 Thread Robert Marko
On Thu, 26 Jan 2023 at 16:18, Peter Naulls  wrote:
>
>
> I'm expecting this to need to be tidied up based upon feedback, but here's the
> first try of support for the two mt7621 atel platforms I've been working on.
>
> I have a number of smaller changes to go with this, but these are the top 
> level
> pieces to get started that I want to get right first.

This needs to be sent by using git send email, but first you must use
git format-patch
to properly export the commit, just plain diff as attachment is not enough.

Regards,
Robert
>
> Signed-off-by: Peter Naulls 
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[PATCH] mt7621: Initial Atel platform support

2023-01-26 Thread Peter Naulls


I'm expecting this to need to be tidied up based upon feedback, but here's the 
first try of support for the two mt7621 atel platforms I've been working on.


I have a number of smaller changes to go with this, but these are the top level
pieces to get started that I want to get right first.

Signed-off-by: Peter Naulls 
diff --git a/target/linux/ramips/dts/mt7621_atel-ei.dts b/target/linux/ramips/dts/mt7621_atel-ei.dts
new file mode 100755
index 00..2dcbd7b932
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_atel-ei.dts
@@ -0,0 +1,177 @@
+/dts-v1/;
+
+#include "mt7621.dtsi"
+
+#include 
+#include 
+#include 
+
+
+/ {
+	compatible = "atel,ei", "atel,aw12", "mediatek,mt7621-soc";
+	model = "ATEL-EI";
+
+	aliases {
+		led-boot = _status;
+		led-failsafe = _status;
+		led-running  = _status;
+		led-upgrade  = _status;
+		label-mac-device = 
+	};
+
+	chosen {
+		bootargs = "console=ttyS0,57600";
+	};
+
+	keys {
+		compatible = "gpio-keys-polled";
+		poll-interval = <20>;
+
+		reset {
+			label = "reset";
+			gpios = < 15 GPIO_ACTIVE_HIGH>;
+			linux,code = ;
+		};
+	};
+
+	leds {
+	compatible = "gpio-leds";
+		led_status: green {
+		label = "green";
+		gpios = < 5 GPIO_ACTIVE_HIGH>;
+default-state = "off";
+		};
+		blue {
+		label = "blue";
+	gpios = < 6 GPIO_ACTIVE_HIGH>;
+default-state = "on";
+		};
+		red {
+	label = "red";
+gpios = < 7 GPIO_ACTIVE_HIGH>;
+default-state = "off";
+		};
+	};
+	
+	gpio-export {
+		compatible = "gpio-export";
+		#size-cells = <0>;
+		
+		mcu-reset {
+			gpio-export,name = "mcu-reset";
+			gpio-export,output = <0>;
+			gpios = < 0 GPIO_ACTIVE_HIGH>;
+		};
+		
+		aw12-power {
+			gpio-export,name = "aw12-power";
+			gpio-export,output = <1>;
+			gpios = < 8 GPIO_ACTIVE_HIGH>;
+		};
+		
+mcu-download {
+			gpio-export,name = "mcu-download";
+			gpio-export,output = <0>;
+			gpios = < 28 GPIO_ACTIVE_HIGH>;
+		};
+		
+		mcu-watchdog {
+gpio-export,name = "mcu-watchdog";
+			gpio-export,output = <0>;
+			gpios = < 32 GPIO_ACTIVE_HIGH>;
+		};
+	};	
+};
+
+ {
+	status = "okay";
+};
+
+ {
+	status = "okay";
+};
+
+ {
+	status = "okay";
+
+	m25p80@0 {
+		compatible = "jedec,spi-nor";
+		reg = <0>;
+		spi-max-frequency = <1000>;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition@0 {
+label = "u-boot";
+reg = <0x0 0x3>;
+read-only;
+			};
+
+			partition@3 {
+label = "u-boot-env";
+reg = <0x3 0x1>;
+			};
+
+			factory: partition@4 {
+label = "factory";
+reg = <0x4 0x1>;
+read-only;
+			};
+
+			firmware: partition@5 {
+compatible = "openwrt,uimage", "denx,uimage";
+reg = <0x5 0x1fa>;
+label = "firmware";
+			};
+			
+			manufacture: partition@0x1ff {
+reg = <0x1ff 0x1>;
+label = "manufacture";
+read-only;
+			};
+		};
+	};
+};
+
+
+ {
+	pinctrl-0 = <_pins>, <_pins>;
+};
+
+ {
+	nvmem-cells = <_factory_0028>;
+	nvmem-cell-names = "mac-address";
+};
+
+ {
+	ports {
+		port@0 {
+			status = "okay";
+			label = "lan1";
+		};
+	};
+};
+
+ {
+	compatible = "nvmem-cells";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	macaddr_factory_0028: macaddr@0028 {
+		reg = <0x0028 0x6>;
+	};
+};
+
+_default {
+	gpio {
+		groups = "wdt", "jtag", "rgmii2";
+		function = "gpio";
+	};
+};
+
+
+
+
diff --git a/target/linux/ramips/dts/mt7621_atel-fi.dts b/target/linux/ramips/dts/mt7621_atel-fi.dts
new file mode 100755
index 00..b49cb727ed
--- /dev/null
+++ b/target/linux/ramips/dts/mt7621_atel-fi.dts
@@ -0,0 +1,423 @@
+/dts-v1/;
+
+#include "mt7621.dtsi"
+
+#include 
+#include 
+#include 
+
+
+/ {
+	compatible = "atel,fi", "mediatek,mt7621-soc";
+	model = "ATEL-FI";
+
+	aliases {
+		led-boot = _status;
+		led-failsafe = _status;
+		led-running	 = _status;
+		led-upgrade  = _status;
+		label-mac-device = 
+	};
+
+	chosen {
+		bootargs = "console=ttyS0,57600";
+	};
+
+	keys {
+		compatible = "gpio-keys-polled";
+		poll-interval = <20>;
+
+		reset {
+			label = "reset";
+			gpios = < 15 GPIO_ACTIVE_HIGH>;
+			linux,code = ;
+		};
+	};
+
+	leds {
+		compatible = "gpio-leds";
+		
+		led_status: green { 
+			label = "green";
+			gpios = < 24 GPIO_ACTIVE_HIGH>;  
+			default-state = "off";
+		};
+		
+		blue {
+			label = "blue";
+			gpios = < 23 GPIO_ACTIVE_HIGH>; 
+			default-state = "on";
+		};
+
+		signal1_red {
+label = "signal1_red";
+gpios = < 13 GPIO_ACTIVE_HIGH>;
+default-state = "off";
+};
+
+		signal1_green {
+			label = "signal1_green";
+gpios = < 14 GPIO_ACTIVE_HIGH>;
+default-state = "off";
+};  
+
+signal1_blue {
+			label = "signal1_blue";
+gpios = < 16 GPIO_ACTIVE_HIGH>;
+default-state = "off";
+};  
+
+signal2_red {
+  

[PATCH] hostapd: add option to ignore data frames from unknown stations

2023-01-26 Thread Raphaël Mélotte
Also refresh patches.

Upstream hostapd status:
https://patchwork.ozlabs.org/project/hostap/patch/20230126091539.2325752-1-raphael.melo...@mind.be/

Signed-off-by: Raphaël Mélotte 
---
 ...-ignore-data-frames-from-unknown-sta.patch | 72 +++
 .../hostapd/patches/700-wifi-reload.patch |  2 +-
 .../patches/720-iface_max_num_sta.patch   |  2 +-
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 
package/network/services/hostapd/patches/630-add-ignore-data-frames-from-unknown-sta.patch

diff --git 
a/package/network/services/hostapd/patches/630-add-ignore-data-frames-from-unknown-sta.patch
 
b/package/network/services/hostapd/patches/630-add-ignore-data-frames-from-unknown-sta.patch
new file mode 100644
index 00..931c080a41
--- /dev/null
+++ 
b/package/network/services/hostapd/patches/630-add-ignore-data-frames-from-unknown-sta.patch
@@ -0,0 +1,72 @@
+From cb949726fc6194c608027f2556c00b262c6b8b34 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Rapha=C3=ABl=20M=C3=A9lotte?= 
+Date: Tue, 24 Jan 2023 14:15:09 +0100
+Subject: [PATCH] hostapd: add option to ignore data frames from unknown
+ stations
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+When an external process manages hostapd, it can be needed to
+temporarily ignore class 3 frames from unknown stations until hostapd
+can be made aware of the station.
+
+Add a new option that, when set, makes hostapd ignore class 3 frames
+from unknown stations. When the option is not set, the behavior stays
+the same as before (i.e. unknown stations are deauthenticated).
+
+Signed-off-by: Raphaël Mélotte 
+---
+ hostapd/config_file.c | 2 ++
+ hostapd/hostapd.conf  | 5 +
+ src/ap/ap_config.h| 2 ++
+ src/ap/ieee802_11.c   | 2 +-
+ 4 files changed, 10 insertions(+), 1 deletion(-)
+
+--- a/hostapd/config_file.c
 b/hostapd/config_file.c
+@@ -4459,6 +4459,8 @@ static int hostapd_config_fill(struct ho
+   bss->broadcast_deauth = atoi(pos);
+   } else if (os_strcmp(buf, "notify_mgmt_frames") == 0) {
+   bss->notify_mgmt_frames = atoi(pos);
++  } else if (os_strcmp(buf, "no_deauth_unknown_sta") == 0) {
++  bss->no_deauth_unknown_sta = atoi(pos);
+ #ifdef CONFIG_DPP
+   } else if (os_strcmp(buf, "dpp_name") == 0) {
+   os_free(bss->dpp_name);
+--- a/hostapd/hostapd.conf
 b/hostapd/hostapd.conf
+@@ -591,6 +591,11 @@ wmm_ac_vo_acm=0
+ # Default: 0 (disabled)
+ #notify_mgmt_frames=0
+ 
++# Do not deauthenticate unknown stations.
++# This can be used to temporarily ignore data frames from unknown
++# stations, instead of deauthenticating them.
++#no_deauth_unknown_sta=0
++
+ # IEEE 802.11n related configuration 
##
+ 
+ # ieee80211n: Whether IEEE 802.11n (HT) is enabled
+--- a/src/ap/ap_config.h
 b/src/ap/ap_config.h
+@@ -750,6 +750,8 @@ struct hostapd_bss_config {
+ 
+   int broadcast_deauth;
+ 
++  int no_deauth_unknown_sta;
++
+   int notify_mgmt_frames;
+ 
+ #ifdef CONFIG_DPP
+--- a/src/ap/ieee802_11.c
 b/src/ap/ieee802_11.c
+@@ -6964,7 +6964,7 @@ void ieee802_11_rx_from_unknown(struct h
+   hostapd_drv_sta_disassoc(
+   hapd, src,
+   WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
+-  else
++  else if (!hapd->conf->no_deauth_unknown_sta)
+   hostapd_drv_sta_deauth(
+   hapd, src,
+   WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA);
diff --git a/package/network/services/hostapd/patches/700-wifi-reload.patch 
b/package/network/services/hostapd/patches/700-wifi-reload.patch
index 174127df6e..28916dca7e 100644
--- a/package/network/services/hostapd/patches/700-wifi-reload.patch
+++ b/package/network/services/hostapd/patches/700-wifi-reload.patch
@@ -47,7 +47,7 @@
enum hostapd_logger_level logger_syslog_level, logger_stdout_level;
  
unsigned int logger_syslog; /* module bitfield */
-@@ -969,6 +971,7 @@ struct eht_phy_capabilities_info {
+@@ -971,6 +973,7 @@ struct eht_phy_capabilities_info {
  struct hostapd_config {
struct hostapd_bss_config **bss, *last_bss;
size_t num_bss;
diff --git 
a/package/network/services/hostapd/patches/720-iface_max_num_sta.patch 
b/package/network/services/hostapd/patches/720-iface_max_num_sta.patch
index ed76d22dd0..e5d91700af 100644
--- a/package/network/services/hostapd/patches/720-iface_max_num_sta.patch
+++ b/package/network/services/hostapd/patches/720-iface_max_num_sta.patch
@@ -71,7 +71,7 @@
   " since no room for additional STA",
 --- a/src/ap/ap_config.h
 +++ b/src/ap/ap_config.h
-@@ -1010,6 +1010,8 @@ struct hostapd_config {
+@@ -1012,6 +1012,8 @@ struct hostapd_config {
unsigned int track_sta_max_num;
unsigned int track_sta_max_age;
  
-- 
2.38.1


___
openwrt-devel mailing list