What you also need to do is make sure your DOS machines can't get through to or be accessed by the internet.
I don't maintain DOS systems any more that can actually interact with the internet. ie: They don't have TCP (or any other routable protocol), meaning that no data from/to them over the LAN can get through the gateway to the internet.
With WiFi, it's likely that you are going to be using a TCP ... and the most safe way to "protect" them is indeed to put them on their own WiFi LAN which does NOT have a connection to the internet.
... but ... that also means your retro systems can't access your modern systems via network locally.
Many modern routers have options to limit specific ports from access to the gateway, which effectively puts them on their own "internet free" network which happens to also have local access to your modern systems (which can still access the internet btw). You just have to be VERY careful when setting it up to make sure you "get it right".
The fact that "modern" systems don't seem to understand LAN<>INTERNET either and that "modern" networking seems to be only all about "internet"t protocols, does make it challenging to connect to them and block internet at the same time. Blocking their ports from WAN access in the router is one way, another (but less flexible option) is to use some sort of VM on the modern system which can use a non-IP protocol to communicate with the retro systems so they don't have to have an IP protocol on them. This is what I do most often:
eg: I don't need/want internet and general networking on my DOS systems. I use DDLINK which is a network file transfer tool (that uses it's own proprietary non-IP protocol), which I run directly on the DOS systems, and within DosBox on the "modern" systems (this supports networking as if it were an independent system, but also allows for direct program access to read/write files and directories on the host).
--
Agreed that older WiFi is much less secure, and hackers nearby may be able to connect via WiFi and access your network, which is an even better reason to have the retro systems on their own "insulated" WiFi router.
and ... given the overwhelming thinking that "networking" is IP ... I strongly doubt that hackers would bother trying the very rare cases of non-routable network protocols (and their chances of "figuring out" a proprietary protocol would be virtually impossible - and definitely not worth their time).
For all these reasons ... I really recommend NOT connecting retro systems over WiFi - even if you have a setup which would work!
https://dunfield.themindfactory.com ; "Daves Old Computers" ; SW dev addict best known:
ImageDisk: rd/wr ANY floppy PChw can ; Micro-C: compiler for DOS+ManySmallCPU ; DDLINK: simple/small filetransfer(w/o netSW)via Lan/Lpt/Com