RSSI LED script for AP WDS in 5.1

Anyone has a working example for LED signal indication on AP WDS configuration?
I just can’t seem to make it work with the examples I found on the wiki.

This is how I’m trying

:global if-snr [ /interface wireless registration-table get [/interface wireless registration-table find] signal-to-noise ]
  :if (($if-snr > 0) && ($if-snr <= 15 )) do={:led led1=yes;}
  :if (($if-snr > 15) && ($if-snr <= 25 )) do={:led led3=yes;}
  :if (($if-snr > 25) && ($if-snr <= 35 )) do={:led led4=yes;}
  :if ($if-snr > 35 ) do={:led led5=yes;}

This doesn’t work at all. Any ideas?

Thanx

This script is not going to work if you have more than one registration table entry.

It is a point to point link so there is only one registration.

Thanx

ckeck this value if-snr, maybe is empty