I've been working on a tool that lets a real, unmodified Switch or Switch 2 play local wireless with Ryujinx running on Linux. It's tested on a Steam Deck.
GitHub:** **https://github.com/pythagoras88/ldn-bridge
What it does
Ryujinx's ldn_mitm multiplayer mode talks over a LAN, and a Switch talks Nintendo's local wireless over the air, so normally they can't see each other. LDN Bridge uses a USB Wi-Fi adapter to speak Nintendo's over-the-air protocol (built on kinnay's ldn library) and connects it to Ryujinx. Only discovery and joining are translated; game traffic passes through unchanged.
Either side can host. By default the emulator hosts and the Switch joins. There's also a join mode for sessions the Switch hosts.
Turn-based searches work. In searches where both consoles look for each other, like Link Trade with a code, the Switch joins one of the emulator's hosting turns. It found a partner in about 14 seconds in testing.
One shortcut. "Play with LDN Bridge" asks who hosts, starts the bridge and Ryujinx, and stops the bridge when you exit. It works from Steam Deck Game Mode, with touch or trackpad.
One-step installer for the Steam Deck. The bridge resets the adapter itself before hosting and recovers after a disconnect.
Not tied to one game. Each game needs its own passphrase and ID in the config.
Tested: Pokémon Scarlet on a Steam Deck (Ryujinx 1.3.3) with Pokémon Violet on a Switch 2, through an Alfa AWUS036ACM (MT7612U) adapter:
Union Circle hosted by either console: trades, Tera Raids, Link Battles, encounters from the other version, picnics and Blueberry Quests
The Poké Portal Tera Raid search, hosted by either console
Poké Portal Link Trade with a code
You need a USB Wi-Fi adapter with monitor mode and injection. Only the MT7612U has been tested.
One direction at a time. Host mode can't see sessions the Switch hosts, so joining a raid the Switch hosts outside Union Circle needs join mode.
Not covered: native Switch 2 games, LAN mode (a separate wired system) and online play.
Only one setup has been tested. Other games, the original Switch, other adapters and other Linux computers are all untested. Each game also needs a one-time passphrase capture using a patched Ryujinx build (the patch is in the repo).
No Windows-native support yet. A WSL 2 path exists but is on hold.
Testing only, provided as is, no support.
Planned: longer-session testing, Pokémon Legends: Z-A, and letting the bridge switch between hosting and joining by itself.
GPLv3. Credit to kinnay's LDN library, ldn_mitm, Ryubing's multiplayer wiki and the Pretendo Nintendo wiki for the protocol work this builds on.