Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"So why don't you make like a tree, and get outta here." -- Biff in "Back to the Future"


computers / alt.os.linux.mageia / Re: wpa_supplicant and strongest BSSID

SubjectAuthor
* wpa_supplicant and strongest BSSIDWilliam Unruh
+* Re: wpa_supplicant and strongest BSSIDHerman Viaene
|+- Re: wpa_supplicant and strongest BSSIDWilliam Unruh
|`* Re: wpa_supplicant and strongest BSSIDDavid W. Hodgins
| `- Re: wpa_supplicant and strongest BSSIDWilliam Unruh
`* Re: wpa_supplicant and strongest BSSIDBit Twister
 `* Re: wpa_supplicant and strongest BSSIDWilliam Unruh
  `* Re: wpa_supplicant and strongest BSSIDTJ
   `* Re: wpa_supplicant and strongest BSSIDHerman Viaene
    `* Re: wpa_supplicant and strongest BSSIDTJ
     `- Re: wpa_supplicant and strongest BSSIDWilliam Unruh

1
wpa_supplicant and strongest BSSID

<t90g8k$thv$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4859&group=alt.os.linux.mageia#4859

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 01:39:32 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <t90g8k$thv$1@dont-email.me>
Injection-Date: Thu, 23 Jun 2022 01:39:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4fbe4697c0c4694950a78f5de9b00be3";
logging-data="30271"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19hjJGlBXzp5Z5BR4fM8GGV"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:G/JQ+EJYGV14BAB8PMXspXYST3s=
 by: William Unruh - Thu, 23 Jun 2022 01:39 UTC

wpa_supplicant has a bad bug. If there are many BSSID for a single SSID,
wpa_supplicant will simply grab the first BSSID it sees to connect to.
This can often (usualy) be a disaster, as it will grab a weak signal,
rather than the strongest signal, meaning lots of disconnections, flakey
wifi, etc. Does anyone know of a way to get it to grab the strongest
signal (Yes, I know what the strongest is may fluctuate, but it is
better to grab a signal that is now strong, rather than grab a very weak
BSSID)
The BSSID is the hadware address of a given wifi access point, while the
SSID is the name of the network that that access point is supposed to
connect to. Thus at a University there may be many BSSID all of which
connect to the eduroam network. Or in a Hotel, there may be many access
points all of which have the same name "Hilton Bombay" but being from
different floors of the hotel, will vary widely in strength.
wpa_supplicant just grabs the first one it sees, which could be from 3
floors away with a signal strength of "one bar" and completelydisappears
when someone on the intermediate floors takes a bath (the water
reflecting the signal). This is instead of using the signal from the AP
just outside the door of your room on your floor.

Re: wpa_supplicant and strongest BSSID

<t9189c$ut9$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4860&group=alt.os.linux.mageia#4860

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!aioe.org!SgQ40d8MXABfaP0aDwMSzw.user.46.165.242.75.POSTED!not-for-mail
From: her...@invalid.invalid (Herman Viaene)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 08:29:32 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t9189c$ut9$1@gioia.aioe.org>
References: <t90g8k$thv$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="31657"; posting-host="SgQ40d8MXABfaP0aDwMSzw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Herman Viaene - Thu, 23 Jun 2022 08:29 UTC

Op Thu, 23 Jun 2022 01:39:32 +0000, schreef William Unruh:

> wpa_supplicant has a bad bug. If there are many BSSID for a single SSID,
> wpa_supplicant will simply grab the first BSSID it sees to connect to.
> This can often (usualy) be a disaster, as it will grab a weak signal,
> rather than the strongest signal, meaning lots of disconnections, flakey
> wifi, etc. Does anyone know of a way to get it to grab the strongest
> signal (Yes, I know what the strongest is may fluctuate, but it is
> better to grab a signal that is now strong, rather than grab a very weak
> BSSID)
> The BSSID is the hadware address of a given wifi access point, while the
> SSID is the name of the network that that access point is supposed to
> connect to. Thus at a University there may be many BSSID all of which
> connect to the eduroam network. Or in a Hotel, there may be many access
> points all of which have the same name "Hilton Bombay" but being from
> different floors of the hotel, will vary widely in strength.
> wpa_supplicant just grabs the first one it sees, which could be from 3
> floors away with a signal strength of "one bar" and completelydisappears
> when someone on the intermediate floors takes a bath (the water
> reflecting the signal). This is instead of using the signal from the AP
> just outside the door of your room on your floor.

