[PATCH] network-functions.pl: Improve wifi_get_link_quality