openwrt/package/network/services/hostapd/files
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
..
common.uc wifi-scripts: fix fullmac phy detection 2024-02-09 12:20:48 +01:00
dhcp-get-server.sh hostapd: add support for specifying the FILS DHCP server 2021-12-10 11:33:49 +01:00
hostapd-basic.config hostapd: enable compilation of OCV and add build feature discovery 2022-07-03 20:25:38 +02:00
hostapd-full.config hostapd: enable radius server support 2023-03-07 10:24:05 +01:00
hostapd-mini.config hostapd: enable proxy-arp support for hostapd-full 2021-08-28 01:31:15 +02:00
hostapd.sh hostapd: fix 11r defaults when using WPA 2024-03-06 14:05:22 +01:00
hostapd.uc hostapd: do not trim trailing whitespace, except for newline 2023-10-31 13:30:11 +01:00
multicall.c packages: sort network related packages into package/network/ 2012-10-10 12:32:29 +00:00
radius.clients hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
radius.config hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
radius.init hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
radius.users hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wdev.uc wifi-scripts: fix creation of IBSS in legacy (non-HT) mode 2024-05-23 21:35:53 +02:00
wpa_supplicant-basic.config hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wpa_supplicant-full.config hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wpa_supplicant-mini.config hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wpa_supplicant-p2p.config hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wpa_supplicant.uc hostapd: use rtnl to set up interfaces 2023-11-08 12:47:46 +01:00
wpad_acl.json hostapd: backport from master, including ucode based reload support 2023-09-18 16:52:25 +02:00
wpad.init hostapd: enable coredumps 2022-12-16 14:32:47 +01:00
wpad.json hostapd: run as user 'network' if procd-ujail is installed 2021-01-14 00:52:50 +00:00
wps-hotplug.sh hostapd: add fallback for WPS on stations 2021-12-27 16:32:02 +00:00