openwrt/package/network/config
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
..
firewall treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
firewall4 treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
gre gre: use alternative way to check if kernel support is enabled 2021-03-13 20:58:55 +01:00
ipip ipip: add 'nohostroute' option 2022-01-19 20:57:59 +01:00
ltq-adsl-app ltq-*-app: extend ubus metrics/statistics 2023-02-03 13:40:47 +01:00
ltq-vdsl-vr9-app treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00
ltq-vdsl-vr11-app ltq-*-app: extend ubus metrics/statistics 2023-02-03 13:40:47 +01:00
netifd treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
qos-scripts treewide: replace AUTORELEASE with real PKG_RELEASE 2023-05-18 11:35:29 +02:00
qosify treewide: update PKG_MIRROR_HASH to zst 2024-04-06 11:24:18 +02:00
soloscli soloscli: fix uci-defaults file 2020-06-11 01:49:24 +02:00
swconfig swconfig: fix memory leak when cli call swlib_get_attr() 2023-06-11 02:42:31 +02:00
vti vti: squash vtiv4 and vtiv6 packages into vti 2021-11-03 20:34:43 +01:00
vxlan vxlan: allow for dynamic source ip selection (FS#3426) 2020-12-31 11:53:21 +01:00
wifi-scripts wifi-scripts: fix creation of IBSS in legacy (non-HT) mode 2024-04-07 11:12:43 +02:00
xfrm xfrm: simplify the check for necessary kernel support 2021-03-13 20:59:22 +01:00