AD9361 RSSI bandwidth

Hello,

I'm using fmcomms3 (AD9361) with a zynq demoboard running under linux.

I want to implement an RF scanner function to lock on signals which BW is 5MHz, and that average power is above a threshold.

1- If I configure the RF BW to 5MHz, is the returned RSSI equal to the average power of the channel?

2- I tune the LO every 500ms for scanning. I also implement an AGC. With this config, do you think that the returned RSSI will be precise?

3- is there a libad9361 function to call to return the RSSI, other than system call: /sys/bus/iio/devices/iio:device1> cat in_voltage0_rssi ?

Thanks for your help.

Best Regards,