Files
openwrt/package/network
Hideo Sumi e21a4ef958 wifi-scripts: silence iw antenna/distance failures like shell did
The shell mac80211.sh ran both of these with >/dev/null 2>&1:

	iw phy "$phy" set antenna $txantenna $rxantenna >/dev/null 2>&1
	iw phy "$phy" set distance "$distance" >/dev/null 2>&1

The ucode rewrite dropped the redirect, so on any driver without
->set_coverage_class every wifi up now logs

	netifd: radio0 (3302): command failed: Not supported (-95)

with no indication of which command failed. Neither return value is
checked, so the message is pure noise -- but it reads like wifi up
failed, and on ath12k/IPQ5332 it cost real debugging time before the
line was traced back to iw.c:616 rather than to the driver.

Restore the redirect. distance defaults to 0 and antenna to 0xffffffff,
so both calls run on every setup for every radio.

Signed-off-by: Hideo Sumi <hideo.sumi@mugops.com>
2026-09-03 11:38:19 +02:00
..