From: Matthias Kruk Date: Sat, 3 Apr 2021 04:15:00 +0000 (+0900) Subject: net/iface: Print each AP only once X-Git-Url: https://git.corax.cc/?a=commitdiff_plain;h=2ce2a2d83828631d952a5d1944d4197ccdce4f14;p=toolbox net/iface: Print each AP only once A bug in _net_iface_parse_iwlist() caused found access points to be printed multiple times. This commit fixes the bug, so that each access point is printed only once. --- diff --git a/include/net/iface.sh b/include/net/iface.sh index ef43792..fb7f07b 100644 --- a/include/net/iface.sh +++ b/include/net/iface.sh @@ -136,6 +136,7 @@ _net_iface_parse_iwlist() { if [ -n "$ssid" ] && [ -n "$essid" ] && [ -n "$strength" ]; then echo "$ssid $strength $essid" + ssid="" fi done }