public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Problem logging on to wifi
@ 2022-09-09 14:40 Walter Dnes
  2022-09-09 18:14 ` Michael
  2022-09-27 14:28 ` [gentoo-user] [SOLVED] " Walter Dnes
  0 siblings, 2 replies; 3+ messages in thread
From: Walter Dnes @ 2022-09-09 14:40 UTC (permalink / raw
  To: Gentoo Users List

  Here are the first 4 lines from scan_result at an establishment.  I've
replaced the 3-word ccompany name with "AAAA BBBB CCCC".  Note that they
share the same bssids with "BELL342".

Selected interface 'wlan0'
bssid / frequency / signal level / flags / ssid
26:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]    AAAA BBBB CCCC
24:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]    BELL342
24:20:c7:c2:b7:a6       2462    -28     [WPA2-PSK-CCMP][ESS]    BELL342
26:20:c7:c2:b7:a6       2462    -46     [WPA2-PSK-CCMP][ESS]    AAAA BBBB CCCC

  I've tried...

wpa_cli password "AAAA BBBB CCCC" <password>
wpa_cli password AAAA\ BBBB\ CCCC <password>

...and they both return "FAIL".  Any ideas on what to try next?

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] Problem logging on to wifi
  2022-09-09 14:40 [gentoo-user] Problem logging on to wifi Walter Dnes
@ 2022-09-09 18:14 ` Michael
  2022-09-27 14:28 ` [gentoo-user] [SOLVED] " Walter Dnes
  1 sibling, 0 replies; 3+ messages in thread
From: Michael @ 2022-09-09 18:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

On Friday, 9 September 2022 15:40:04 BST Walter Dnes wrote:
>   Here are the first 4 lines from scan_result at an establishment.  I've
> replaced the 3-word ccompany name with "AAAA BBBB CCCC".  Note that they
> share the same bssids with "BELL342".
> 
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid
> 26:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]    AAAA BBBB
> CCCC 24:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]   
> BELL342 24:20:c7:c2:b7:a6       2462    -28     [WPA2-PSK-CCMP][ESS]   
> BELL342 26:20:c7:c2:b7:a6       2462    -46     [WPA2-PSK-CCMP][ESS]   
> AAAA BBBB CCCC
> 
>   I've tried...
> 
> wpa_cli password "AAAA BBBB CCCC" <password>
> wpa_cli password AAAA\ BBBB\ CCCC <password>
> 
> ...and they both return "FAIL".  Any ideas on what to try next?

You could try:

wpa_cli add_network "AAAA BBBB CCCC" 

which will return a 'network id'; e.g. 0 if your wpa_supplicant.conf is empty 
and has no AP configured in it.  Then use this 'network id' number to specify 
a password:

wpa_cli password 0 "blah-blah"

or

wpa_cli password 0 '"blah-blah"'

NOTE:  Either the "AAAA BBBB CCCC", or the "BELL342" SSID may be for non-
public users and it could reject your attempts to authenticate if your device 
is not whitelisted, so try the other SSID if one of them won't work.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user] [SOLVED] Problem logging on to wifi
  2022-09-09 14:40 [gentoo-user] Problem logging on to wifi Walter Dnes
  2022-09-09 18:14 ` Michael
@ 2022-09-27 14:28 ` Walter Dnes
  1 sibling, 0 replies; 3+ messages in thread
From: Walter Dnes @ 2022-09-27 14:28 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 09, 2022 at 10:40:04AM -0400, Walter Dnes wrote
>   Here are the first 4 lines from scan_result at an establishment.  I've
> replaced the 3-word ccompany name with "AAAA BBBB CCCC".  Note that they
> share the same bssids with "BELL342".
> 
> Selected interface 'wlan0'
> bssid / frequency / signal level / flags / ssid
> 26:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]    AAAA BBBB CCCC
> 24:20:c7:c2:b7:a7       5220    -53     [WPA2-PSK-CCMP][ESS]    BELL342
> 24:20:c7:c2:b7:a6       2462    -28     [WPA2-PSK-CCMP][ESS]    BELL342
> 26:20:c7:c2:b7:a6       2462    -46     [WPA2-PSK-CCMP][ESS]    AAAA BBBB CCCC
> 
>   I've tried...
> 
> wpa_cli password "AAAA BBBB CCCC" <password>
> wpa_cli password AAAA\ BBBB\ CCCC <password>
> 
> ...and they both return "FAIL".  Any ideas on what to try next?

  PEBKAC.  I was mis-reading the instructions.  Since the sign at the
breakfast place mentioned "password", in the wpa_cli dialogue I entered...

> set password 0 "AAAA BBBB CCCC" "password"

...when I should've been entering...

> set_network 0 ssid "AAAA BBBB CCCC"
> set_network 0 psk "password"

  The flags "[WPA2-PSK-CCMP][ESS]" should've been the hint.
https://wiki.archlinux.org/title/wpa_supplicant#Connecting_with_wpa_passphrase
set me straight.  BTW, wpa_cli is "the hard way" of doing things.  What's
"the easy way", you ask?  It's a short script like so...

#!/bin/bash
/etc/init.d/wpa_supplicant stop
wpa_supplicant -B -i wlan0 -c <(wpa_passphrase "ssid" "password")

  No need for a stanza in wpa_supplicant.conf.  Note: *THE SCRIPT MUST
BE RUN FROM A ROOT SHELL.  "SUDO" WILL NOT WORK.*   The "wpa_passphrase"
tool is installed as part of "wpa_cli" install, no extra setup needed.

  I was the first customer in for breakfast, so I had the wifi network
capacity all to myself.  https://www.speedtest.net/result/13728930233
is the result from Speedtest Net, over 31 mbits down and 10 mbits up.

-- 
I've seen things, you people wouldn't believe; Gopher, Netscape with
frames, the first Browser Wars.  Searching for pages with AltaVista,
pop-up windows self-replicating, trying to uninstall RealPlayer.  All
those moments, will be lost in time like tears in rain... time to die.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-27 14:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-09 14:40 [gentoo-user] Problem logging on to wifi Walter Dnes
2022-09-09 18:14 ` Michael
2022-09-27 14:28 ` [gentoo-user] [SOLVED] " Walter Dnes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox