I'm having an issue connecting to my wireless network.
I think two problems prevent the connection through netctl.
First, the driver issues a "ioctl[SIOCSIWAP]: Operation not permitted" when trying to associate. It does seems to be able to associate though. But, second, netctl will interpret this as a failure and cancel the connection.
I was able to use wpa_supplicant and dhcpcd to connect:
$this->bbcode_second_pass_code('', 'sudo wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant/mynet.conf
Successfully initialized wpa_supplicant
ioctl[SIOCSIWAP]: Operation not permitted
wlan0: Trying to associate with **:**:**:**:**:** (SSID='MySSID' freq=2427 MHz)
wlan0: Associated with **:**:**:**:**:**
wlan0: WPA: Key negotiation completed with **:**:**:**:**:** [PTK=CCMP GTK=CCMP]
wlan0: CTRL-EVENT-CONNECTED - Connection to **:**:**:**:**:** completed [id=0 id_str=]')
then, in a second terminal:
$this->bbcode_second_pass_code('', 'sudo dhcpcd -A wlan0
dhcpcd[2786]: version 6.0.5 starting
dhcpcd[2786]: wlan0: soliciting a DHCP lease
dhcpcd[2786]: wlan0: offered 192.168.1.103 from 192.168.1.1
dhcpcd[2786]: wlan0: leased 192.168.1.103 for 7200 seconds
dhcpcd[2786]: wlan0: adding host route to 192.168.1.103 via 127.0.0.1
dhcpcd[2786]: wlan0: adding route to 192.168.1.0/24
dhcpcd[2786]: wlan0: adding default route via 192.168.1.1
dhcpcd[2786]: forked to background, child pid 2884')
I guess the ioctl error is a bug in the driver (I've already reported it) but is it normal that netctl fails when the association was ok?
Thanks!