Fixes divide by zero error
Instead of essid uses mac-address of network

This is working better for placing where a lot of routers span the same