From: Michael Tremer Date: Wed, 8 Oct 2025 14:10:12 +0000 (+0100) Subject: hostapd: Remove filters now that we have the right flags X-Git-Tag: v2.29-core199~17^2~204 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28f9ea8606918fa54e2bd7baae36201be6170f40;p=ipfire-2.x.git hostapd: Remove filters now that we have the right flags These are no longer required on my system because the script no longer tries to enable features that are not supported. Signed-off-by: Michael Tremer --- diff --git a/src/initscripts/packages/hostapd b/src/initscripts/packages/hostapd index 16759f2d8..44d697aeb 100644 --- a/src/initscripts/packages/hostapd +++ b/src/initscripts/packages/hostapd @@ -47,13 +47,6 @@ declare -A HT_CAPS=( [0x8000]="[LSIG-TXOP-PROT]" ) -declare -A HT_CAPS_DRIVER_FILTERS=( - # ath1[012]k does not support Greenfield or Delayed Block Ack - [ath10k_pci]="$(( 0xffff & ~0x0008 & ~0x0100 ))" - [ath11k_pci]="$(( 0xffff & ~0x0008 & ~0x0100 ))" - [ath12k_pci]="$(( 0xffff & ~0x0008 & ~0x0100 ))" -) - declare -A VHT_CAPS=( # RX LDPC [0x00000010]="[RXLDPC]" @@ -81,11 +74,6 @@ declare -A VHT_CAPS=( [0x20000000]="[TX-ANTENNA-PATTERN]" ) -declare -A VHT_CAPS_DRIVER_FILTERS=( - # ath12k does not support Short GI for 160 MHz - [ath12k_pci]="$(( 0xffffffff & ~0x00000020 ))" -) - declare -A HE_MAC_CAPS=( # Nothing, yet ) @@ -172,18 +160,6 @@ write_config() { esac done <<<"$(iw phy "${phy}" info)" - # Fix the HT caps because some drivers don't support everything - # that the actual hardware supports (or have it turned off because of bugs). - if [ -n "${HT_CAPS_DRIVER_FILTERS[${driver}]}" ]; then - ht_flags="$(( ${ht_flags} & ${HT_CAPS_DRIVER_FILTERS[${driver}]} ))" - fi - - # Fix the VHT caps because some drivers don't support everything - # that the actual hardware supports (or have it turned off because of bugs). - if [ -n "${VHT_CAPS_DRIVER_FILTERS[${driver}]}" ]; then - vht_flags="$(( ${vht_flags} & ${VHT_CAPS_DRIVER_FILTERS[${driver}]} ))" - fi - # HT Capabilities for flag in ${!HT_CAPS[@]}; do if (( ${ht_flags} & ${flag} )); then