Infra red support

I was trying to play with a friend via Battle Maison in Pokémon Omega Ruby, but it appears it must be through infra red detection on 3ds, how do I do it? Is it possible ?

Thank you

Just connect to any public room with your friend, and look for passersby.
it should work insofar as you will be able to see him…