ioctl[SIOCSIWAP]: Operation not permitted

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

ioctl[SIOCSIWAP]: Operation not permitted

Postby nbigaouette » Thu Sep 05, 2013 1:44 am

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!
nbigaouette
 
Posts: 1
Joined: Thu Sep 05, 2013 1:35 am

Re: ioctl[SIOCSIWAP]: Operation not permitted

Postby Broekel » Thu Oct 03, 2013 6:54 pm

I get the same errors at my device.

By using your commands i can connect to my hotspot.

It's pretty strange because i could connect to my hotspot a few weeks ago with no problems. (same configuration)
After reinstalling everything, it doesn't work anymore...

btw: my wlan0 is always down, when i'm booting up. Is there a way set it up permanently?
Broekel
 
Posts: 1
Joined: Thu Oct 03, 2013 6:51 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 2 guests