replaced deprecated ifconfig with 'iw' and 'ip' commands