Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:28:32 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
I've encountered a strange problem logging into my local Wifi.
There are 2 services I can use : (1) the household service,
part of my landlord's home-office system ; (2) my cell-phone's hotspot.
(2) is ok, but trying to use (1) has been offering challenges.
First, there's no problem with my hardware or that of my landlord
nor with 'wpa_supplicant' installed on my Gentoo system AFAIK.
The problem aros when I tried to log into (1)
after a power outage caused my landlord to restart his box,
at which time he renamed the service with a slightly different password ; he's intelligent + friendly, but not upto fine-tuning it.
I have updated the config file below to match the new strings.
Earlier in the year, it was straightforward. I have a config file :
#wpa_supplicant-gr.conf : 241207
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="<name of landlord's service>"
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk="<password>"
priority=5
}
This hasn't changed : it used to log me in when I rebooted.
Now it doesn't : for some reason, it scans, but finds nothing.
The config file for my cell-phone hotspot is the same & also unchanged.
However, I can use 'wpa_gui' with a bit of fussing & editing.
Currently, it shows the correct adapter + service name & below it lists :
Status : completed (station)
Last message : <blank>
Authentication : WPA2-PSK
Encryption : CCMP + TKIP
SSID : <service name>
BSSID : < 12 hex digits >
IP address : < 11 digits >
I can't see any difference between the 2 lists of config items.
I do have to reset it via an 'edit' menu after rebooting,
esp to restate the password, which is a nuisance,
but it succeeds in getting thro' to the service.
Can anyone suggest what mb wrong with the 1st method ?
scan
scan_results
On Monday 23 December 2024 23:35:21 GMT Philip Webb wrote:
I've encountered a strange problem logging into my local Wifi.Did he *only* change the SSID and password
There are 2 services I can use : (1) the household service,
part of my landlord's home-office system ; (2) my cell-phone's hotspot.
(2) is ok, but trying to use (1) has been offering challenges.
First, there's no problem with my hardware or that of my landlord
nor with 'wpa_supplicant' installed on my Gentoo system AFAIK.
The problem arose when I tried to log into (1)
after a power outage caused my landlord to restart his box,
at which time he renamed the service with a slightly different password ;
he's intelligent + friendly, but not upto fine-tuning it.
I have updated the config file below to match the new strings.
or did he also change the encryption and key management method ?
Check there are no empty spaces left at the end of the strings
in any entries you edited in your wpa_supplicant.conf.
Check you have not altered the access rights of the file :
chmod -v 600 /etc/wpa_supplicant/wpa_supplicant.conf
I can use 'wpa_gui' with a bit of fussing & editing.Currently, it shows the correct adapter + service name & below it lists :
Status : completed (station)The first method looks good to me, beyond the points I mentioned above.
Last message : <blank>
Authentication : WPA2-PSK
Encryption : CCMP + TKIP
SSID : <service name>
BSSID : < 12 hex digits >
IP address : < 11 digits >
Check what the landlord's AP wants to use by running wpa_cli in a terminal:
> scan
will start scanning for APs. after few secs, you will have some results :
> scan_results
The landlord's BSSID will listLL's-SSID
what encryption his AP has been configured to use; e.g.:
01:23:45:67:89:01 2427 0 [WPA-PSK-CCMP+TKIP][WPA2-PSK-CCMP+TKIP]
You'll need to reflect what the wpa_cli results revealed
in your wpa_supplicant.conf.
If you want to be able to edit the AP configuration
and save the results using your wpa_gui directly,
you have to add in your wpa_supplicant.conf: ====================================================
# Whether to allow wpa_supplicant to update (overwrite) configuration
# This option can be used to allow wpa_supplicant
# to overwrite configuration file whenever configuration is changed
# (e.g., new network block is added with wpa_cli or wpa_gui
# or a password is changed). This is required for wpa_cli/wpa_gui
# to be able to store the configuration changes permanently.
# Please note that overwriting configuration file will remove comments.
update_config=1
HTH.
241224 Michael wrote:
Did he *only* change the SSID and password
or did he also change the encryption and key management method ?
Only the former : he's not skilled enough to do the latter.
I suspect that originally someone set it up for him
& altered some default setting(s), then when he restarted it,
the default setting(s) returned & that's not working with my software.
Check there are no empty spaces left at the end of the strings
in any entries you edited in your wpa_supplicant.conf.
There are none.
Check you have not altered the access rights of the file :
chmod -v 600 /etc/wpa_supplicant/wpa_supplicant.conf
The permission is '644', which is ok for my cellpbone's hotspot.
I can use 'wpa_gui' with a bit of fussing & editing.
Currently, it shows the correct adapter + service name & below it lists :
Status : completed (station)
Last message : <blank>
Authentication : WPA2-PSK
Encryption : CCMP + TKIP
SSID : <service name>
BSSID : < 12 hex digits >
IP address : < 11 digits >
The first method looks good to me, beyond the points I mentioned above.
Check what the landlord's AP wants to use by running wpa_cli in a
terminal:
> scan
will start scanning for APs. after few secs, you will have some results :
> scan_results
It shows nothing : see output below.
Thanks for your usually very helpful suggestions (smile).[snip ...]
Here is the output via 'wpa_cli' as I start & stop Wifi.
I connect & disconnect with my cell-phone 'Athene' + landlord's service, whose name is 'Watch Iovedocs ... ',
& which I have to access via 'wpa_gui' (I used 2 terminals).
using wpa_gui to start/stop landlord's 'Watch ... ' :
<3>WNM: Preferred List Available
<3>SME: Trying to authenticate with 68:ff:7b:47:c9:13 (SSID='watch
iovedocs on YouTube ' freq=5200 MHz) <3>CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
<3>Trying to associate with 68:ff:7b:47:c9:13
(SSID='watch iovedocs on YouTube ' freq=5200 MHz)
-- end of output --
I've had difficulty determining the exact sequence of commands with wpa_gui. It seems to be : 'manage networks' -- 'edit' to add password -- 'save' -- 'scan' : a list of services is offered, a '5200' is double-clicked -- back
to 'current status' -- 'connect' & it fills in the details
& takes another 15 sec to get an IP address & I/net cb accessed.
Any further suggestions very welcome.
Check there are no empty spaces left at the end of the strings
in any entries you edited in your wpa_supplicant.conf.
There are none.
I think you'll find there is at least one within the SSID - see below.
using wpa_gui to start/stop landlord's 'Watch ... ' :
<3>WNM: Preferred List AvailablePlease check the space character shown at the end of the SSID string above.
<3>SME: Trying to authenticate with 68:ff:7b:47:c9:13 (SSID='watch
iovedocs on YouTube ' freq=5200 MHz) <3>CTRL-EVENT-REGDOM-CHANGE init=CORE >> type=WORLD
<3>Trying to associate with 68:ff:7b:47:c9:13
(SSID='watch iovedocs on YouTube ' freq=5200 MHz)
You will need to include this in your wpa_supplicant.conf; e.g.:
ssid="watch iovedocs on YouTube "
I expect when you edit the SSID as suggested above
you will be able to connect without using the GUI.
241225 Michael wrote:
I expect when you edit the SSID as suggested above
you will be able to connect without using the GUI.
Indeed ! -- that was the problem.
I've added the space & commented the 3 extra lines re keys/security
& there's no problem connecting via 'rc-service -v wpa_supplicant start'
I keep copies of the config files for both services
& overwrite 'wpa_supplicant.conf' when necessary
(of course, I use a Bash aliases).
Thanks for all the advice : what a strange problem.