Files
weicheng04 1655946120 luci-mod-network: fix uci.remove() deleting entire radio section on wifi join
In handleJoinConfirm(), when the scanned BSS has no VHT/HT info,
uci.remove('wireless', radioDev.getName(), 'htmode') is called
intending to remove only the htmode option. However, uci.remove()
only accepts (conf, sid) and silently ignores the third parameter,
causing the entire wifi-device section to be deleted from the
rpcd session delta.

This makes the radio disappear from the Wireless Overview page
until the session delta is cleared.

Fix by using uci.unset() which correctly handles three parameters
(conf, sid, opt) to remove a single option.

Signed-off-by: Weicheng Xiao <weicheng.xiao@outlook.com>
2026-04-10 15:51:11 +02:00
..
2025-12-31 18:37:15 +01:00