# iw tools only output 'noise' from a dump that requires superuser and a background service to be running, which probably isn't, so a separate process is needed
# /proc/net/wireless displays noise level up to date, w/o requiring superuser
localproc_less=/proc/net/wireless
[[ -f $proc_less]]||return0
# this method using iw is over 10x faster than the network manager method in benchmarking
# it's possible some systems are still using 'wireless_tools' (iw's ancestor) but they are long deprecated anyway
localdevice="$(iw dev | grep 'Interface '| cut -d\ -f2)"||return0
# this method using iw is over 10x faster than the network manager method in benchmarking
# it's possible some systems are still using 'wireless_tools' (iw's ancestor) but they are long deprecated anyway
localdevice="$(cut -d\ -f2 <<<$(iw dev | grep Interface))"||return0
out="$(iw dev $device link)"||return0
# 'running' state guaranteed by 'device' and 'proc_less' var assignment