From 28dfb852cc1a79992b86c851075b4c714563a8b9 Mon Sep 17 00:00:00 2001 From: Conrad Lara - KG6JEI Date: Thu, 11 Sep 2014 23:25:02 -0700 Subject: [PATCH] bugfix: fix wscan 'unknown' network handling Unknown networks are not quoted like known networks are. This caused a bug where the last network name may be incorrectly used in place of the words 'unknown' fixes: BBHN->ticket:58 --- files/usr/local/bin/wscan | 1 + 1 file changed, 1 insertion(+) diff --git a/files/usr/local/bin/wscan b/files/usr/local/bin/wscan index 596e8abd..51e11136 100755 --- a/files/usr/local/bin/wscan +++ b/files/usr/local/bin/wscan @@ -269,6 +269,7 @@ while(1) } if($line =~ /\bESSID: "(.*)"/) { $ssid = $1 } + if($line =~ /\bESSID: unknown/) { $ssid = "unknown" } if($line =~ /\bMode: (\S+)/) { $mode = $1 } if($line =~ /\bChannel: (\d+)/) { $chan = $1 } if($line =~ /\bSignal: ([\d-]+)/) { $signal = $1 }