How to define priorities for wifi networks?

How to define priorities for wifi networks?

Postby alopez » Oct 6th, '13, 17:32

HI,

I have the problem that some times 2 known wifi networks are accessible at the same time. Is there a way to define priorities so that M3 connects to the preferred network when both are available?

Thanks.
User avatar
alopez
 
Posts: 65
Joined: Aug 17th, '13, 18:26
Location: France

Re: How to define priorities for wifi networks?

Postby doktor5000 » Oct 6th, '13, 17:52

Neither net_applet nor networkmanager currently support this, wicd seems to support this.

What you could try is play with the "priority" setting in /etc/wpa_supplicant.conf, which is used by net_applet to store credentials/keys.

For networkmanager, you may want to have a look at https://bugzilla.gnome.org/show_bug.cgi?id=609870
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to define priorities for wifi networks?

Postby alopez » Oct 6th, '13, 18:20

doktor5000 wrote:Neither net_applet nor networkmanager currently support this, wicd seems to support this.

What you could try is play with the "priority" setting in /etc/wpa_supplicant.conf, which is used by net_applet to store credentials/keys.


That was my first thought, but only one of my networks is present in that file. I guess it is because at some moment I stopped using net_applet and I probably created the second network after that. Should I move back to net_applet and disable NetworkManager?


doktor5000 wrote:For networkmanager, you may want to have a look at https://bugzilla.gnome.org/show_bug.cgi?id=609870


I think you must have mixed bug IDs as this one has nothing to do with the problem I mentioned but with captive portals (unless you have psychic powers as this is the next problem I will have to solve solve).
User avatar
alopez
 
Posts: 65
Joined: Aug 17th, '13, 18:26
Location: France

Re: How to define priorities for wifi networks?

Postby doktor5000 » Oct 6th, '13, 19:14

Well, what are you currently using to select networks? networkmanager? If that's the case, can't really help you with that. AFAIK networkmanager currently only supports hard-coded priorities:
http://www.arachnoid.com/linux/NetworkManager/ wrote:NM chooses a connection according to these general priorities (and assuming the user's connections are marked "autoconnect"):

Highest priority is given to a functioning wired connection.
If (1) is not available, then connection is made to a wireless AP that is defined or that has been connected to before.
If (2) is not available, then connection is made to any available wireless AP.
This is by no means the whole decision tree, and it will doubtless change over time.


For the bug, seems a copy&paste error. Check https://bugzilla.gnome.org/show_bug.cgi?id=635294 for the description, this was marked as a duplicate of the one I've wanted to link to: https://bugzilla.gnome.org/show_bug.cgi?id=580018
Also listed at the relevant Fedora page: https://fedoraproject.org/wiki/Tools/Ne ... ugzilla.29
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18052
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: How to define priorities for wifi networks?

Postby alopez » Oct 6th, '13, 19:49

I'm using NM to select networks. I'll guess I will give a second chance to net_applet to use wpa_supplicant's priorities...

Those bugs are exactly my situation. Thanks!
User avatar
alopez
 
Posts: 65
Joined: Aug 17th, '13, 18:26
Location: France


Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest

cron