# FX30S - How to set RAT using Legato function

**URL:** <https://forum.legato.io/t/fx30s-how-to-set-rat-using-legato-function/5283>\
**Category:** Legato Application Framework\
**Created:** [July 2, 2020, 2:17pm UTC](https://forum.legato.io/t/fx30s-how-to-set-rat-using-legato-function/5283 "2020-07-02T14:17:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.legato.io/u/eddie435)\
**Post date:** [July 2, 2020, 2:17pm UTC](https://forum.legato.io/t/fx30s-how-to-set-rat-using-legato-function/5283/1 "2020-07-02T14:17:19Z")

</div>

Greeting to all,

I have a simple question. I’m searching for the function (if it exist) in Legato to set the Radio Access Technology (RAT). I found the function le\_mrc\_GetRadioAccessTechInUse, but could not find one to set the RAT.

I know I can set the RAT with the “cm radio rat ###” command, but I want to be able to set it from within the Legato code.

Thanks in advance for any help!

Regards.

Eddie

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 2, 2020, 2:39pm UTC](https://forum.legato.io/t/fx30s-how-to-set-rat-using-legato-function/5283/2 "2020-07-02T14:39:36Z")

</div>

You can see the cm source code here.

> <https://github.com/legatoproject/legato-af/blob/master/apps/tools/cm/cm_mrc.c>

I guess you can use le\_mrc\_SetRatPreferences()

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.legato.io/u/eddie435)\
**Post date:** [July 2, 2020, 3:34pm UTC](https://forum.legato.io/t/fx30s-how-to-set-rat-using-legato-function/5283/3 "2020-07-02T15:34:39Z")

</div>

That’s exactly what I was searching for yesterday and couldn’t find it.  
Thank you!!!
