const mode = { 'HT*': 'n', 'VHT*': 'ac', 'HE*': 'ax' };
let iface = ifaces[name];
let phy = board_data.wlan?.['phy' + iface.wiphy];
- if (!phy || !iface.radio.band)
+ if (!phy || !iface.radio?.band)
return '';
let htmodes = phy.info.bands[uc(iface.radio.band)].modes;
let list = [];
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,