From a18d4e75a4323948ced7fdaf9e16fddb70f04e5a Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Mon, 28 Jul 2025 12:34:55 +0530 Subject: [PATCH 01/11] add he beamform(er/ee) options --- lnxrouter | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/lnxrouter b/lnxrouter index b9ae55f..0fc13ea 100755 --- a/lnxrouter +++ b/lnxrouter @@ -137,6 +137,9 @@ Options: segment. Use with '--he-ch-width' --he-seg1-ch Channel index of HE center frequency for secondary (second 80MHz) segment. Use with '--he-ch-width 3' + --he-su-bfe Enable HE Single User Beamformee support + --he-su-bfr Enable HE Single User Beamformer support + --he-mu-bfr Enable HE Multi User Beamformer support Instance managing: --daemon Run in background @@ -223,6 +226,9 @@ define_global_variables(){ HECHANNELWIDTH=0 HESEG0CHINDEX=0 HESEG1CHINDEX=0 + HESUBFE=0 + HESUBFR=0 + HEMUBFR=0 DRIVER=nl80211 NO_VIRT=0 # not use virtual interface COUNTRY= @@ -489,6 +495,21 @@ parse_user_options(){ HESEG1CHINDEX="$1" shift ;; + --he-su-bfe) + shift + HESUBFE=1 + shift + ;; + --he-su-bfr) + shift + HESUBFR=1 + shift + ;; + --he-mu-bfr) + shift + HEMUBFR=1 + shift + ;; --driver) shift DRIVER="$1" @@ -2014,7 +2035,17 @@ write_hostapd_conf() { echo "require_he=1" >> "$CONFDIR/hostapd.conf" fi + if [[ $HESUBFE -eq 1 ]]; then + echo "he_su_beamformee=1" >> "$CONFDIR/hostapd.conf" + fi + if [[ $HESUBFR -eq 1 ]]; then + echo "he_su_beamformer=1" >> "$CONFDIR/hostapd.conf" + fi + + if [[ $HEMUBFR -eq 1 ]]; then + echo "he_mu_beamformer=1" >> "$CONFDIR/hostapd.conf" + fi if [[ -n "$VHT_CAPAB" ]]; then echo "vht_capab=${VHT_CAPAB}" >> "$CONFDIR/hostapd.conf" From 13a1654b911c98b8c44eb27f619ce178ec32b1a7 Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Mon, 28 Jul 2025 15:52:30 +0530 Subject: [PATCH 02/11] added p2p twt and idle timeout, remove random spaces --- lnxrouter | 55 ++++++++++++++++++++++++++++++++----------------------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/lnxrouter b/lnxrouter index 0fc13ea..8716617 100755 --- a/lnxrouter +++ b/lnxrouter @@ -101,15 +101,16 @@ Options: (defaults to /etc/hostapd/hostapd.accept) --hostapd-debug 1 or 2. Passes -d or -dd to hostapd --isolate-clients Disable wifi communication between clients + --idle-timeout