From 1655946120a4b7f7280a9e5f1f2ecbd2f4c35e45 Mon Sep 17 00:00:00 2001 From: weicheng04 Date: Fri, 10 Apr 2026 16:46:05 +0800 Subject: [PATCH] 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 --- .../htdocs/luci-static/resources/view/network/wireless.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js index 12ee36168a..36c88b4533 100644 --- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js +++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/wireless.js @@ -2359,7 +2359,7 @@ return view.extend({ uci.set('wireless', radioDev.getName(), 'htmode', 'HT'+w); } else { - uci.remove('wireless', radioDev.getName(), 'htmode'); + uci.unset('wireless', radioDev.getName(), 'htmode'); } uci.set('wireless', radioDev.getName(), 'channel', bss.channel);