ImmortalWrt/package
Alexandru Gagniuc cee9fcdb73 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]
2024-04-07 11:12:43 +02:00
..
base-files treewide: use APK compatible version schema 2024-03-22 22:14:22 +01:00
boot apm821xx: prepare WNDR4700 for 6.6 - add preliminary u-boot-env access 2024-04-05 09:26:26 +02:00
devel perf: fix build on linux 6.6 2024-03-29 15:41:16 +01:00
firmware treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
kernel treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
libs treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
network wifi-scripts: fix creation of IBSS in legacy (non-HT) mode 2024-04-07 11:12:43 +02:00
system treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
utils treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
Makefile build: do not depend on $(STAGING_DIR)/.prepared when in SDK 2024-03-04 23:45:15 +01:00