From 11491e5005e981572c7fca53316f2c08a5f8a89a Mon Sep 17 00:00:00 2001 From: hanwckf Date: Sun, 3 Dec 2023 23:22:54 +0800 Subject: [PATCH] mtwifi-cfg: fix bssidnum sanity --- package/mtk/applications/mtwifi-cfg/files/mtwifi-cfg/mtwifi_cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/mtk/applications/mtwifi-cfg/files/mtwifi-cfg/mtwifi_cfg b/package/mtk/applications/mtwifi-cfg/files/mtwifi-cfg/mtwifi_cfg index fe89ff72b3..f66f224857 100755 --- a/package/mtk/applications/mtwifi-cfg/files/mtwifi-cfg/mtwifi_cfg +++ b/package/mtk/applications/mtwifi-cfg/files/mtwifi-cfg/mtwifi_cfg @@ -234,7 +234,7 @@ function mtwifi_cfg_setup(argv) if vif_num == 0 then nixio.syslog("err", "mtwifi-cfg: not valid vif found!") return - elseif vif_num > defs.max_mbssid then + elseif bssid_num > defs.max_mbssid then nixio.syslog("err", "mtwifi-cfg: too many vifs!") return end