mtwifi-cfg: fix bssidnum sanity

This commit is contained in:
hanwckf 2023-12-03 23:22:54 +08:00
parent 517712ed6f
commit 11491e5005

View File

@ -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