Compare commits

...

1 Commits

Author SHA1 Message Date
Marek Kwaczynski
fe3a64d475 iwinfo.uc: Fix access to undefined htmode object
iwinfo command failed due to undefined htmode object

Fixes: WIFI-14666

Signed-off-by: Marek Kwaczynski <marek@shasta.cloud>
(cherry picked from commit 7ee4a766e73676ce14c6013e032c55566b42196c)
2025-06-06 17:15:08 +02:00

View File

@@ -397,7 +397,7 @@ export function info(name) {
mode: data.mode,
channel: format_channel(data.wiphy_freq),
freq: format_frequency(data.wiphy_freq),
htmode: data.radio.htmode,
htmode: data?.radio?.htmode,
center_freq1: format_channel(data.center_freq1) || 'unknown',
center_freq2: format_channel(data.center_freq2) || 'unknown',
txpower: data.wiphy_tx_power_level / 100,