openwrt-pf/package
Florian Maurer 0d747a8edb
wifi-scripts: ucode: only set antenna when config changes
mac80211's ieee80211_set_antenna() rejects calls with -EOPNOTSUPP once
the radio is started (local->started == true). The spurious failure
triggers a wpa_supplicant invocation in the error path, producing both
a "command failed: Not supported (-122)" message and (where wpa_supplicant
is not installed) a "/bin/sh: wpa_supplicant: not found" message in the
log on every wifi reconfiguration.

In this code path, reset_config() tears down all interfaces before the
antenna is touched, so local->started is false exactly when the antenna
config has changed. Skip the iw phy set antenna call otherwise, matching
the behaviour of mainline OpenWrt's bash mac80211.sh. The trade-off is
that we no longer re-assert the antenna mask on warm reconf if it was
cleared out-of-band (e.g. by a driver reload); in practice drivers do
not clear it mid-life.

Also split the antenna details out of the generic "Configuring '${phy}'
distance: ..." log line so it isn't claimed when the call was skipped.

Assisted-by: Claude:claude-sonnet-4-6
Signed-off-by: Florian Maurer <fmaurer@disroot.org>
Link: https://github.com/openwrt/openwrt/pull/23607
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
2026-06-29 09:26:56 +02:00
..
base-files base-files: derive DHCP DUID from device MAC address 2026-06-24 11:21:28 +02:00
boot rockchip: add support for FriendlyARM NanoPi R2S Plus 2026-06-29 09:13:34 +02:00
devel package: binutils: deduplicate ld 2026-04-18 19:34:21 +02:00
firmware linux-firmware: update 20260622 2026-06-28 14:49:57 +02:00
kernel lantiq: vrx518_ep: use module_pci_driver macro 2026-06-28 23:36:05 +02:00
libs elfutils: update to 0.195 2026-06-28 11:54:12 +02:00
network wifi-scripts: ucode: only set antenna when config changes 2026-06-29 09:26:56 +02:00
system ubus: update to Git HEAD (2026-06-28) 2026-06-28 16:48:20 +02:00
utils dtc: update to 1.8.1 2026-06-27 16:24:14 +02:00
Makefile build: add CycloneDX SBOM processing to apk 2026-05-17 12:21:09 +02:00