aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.capsman
diff options
context:
space:
mode:
Diffstat (limited to 'collect-wireless-mac.capsman')
-rw-r--r--collect-wireless-mac.capsman10
1 files changed, 2 insertions, 8 deletions
diff --git a/collect-wireless-mac.capsman b/collect-wireless-mac.capsman
index f6fabf3..6b1ad49 100644
--- a/collect-wireless-mac.capsman
+++ b/collect-wireless-mac.capsman
@@ -1,4 +1,4 @@
-# RouterOS script: collect-wireless-mac
+# RouterOS script: collect-wireless-mac.capsman
# Copyright (c) 2013-2018 Christian Hesse <mail@eworm.de>
#
# collect wireless mac adresses in access list
@@ -33,13 +33,7 @@
}
:local regentry [ / caps-man registration-table find where mac-address=$mac ];
:local interface [ / caps-man registration-table get $regentry interface ];
- :local ssid;
- :if ("caps-man" = ("caps" . "-man")) do={
- :set ssid [ / caps-man registration-table get $regentry ssid ];
- } else={
- # keep two spaces here to protect against replace!
- :set ssid [ / interface wireless get [ find where name=$interface ] ssid ];
- }
+ :local ssid [ / caps-man registration-table get $regentry ssid ];
:local datetime ([ / system clock get date ] . " " . [ / system clock get time ]);
:local message ("unknown MAC address " . $mac . " (" . $hostname . ") first seen on " . \
$datetime . " connected to SSID " . $ssid . ", interface " . $interface);