openwrt/package
Alexandru Gagniuc a6bb1df40b wifi-scripts: fix creation of IBSS in legacy (non-HT) mode
When an IBBS interface is configured for IBSS legacy mode, wdev.htmode
is empty. This is empty string results in an empty positional argument
to the "ibbs join" command, for example:

    iw dev phy0-ibss0 ibss join crymesh 2412 '' fixed-freq beacon-interval 100

This empty argument is interpreted as an invalid HT mode by 'iw',
causing the entire command to fail and print a "usage" message:

    daemon.notice netifd: radio0 (4527): Usage:    iw [options] \
        dev <devname> ibss join <SSID> <freq in MHz> ...

Although nobody will ever need more than 640K of IBSS, explicitly use
"NOHT" if an HT mode is not given. This fixes the problem.

Fixes: e56c5f7b27 ("hostapd: add ucode support, use ucode for the main ubus object")
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name> [extend to cover more cases]
(cherry picked from commit cee9fcdb73)
2024-05-23 21:35:53 +02:00
..
base-files OpenWrt v23.05.3: revert to branch defaults 2024-03-22 23:26:12 +01:00
boot Revert "uboot-mediatek: fix build on Mac OS X" 2024-04-27 06:53:23 +00:00
devel perf: opt-out of lto usage 2023-08-11 12:53:34 +02:00
firmware wireless-regdb: update to 2024.05.08 2024-05-19 16:20:43 +03:00
kernel mt76: fix mt7603 compilation 2024-05-18 14:58:39 +02:00
libs openssl: update to 3.0.13 2024-02-04 19:18:17 +01:00
network wifi-scripts: fix creation of IBSS in legacy (non-HT) mode 2024-05-23 21:35:53 +02:00
system procd: make mDNS TXT record parsing more solid 2024-04-29 23:30:04 +02:00
utils lua: fix CVE-2014-5461 2024-04-30 23:46:11 +02:00
Makefile build: do not depend on $(STAGING_DIR)/.prepared when in SDK 2024-03-04 23:59:24 +01:00