Any particular reason why you prefer the command i.s.o. using MCC -
Network Center???

Herman Viaene

Re: wpa_supplicant and strongest BSSID

<t91dvj$9p5$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4861&group=alt.os.linux.mageia#4861

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 10:06:43 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <t91dvj$9p5$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me> <t9189c$ut9$1@gioia.aioe.org>
Injection-Date: Thu, 23 Jun 2022 10:06:43 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4fbe4697c0c4694950a78f5de9b00be3";
logging-data="10021"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SkpmIQ15UwBzRF56cQ8Sr"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:63SpxM5I0rdm1LdcRJma7oC3kOM=
 by: William Unruh - Thu, 23 Jun 2022 10:06 UTC

On 2022-06-23, Herman Viaene <herman@invalid.invalid> wrote:
> Op Thu, 23 Jun 2022 01:39:32 +0000, schreef William Unruh:
>
>> wpa_supplicant has a bad bug. If there are many BSSID for a single SSID,
>> wpa_supplicant will simply grab the first BSSID it sees to connect to.
....
>
> Any particular reason why you prefer the command i.s.o. using MCC -
> Network Center???
>

I do use Network Center. It uses wpa_supplicant to do the actual
connection. And wpa_supplicant behaves badly. You can see that in the
Network Center window. The SSIDs are listed in order of signal strength.
If you have many BSSIDs for one SSID name, you will have many entries
for that name in the list. Click on the highest one, and hit connect.
Once it has connected it will highlight the one that was connected to
(ie the BSSID that was actually used). It is often/usually NOT the top
(strongest) It may well be the 5th or 7th one down the list (scroll down
the on list in the Network Center window list until you see the
highlighted one). That has a much weaker signal than the connected one.

For example I have 11 "eduroam" Access points listed in Network center
(Each a separate BSSID Access point).
I clicked on the top one (signal strenght 100) and clicked on Connect.
It connected to the 7th one down-- signal strength 47%.
Sometimes it does connect to the strongest, but rarely if there are a
lot of them.

