From 2ce2a2d83828631d952a5d1944d4197ccdce4f14 Mon Sep 17 00:00:00 2001 From: Matthias Kruk Date: Sat, 3 Apr 2021 13:15:00 +0900 Subject: [PATCH] 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. --- include/net/iface.sh | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.47.3