There seem to be a SUBGRF_SetRxBoosted function in radio_driver.c but I can’t find that is is used. The default value for the register appear to be that rx gain is off.
Would I need to modify RAK-STM32-RUI BSP to enable rx gain?
RX gain control is not accessible in RUI3 functions/api. Even if you can directly modify it, you have to check first with STMicroelectronics team if this parameter can be controlled if you use STM32WL for LoRa/LoRaWAN. I am thinking that this parameter is only available on standard SubGHZ RF applications of STM32WL, not for LoRa (specially LoRaWAN).
It looks to me that changing the function “service_lora_p2p_recv” (and “OnTxDone”) in STM32WLE/component/service/lora/service_lora_p2p.c to call Radio.RxBoosted instead of Radio.Rx should set the register.
Haven’t done any test though and maybe I am missing something.