Looking at wpa_supplicant debug output (edit
/etc/sysconfig/network-script/ifup-eth
and put a "-dd -t -f /var/log/wpa_supplicant" into the main wpa_supplicant
call [the command starts with
/usr/sbin/wpa_supplicant -B -i ${DEVICE} \
]

you can see wpa_supplicant going through the the various access points
it has found, but not in any particular order and certainly not in order
of signal strength. It seems to simply go in the random order of which
access points it has seen first.

And yes, this is using NetworkCenter (which uses the proograms in
/etc/sysconfig/network-script)

Re: wpa_supplicant and strongest BSSID

<slrntb8fop.13uc9.BitTwister@wb.home.test>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4862&group=alt.os.linux.mageia#4862

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: BitTwis...@mouse-potato.com (Bit Twister)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 05:23:16 -0500
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <slrntb8fop.13uc9.BitTwister@wb.home.test>
References: <t90g8k$thv$1@dont-email.me>
Injection-Info: reader02.eternal-september.org; posting-host="ec39807cec115b35db18ef20240ea889";
logging-data="16791"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19GNLLeNeLZdrii3wSxyOq+iK/MGrnLBmA="
User-Agent: slrn/pre1.0.4-6 (Linux)
Cancel-Lock: sha1:hXNWaoitClLjCRsuH37HGlHoGNU=
 by: Bit Twister - Thu, 23 Jun 2022 10:23 UTC

On Thu, 23 Jun 2022 01:39:32 -0000 (UTC), William Unruh wrote:
>
> wpa_supplicant has a bad bug.

Hope you opened a bug report so that the app maintainer knows about it,
not Mageia.

> If there are many BSSID for a single SSID,
> wpa_supplicant will simply grab the first BSSID it sees to connect to.
> This can often (usualy) be a disaster, as it will grab a weak signal,
> rather than the strongest signal, meaning lots of disconnections, flakey
> wifi, etc. Does anyone know of a way to get it to grab the strongest
> signal

All I can suggest is a wrapper you create to dump desired BSSID and strength,
sort, chose, create a configuration file, then launch the connection.

for example you can run, as root,
wpa_cli -i wlp2s0 scan_results | sort -n --key=4 --key=2 | cat -n > aa

You can then read aa and build a button string to use with xmessage to
provide a selection to pick from. Example:
# cat aa
1 f4:69:42:f2:52:0f 2412 -79 [WPA2-PSK-CCMP][ESS] SpectrumSetup-11
2 40:b0:34:de:47:1e 2437 -73 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-1D-HP OfficeJet 4650
3 40:b8:9a:da:b2:1e 2462 -71 [WPA2-PSK-CCMP][WPS][ESS] Ulisses-2G
4 e8:d2:ff:bc:17:e6 2412 -69 [WPA2-PSK-CCMP][ESS] SpectrumSetup-E0
5 c8:b4:22:61:06:79 2437 -65 [WPA2-PSK-CCMP][ESS] Houseofpain
6 80:cc:9c:ba:9d:0c 2452 -65 [WPA2-PSK-CCMP][WPS][ESS] NETGEAR04
7 bssid / frequency / signal level / flags / ssid

# xmessage -buttons 1,2,3,4,5,6,7 -file aa

You can use a case statement to parse $? to see/get user selection.
Ir user clicks button 5 $? will have 105

That tells the wrapper to use line 5 to build a configuration file and
launch the connection.

Re: wpa_supplicant and strongest BSSID

<t91nku$crt$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4863&group=alt.os.linux.mageia#4863

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 12:51:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 76
Message-ID: <t91nku$crt$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me>
<slrntb8fop.13uc9.BitTwister@wb.home.test>
Injection-Date: Thu, 23 Jun 2022 12:51:42 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="4fbe4697c0c4694950a78f5de9b00be3";
logging-data="13181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ZfKLCebKYEgia/cJJpAb1"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:smA8xrRgWatDf9TZmb+LU3OFjYw=
 by: William Unruh - Thu, 23 Jun 2022 12:51 UTC

On 2022-06-23, Bit Twister <BitTwister@mouse-potato.com> wrote:
> On Thu, 23 Jun 2022 01:39:32 -0000 (UTC), William Unruh wrote:
>>
>> wpa_supplicant has a bad bug.
>
> Hope you opened a bug report so that the app maintainer knows about it,
> not Mageia.
>
>> If there are many BSSID for a single SSID,
>> wpa_supplicant will simply grab the first BSSID it sees to connect to.
>> This can often (usualy) be a disaster, as it will grab a weak signal,
>> rather than the strongest signal, meaning lots of disconnections, flakey
>> wifi, etc. Does anyone know of a way to get it to grab the strongest
>> signal
>
> All I can suggest is a wrapper you create to dump desired BSSID and strength,
> sort, chose, create a configuration file, then launch the connection.

I like Network Center. I tried Network Manager but both found it clunky
and not working sometimes and found that when things went wrong it was
really hard to figure out why.

>
> for example you can run, as root,
> wpa_cli -i wlp2s0 scan_results | sort -n --key=4 --key=2 | cat -n > aa
>
> You can then read aa and build a button string to use with xmessage to
> provide a selection to pick from. Example:
> # cat aa
> 1 f4:69:42:f2:52:0f 2412 -79 [WPA2-PSK-CCMP][ESS] SpectrumSetup-11
> 2 40:b0:34:de:47:1e 2437 -73 [WPA2-PSK-CCMP][WPS][ESS] DIRECT-1D-HP OfficeJet 4650
> 3 40:b8:9a:da:b2:1e 2462 -71 [WPA2-PSK-CCMP][WPS][ESS] Ulisses-2G
> 4 e8:d2:ff:bc:17:e6 2412 -69 [WPA2-PSK-CCMP][ESS] SpectrumSetup-E0
> 5 c8:b4:22:61:06:79 2437 -65 [WPA2-PSK-CCMP][ESS] Houseofpain
> 6 80:cc:9c:ba:9d:0c 2452 -65 [WPA2-PSK-CCMP][WPS][ESS] NETGEAR04
> 7 bssid / frequency / signal level / flags / ssid
>
> # xmessage -buttons 1,2,3,4,5,6,7 -file aa
>
> You can use a case statement to parse $? to see/get user selection.
> Ir user clicks button 5 $? will have 105
>
> That tells the wrapper to use line 5 to build a configuration file and
> launch the connection.
>

Another bug is that Network Center does not use wpa_cli as user, since
it onlyworks for root, and iwlist has the really really annoying but
that if there are too may access points(BSSID) then it reports nothing.
So, either Network center needs to be set up to be suid root (probably
not safe at the moment and I have not tried to see if that works) or it
needs to run wpa_cli always and if there are 1000 access points either
list them or pick the 50 strongest ones and report tthem in
networkcenter.

At present Network center simply does nothing if there are too many
BSSIDs.

The problem also is that if you hand wpa_supplicant an name (SSID) it
will go through that "pick a random one" process (ie a raondom BSSID
that has the right name).
One can tell wpa_supplicant to pick one BSSID to assocate with the SSID,
but what happens if for some reason that one does not work.
wpa_supplicant then blacklists it, and I have no idea what happens if
the blacklisted one is the selected one.

I really do not want to have to rewrite NetworkCenter on my own. That is
what distributions are for, so one competent person can do the work that
A million incompetent ones can use.

>
>
>

Re: wpa_supplicant and strongest BSSID

<op.1n79djdaa3w0dxdave@hodgins.homeip.net>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4864&group=alt.os.linux.mageia#4864

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 13:54:45 -0400
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <op.1n79djdaa3w0dxdave@hodgins.homeip.net>
References: <t90g8k$thv$1@dont-email.me> <t9189c$ut9$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="f7cbcf566c96eb6948ec22b24eeef6b0";
logging-data="3660"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Yj2SGNQFx2f5S4RpUYWKI06D/h+zBV98="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:OUfC8BSGufjCQpjApuj57RsF+TQ=
 by: David W. Hodgins - Thu, 23 Jun 2022 17:54 UTC

On Thu, 23 Jun 2022 04:29:32 -0400, Herman Viaene <herman@invalid.invalid> wrote:

> Op Thu, 23 Jun 2022 01:39:32 +0000, schreef William Unruh:
>
>> wpa_supplicant has a bad bug. If there are many BSSID for a single SSID,
>> wpa_supplicant will simply grab the first BSSID it sees to connect to.
>> This can often (usualy) be a disaster, as it will grab a weak signal,
>> rather than the strongest signal, meaning lots of disconnections, flakey
>> wifi, etc. Does anyone know of a way to get it to grab the strongest
>> signal (Yes, I know what the strongest is may fluctuate, but it is
>> better to grab a signal that is now strong, rather than grab a very weak
>> BSSID)
>> The BSSID is the hadware address of a given wifi access point, while the
>> SSID is the name of the network that that access point is supposed to
>> connect to. Thus at a University there may be many BSSID all of which
>> connect to the eduroam network. Or in a Hotel, there may be many access
>> points all of which have the same name "Hilton Bombay" but being from
>> different floors of the hotel, will vary widely in strength.
>> wpa_supplicant just grabs the first one it sees, which could be from 3
>> floors away with a signal strength of "one bar" and completelydisappears
>> when someone on the intermediate floors takes a bath (the water
>> reflecting the signal). This is instead of using the signal from the AP
>> just outside the door of your room on your floor.
>
> Any particular reason why you prefer the command i.s.o. using MCC -
> Network Center???

The command is used by drakxnet. The bug has been reported
https://bugs.mageia.org/show_bug.cgi?id=23453
but after almost 4 years, no change.

Regards, Dave Hodgins

Re: wpa_supplicant and strongest BSSID

<t92v2u$u2q$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4865&group=alt.os.linux.mageia#4865

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: TJ...@noneofyour.business (TJ)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Thu, 23 Jun 2022 20:04:45 -0400
Organization: A noiseless patient Spider
Lines: 41
Message-ID: <t92v2u$u2q$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me>
<slrntb8fop.13uc9.BitTwister@wb.home.test> <t91nku$crt$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Jun 2022 00:04:46 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d789151bd91e82b87ba7cf7af29f57be";
logging-data="30810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19XWq2zjKwVkuLIWm0ayCsh8GFG0Jrjog8="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Cancel-Lock: sha1:yW5fa2T5INmAOz1aQMmuVD0wPxM=
In-Reply-To: <t91nku$crt$1@dont-email.me>
Content-Language: en-US
 by: TJ - Fri, 24 Jun 2022 00:04 UTC

On 6/23/22 08:51, William Unruh wrote:
> On 2022-06-23, Bit Twister <BitTwister@mouse-potato.com> wrote:
>> On Thu, 23 Jun 2022 01:39:32 -0000 (UTC), William Unruh wrote:
>>>
>>> wpa_supplicant has a bad bug.
>>
>> Hope you opened a bug report so that the app maintainer knows about it,
>> not Mageia.
>>
>>> If there are many BSSID for a single SSID,
>>> wpa_supplicant will simply grab the first BSSID it sees to connect to.
>>> This can often (usualy) be a disaster, as it will grab a weak signal,
>>> rather than the strongest signal, meaning lots of disconnections, flakey
>>> wifi, etc. Does anyone know of a way to get it to grab the strongest
>>> signal
>>
>> All I can suggest is a wrapper you create to dump desired BSSID and strength,
>> sort, chose, create a configuration file, then launch the connection.
>
> I like Network Center. I tried Network Manager but both found it clunky
> and not working sometimes and found that when things went wrong it was
> really hard to figure out why.
>
I had the same sort of problem with the Network Center, only on a MUCH
smaller scale. I have a dual-band router, and if I had both band SSIDs
configured, it would connect to the first one on the list, regardless of
which band I TOLD it to use. I switched to Network Manager where there
were dual-band adapters on the machine, and it was much better for my
setup.

But, That's me. YMMV. What I did find later on our repos was a package
called "wpa_supplicant-gui." I used it to set the connection priortity
for each band, and then I connected to the one I wanted to use.

Of course, that wouldn't work well for a laptop that was used in a
university library, then used again in a lab across campus. You'd have
to change the priority levels every time you moved. And I have no idea
how well it might work for several BSSIDs. But, it might be less
annoying than what you're dealing with now.

TJ

Re: wpa_supplicant and strongest BSSID

<t93k9t$fac$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4866&group=alt.os.linux.mageia#4866

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Fri, 24 Jun 2022 06:06:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 42
Message-ID: <t93k9t$fac$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me> <t9189c$ut9$1@gioia.aioe.org>
<op.1n79djdaa3w0dxdave@hodgins.homeip.net>
Injection-Date: Fri, 24 Jun 2022 06:06:54 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="2367bb84c5a401ac680cff18d5f891ae";
logging-data="15692"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18/x+s9E5fQEh8cDu1hsQeL"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:53t1lIPZO1qoHPDqI0xoewGLAFk=
 by: William Unruh - Fri, 24 Jun 2022 06:06 UTC

On 2022-06-23, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Thu, 23 Jun 2022 04:29:32 -0400, Herman Viaene <herman@invalid.invalid> wrote:
>
>> Op Thu, 23 Jun 2022 01:39:32 +0000, schreef William Unruh:
>>
>>> wpa_supplicant has a bad bug. If there are many BSSID for a single SSID,
>>> wpa_supplicant will simply grab the first BSSID it sees to connect to.
>>> This can often (usualy) be a disaster, as it will grab a weak signal,
>>> rather than the strongest signal, meaning lots of disconnections, flakey
>>> wifi, etc. Does anyone know of a way to get it to grab the strongest
>>> signal (Yes, I know what the strongest is may fluctuate, but it is
>>> better to grab a signal that is now strong, rather than grab a very weak
>>> BSSID)
>>> The BSSID is the hadware address of a given wifi access point, while the
>>> SSID is the name of the network that that access point is supposed to
>>> connect to. Thus at a University there may be many BSSID all of which
>>> connect to the eduroam network. Or in a Hotel, there may be many access
>>> points all of which have the same name "Hilton Bombay" but being from
>>> different floors of the hotel, will vary widely in strength.
>>> wpa_supplicant just grabs the first one it sees, which could be from 3
>>> floors away with a signal strength of "one bar" and completelydisappears
>>> when someone on the intermediate floors takes a bath (the water
>>> reflecting the signal). This is instead of using the signal from the AP
>>> just outside the door of your room on your floor.
>>
>> Any particular reason why you prefer the command i.s.o. using MCC -
>> Network Center???
>
> The command is used by drakxnet. The bug has been reported
> https://bugs.mageia.org/show_bug.cgi?id=23453
> but after almost 4 years, no change.
>
Yes. Unfortunately the person who wrote the NetworkCenter suite skipped
town about 3 years ago, and noone else has stepped in. It is such a
crucial part of laptops that it would be really great if someone
stepped in. I would have but I do not know Perl. And my coding skills
have never been the greatest (Inability to imagine all of the ways the
code could break is one problem I have, which is a key aspect of coding
competence).

Also wpa_supplicant is run by an upstream which is hard to find the bug
reporting for.

Re: wpa_supplicant and strongest BSSID

<t94eh5$ovt$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4867&group=alt.os.linux.mageia#4867

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!aioe.org!SgQ40d8MXABfaP0aDwMSzw.user.46.165.242.75.POSTED!not-for-mail
From: her...@invalid.invalid (Herman Viaene)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Fri, 24 Jun 2022 13:34:29 -0000 (UTC)
Organization: Aioe.org NNTP Server
Message-ID: <t94eh5$ovt$1@gioia.aioe.org>
References: <t90g8k$thv$1@dont-email.me>
<slrntb8fop.13uc9.BitTwister@wb.home.test> <t91nku$crt$1@dont-email.me>
<t92v2u$u2q$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Info: gioia.aioe.org; logging-data="25597"; posting-host="SgQ40d8MXABfaP0aDwMSzw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Pan/0.146 (Hic habitat felicitas; 8107378
git@gitlab.gnome.org:GNOME/pan.git)
X-Notice: Filtered by postfilter v. 0.9.2
 by: Herman Viaene - Fri, 24 Jun 2022 13:34 UTC

