From: James Prestwood <prestwoj@gmail.com>
To: Fabian Herb <fabian.herb@xtonomy.ai>,
"iwd@lists.linux.dev" <iwd@lists.linux.dev>
Subject: Re: How to Autoconnect Two WiFi Cards?
Date: Tue, 16 Jan 2024 09:15:13 -0800 [thread overview]
Message-ID: <e3e82ef7-941c-4dbb-9f1b-2d1579a12f74@gmail.com> (raw)
In-Reply-To: <DFBE16E1-468A-4292-9056-D7ED6AA0CB4E@xtonomy.ai>
Hi Fabian,
On 1/16/24 8:48 AM, Fabian Herb wrote:
> Dear iwd users and developers,
>
> I have a setup with two identical Intel AX210 WiFi cards. I want to connect each to a different SSID. Automatically if possible. But I can’t figure out a way to do that. Even if I connect each one to their network manually, the next time the signal is lost and a card reconnects, there is a good chance that it connects to the wrong network again.
>
> There is no option in the network configuration files to limit a network to a certain interface as far as I can see. I also tried running two instances of iwd, each with a different „—phys“ parameter and STATE_DIRECTORY variable. But the second instance fails with „Name request failed“ (something D-Bus-related?). I also can’t see a way to tell iwctl to which iwd instance to connect to. I also tried using NetworkManager to control iwd, but that worked even worse.
>
> So how can I force each WiFi card on a different SSID? One of the SSIDs is on 2.4 GHz and the other is on 5 GHz. Does that help somehow?
You can't easily force this in general. IWD doesn't have any
user-configurable network priority, it just picks the "best" network.
Nor does it have per-phy network profiles which is really what you want
here.
Without implementing a new feature with per-phy profiles about the only
thing you could do would be:
- Create a network namespace (e.g. ns0)
- Move one of the phys into ns0
- Start dbus in ns0
- Start IWD in ns0 (specifying a different state and/or config directory)
And you'd of course have to deal with the routing to actually get
traffic passed between namespaces and your host.
What exactly are you trying to accomplish by connecting to separate SSID's?
Thanks,
James
>
> Thanks in advance!
> Fabian
next prev parent reply other threads:[~2024-01-16 17:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-16 16:48 How to Autoconnect Two WiFi Cards? Fabian Herb
2024-01-16 17:15 ` James Prestwood [this message]
2024-01-18 11:51 ` Fabian Herb
2024-01-18 12:18 ` James Prestwood
2024-01-23 13:36 ` Fabian Herb
2024-01-23 14:15 ` James Prestwood
2024-01-23 16:15 ` Denis Kenzior
2024-01-24 12:34 ` Fabian Herb
2024-01-24 15:21 ` Denis Kenzior
2024-01-24 16:07 ` Fabian Herb
2024-01-24 16:18 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e3e82ef7-941c-4dbb-9f1b-2d1579a12f74@gmail.com \
--to=prestwoj@gmail.com \
--cc=fabian.herb@xtonomy.ai \
--cc=iwd@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox