You are not logged in.

#1 2013-12-13 19:04:08

carriage
Member
From: Finland
Registered: 2012-08-01
Posts: 7

netctl profile works flawlessly unless called by netctl-auto

I have four wireless profiles in /etc/netctl and all of them work just fine when used manually, i.e. netctl enable <profile> or netctl start <profile>, but when I set up netctl-auto one of them keeps failing.

The three others are identical except for the SSID and the WPA key so I'm including just one of them here along with the one the keeps failing, but there's really nothing special here. The only difference is that the one that keeps failing has a hidden SSID.

One of the three which work:

Description='WiFi: AMPERSAND'
Interface=wlan0
Connection=wireless
Security=wpa

IP=dhcp

ESSID='ampersand'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='0f20f8g0fg2'
# Uncomment this if your ssid is hidden
#Hidden=yes

The one that doesn't:

Description='WiFi: HANLUKIO'
Interface=wlan0
Connection=wireless
Security=wpa

IP=dhcp

ESSID='kjKJls83jpkskKkkUyasjqKAS'
# Prepend hexadecimal keys with \"
# If your key starts with ", write it as '""<key>"'
# See also: the section on special quoting rules in netctl.profile(5)
Key='CCyzJvIVljL9hsHSbhspPhs929c0hLssh38sPssofo382d8OS320dgSop3hfIGdi32GF'
# Uncomment this if your ssid is hidden
Hidden=yes

The wiki doesn't seem to mention anything specific concerning a hidden SSID and netctl-auto, and since all four work flawlessly when used manually, I'm out of ideas. I'll try setting $NETCTL_DEBUG on the next try and hopefully that will output something meaningful but that wont be till next week and I was curious if anyone knew off the bat what the issue might me.

Offline

#2 2013-12-15 19:54:46

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,489

Re: netctl profile works flawlessly unless called by netctl-auto

As I understand man netctl.special, the netctl-auto does not honor the WPADriver parameters in the profiles, because it works on the interface level. Hence, the "Hidden=yes" is not parsed and the hidden ones are probably discarded.
You should be able to add the parameter "scan_ssid=1" (or "Hidden=yes" - not sure) to a hook for the interface in /etc/netctl/interfaces/

edit: wrong semantics striked; see below.

Last edited by Strike0 (2013-12-16 22:16:36)

Offline

#3 2013-12-15 22:44:04

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: netctl profile works flawlessly unless called by netctl-auto

Strike0 wrote:

As I understand man netctl.special, the netctl-auto does not honor the WPADriver parameters in the profiles, because it works on the interface level. Hence, the "Hidden=yes" is not parsed and the hidden ones are probably discarded.

That's nonsense. The hidden argument has no relation to the WPADriver.

Offline

Board footer

Powered by FluxBB