From: Felix Fietkau Date: Fri, 10 Jul 2026 10:23:50 +0000 (+0200) Subject: hostapd: ucode: support 320 MHz in freq_info X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5c316b0ab35bc47fa267958206e0c2f746b7b40;p=thirdparty%2Fopenwrt.git hostapd: ucode: support 320 MHz in freq_info uc_wpa_freq_info() rejected any operating width above 160 MHz, returning null for EHT320 (width 3). Add the 320 MHz case; the existing segment-0 centre arithmetic (8 << width / 4 << width) extends correctly to width 3. Signed-off-by: Felix Fietkau --- diff --git a/package/network/services/hostapd/src/src/utils/ucode.c b/package/network/services/hostapd/src/src/utils/ucode.c index b5fdf6676c2..4eb50691fa1 100644 --- a/package/network/services/hostapd/src/src/utils/ucode.c +++ b/package/network/services/hostapd/src/src/utils/ucode.c @@ -139,6 +139,9 @@ uc_value_t *uc_wpa_freq_info(uc_vm_t *vm, size_t nargs) case 2: chanwidth = CONF_OPER_CHWIDTH_160MHZ; break; + case 3: + chanwidth = CONF_OPER_CHWIDTH_320MHZ; + break; default: return NULL; }