openwrt/package/network/config/wifi-scripts/files
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
..
etc/hotplug.d/ieee80211
lib mac80211: add missing config for third 160MHz width for 5GHz radio 2024-03-23 16:57:24 +01:00
sbin wifi-scripts: add script to add phy capabilities to board.json 2024-02-03 16:16:36 +01:00
usr/share/hostap wifi-scripts: fix creation of IBSS in legacy (non-HT) mode 2024-04-07 11:12:43 +02:00