Updating Mavlink submodule for older PX4 version

Hi,

I am on a older version of PX4, and trying to get some fixes from never version by either cherry picking certain commits or manually changing the code.
Now, since on “my” version Mavlink is outdated, and one message doesn’t have a certain field that never code needs, my build fails.
I was searching how to update only Mavlink submodule, but didn’t really find anything that works.

If anyone knows how to do it, or do it in a better way than I am doing, I would appreciate some help.
Thanks!

To answer my own question:
After checking out current main, and building the firmware, and then checking back to my older branch, the build script suggested to update the submodules to the appropriate version.
I updated all until I got to Mavlink, and skipped that. Then staged the changes in git and just commited.
Seems to be working.