Set Bandwidth question

Lately, I tried to read some signals with LimeSDR, but had some uncertainties about Bandwidth. When I use the setBandwidth function in code and set it to a value not equal to half sampling frequency is not really working.
My question is the following: if Bandwidth is not provided, will it always take fs/2 and if provided, is it usually works with a given value? Also, it will be great to know what exactly does setting BW do inside Lime.
I have LimeSDR USB.

Use the source Luke, use the source!
setBandwidth is to be found:
void SoapyLMS7::setBandwidth(const int direction, const size_t channel, const double bw) <=>
Which calls setBBLPF which is to to be found:
int SoapyLMS7::setBBLPF(bool direction, size_t channel, double bw) <=>
Which calls SetLPF which is to to be found:
int LMS7_Device::SetLPF(bool tx,unsigned chan, bool en, double bandwidth) <=>
Which calls GetLPFRange to find out the valid values for bandwidth,
if your bandwidth is too low, then the minimum is selected.
if your bandwidth is too high, then the maximum valid bandwidth is selected
Once a valid bandwidth is found then TuneRxFilter is called to set it
LMS7_Device::Range LMS7_Device::GetLPFRange(bool tx, unsigned chan) const <=>
For TX min bandwidth is: 5e6 Hz
For RX min bandwidth is: 1.4001e6 Hz

int LMS7002M::TuneRxFilter(float_type rx_lpf_freq_RF) <=>
This talks to the MCU and asks it to set the bandwidth:
mcuControl->SetParameter(MCU_BD::MCU_BW, rx_lpf_freq_RF)
Afterwards it reads the SPI registers from the LMS7002M, the ones that would have been updated by the actions of the MCU. So that the cached SPI resisters in the computers memory are synced with the state inside the the SDR hardware.

void MCU_BD::SetParameter(MCU_Parameter param, float value) <=>

The MCU talks over SPI to the LMS7002M chip and configures registers to do with bandwidth inside the chip, a document describing the SPI registers*** can be found:
LMS7002Mr2-SPIRegs-2-2r0.pdf @

There are a fixed number of bandwidths for the analogue lowpass filters inside the LMS7002M chip. See plots in sections 10.3,10.4,10.5,10.6 of the datasheet - at a guess hidden in the maths the filter size that is the nearest match to your required bandwidth will be selected

*** I always feel like that document is missing some registers.