Op Thu, 23 Jun 2022 20:04:45 -0400, schreef TJ:
....snip....
> I had the same sort of problem with the Network Center, only on a MUCH
> smaller scale. I have a dual-band router, and if I had both band SSIDs
> configured, it would connect to the first one on the list, regardless of
> which band I TOLD it to use. I switched to Network Manager where there
> were dual-band adapters on the machine, and it was much better for my
> setup.

I got around the dual band setup by giving each band a separate ESSID. My
Fritzbox router allows that, I don't know for other routers.

Herman Viaene

Re: wpa_supplicant and strongest BSSID

<t94jhe$eck$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4868&group=alt.os.linux.mageia#4868

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: TJ...@noneofyour.business (TJ)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Fri, 24 Jun 2022 10:59:57 -0400
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <t94jhe$eck$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me>
<slrntb8fop.13uc9.BitTwister@wb.home.test> <t91nku$crt$1@dont-email.me>
<t92v2u$u2q$1@dont-email.me> <t94eh5$ovt$1@gioia.aioe.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Fri, 24 Jun 2022 14:59:58 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="d789151bd91e82b87ba7cf7af29f57be";
logging-data="14740"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/oWcFt3OGLH6Kw9pVu6IMjqv7v57hEYv0="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.10.0
Cancel-Lock: sha1:BdGz2WaG8Nrd3JTzv7luwpfLL/s=
In-Reply-To: <t94eh5$ovt$1@gioia.aioe.org>
Content-Language: en-US
 by: TJ - Fri, 24 Jun 2022 14:59 UTC

