It is not dependent on the operating system but on the Simulator one is using. ns2 is a good simulator, open source, well documented and internationally accepted platform WSN simulation. It works on Linux and may take some time for people to get familiarized to it. However, one can develop new protocols and by modifying the ns2 source code, simulate the performance of the developed protocol using.
You can also try with a specific WSN module for Omnet++ such as Castalia (https://castalia.forge.nicta.com.au/index.php/en/) in which you can work with several protocols at different levels, MAC, routing, and diverse physical conditions. You can as well easily develop your own protocols.