On 6/24/22 09:34, Herman Viaene wrote:
> Op Thu, 23 Jun 2022 20:04:45 -0400, schreef TJ:
> ...snip....
>> I had the same sort of problem with the Network Center, only on a MUCH
>> smaller scale. I have a dual-band router, and if I had both band SSIDs
>> configured, it would connect to the first one on the list, regardless of
>> which band I TOLD it to use. I switched to Network Manager where there
>> were dual-band adapters on the machine, and it was much better for my
>> setup.
>
> I got around the dual band setup by giving each band a separate ESSID. My
> Fritzbox router allows that, I don't know for other routers.
>
> Herman Viaene
>
>
My Linksys does, too. Mine did have different, if similar, SSIDs. But,
no matter what, if the assigned priorities were the same the Network
Center connected to the first one on the wpa_supplicant list that's
available.

TJ

Re: wpa_supplicant and strongest BSSID

<t9670m$n41$1@dont-email.me>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=4871&group=alt.os.linux.mageia#4871

 copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: wpa_supplicant and strongest BSSID
Date: Sat, 25 Jun 2022 05:38:30 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <t9670m$n41$1@dont-email.me>
References: <t90g8k$thv$1@dont-email.me>
<slrntb8fop.13uc9.BitTwister@wb.home.test> <t91nku$crt$1@dont-email.me>
<t92v2u$u2q$1@dont-email.me> <t94eh5$ovt$1@gioia.aioe.org>
<t94jhe$eck$1@dont-email.me>
Injection-Date: Sat, 25 Jun 2022 05:38:30 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="3297f8241f87f9d76cfadd7f4905bb5c";
logging-data="23681"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/X/q61h8vcSRZxpsonxz7D"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:pChiSmmLB9sjoWMZnGYcjtdBKBg=
 by: William Unruh - Sat, 25 Jun 2022 05:38 UTC

On 2022-06-24, TJ <TJ@noneofyour.business> wrote:
> On 6/24/22 09:34, Herman Viaene wrote:
>> Op Thu, 23 Jun 2022 20:04:45 -0400, schreef TJ:
>> ...snip....
>>> I had the same sort of problem with the Network Center, only on a MUCH
>>> smaller scale. I have a dual-band router, and if I had both band SSIDs
>>> configured, it would connect to the first one on the list, regardless of
>>> which band I TOLD it to use. I switched to Network Manager where there
>>> were dual-band adapters on the machine, and it was much better for my
>>> setup.
>>
>> I got around the dual band setup by giving each band a separate ESSID. My
>> Fritzbox router allows that, I don't know for other routers.
>>
>> Herman Viaene
>>
>>
> My Linksys does, too. Mine did have different, if similar, SSIDs. But,
> no matter what, if the assigned priorities were the same the Network
> Center connected to the first one on the wpa_supplicant list that's
> available.

Yes that's another problem with wpa_supplicant. It seems to go through
the wpa_supplicant.conf list and grab entries at random. I set up
ifup-eth to extract the appropriate name/SSID block, write it to a new
file and tell wpa_supplicant to use that file .

An ugly kludge.

>
> TJ

1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor