capslock118
Posts: 43
Joined: Wed Mar 21, 2012 6:25 pm
Location: New Haven, CT
Contact: Website

WiFi has an issue with "ioctl" (beyond wifi sticky)

Tue Aug 11, 2015 1:31 am

Hi everyone,

EDIT: I should have mentioned this, but I am running the latest raspbian provided via NOOBS, all repositories and packages have been updated.

first, I went through every step from this sticky post: viewtopic.php?f=28&t=44044. I happened to go through all those steps prior to reading it but went through them again for good measure before I posted.

Basically, this seems to be the result I am getting when trying to bring up the wifi module:
~ $ sudo ifdown wlan0 && sudo ifup wlan0
ioctl[SIOCSIWAP]: Operation not permitted
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
here is my /etc/network/interfaces:

Code: Select all

auto lo
iface lo inet loopback

auto eth0
allow-hotplug eth0
iface eth0 inet manual

auto wlan0
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet static
address 192.168.0.7
netmask 255.255.255.0
gateway 192.168.0.1

and my wpa supplicant config (this was automatically written from wpa_gui; i tried doing this part myself and resorted to wpa_gui thinking something I was doing was wrong):

Code: Select all

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

network={
        ssid="two roads"
        psk="my_pass_code"
        proto=RSN
        key_mgmt=WPA-PSK
        pairwise=TKIP
        auth_alg=OPEN
}
lsusb:

Code: Select all

Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 004: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 005: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 006: ID 046d:c31c Logitech, Inc. Keyboard K120 for Business
lsmod:

Code: Select all

Module                  Size  Used by
cfg80211              462846  0 
rfkill                 22347  2 cfg80211
bcm2708_wdog            3894  1 
snd_bcm2835            21149  0 
snd_pcm                90778  1 snd_bcm2835
snd_seq                61097  0 
snd_seq_device          7209  1 snd_seq
snd_timer              23007  2 snd_pcm,snd_seq
snd                    66325  5 snd_bcm2835,snd_timer,snd_pcm,snd_seq,snd_seq_device
evdev                  11000  2 
joydev                  9766  0 
8192cu                569561  0 
uio_pdrv_genirq         3666  0 
uio                     9897  1 uio_pdrv_genirq
if it needs to be said, this is what i bought:
https://www.adafruit.com/products/814


what is going on here? This chipset allegedly works out of the box, but that doesn't seem to be the case for me. Help a helpless out please. :)

MrEngman
Posts: 4032
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: WiFi has an issue with "ioctl" (beyond wifi sticky)

Tue Aug 11, 2015 10:01 pm

Ignore the ioctl messages, they occur with all different wifi adapters.

The post you've used references the old network configuration. The new network set up in the latest raspbian is a mess and the configuration you've used may be the problem.

I don't have problems with the variety of adapters I use but I don't used static IP's. With the latest version of raspbian I've set up my wifi by adding the following to default wpa_supplicant.conf

Code: Select all

network={
	ssid="network-name"
	psk="network-password"
}

MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

capslock118
Posts: 43
Joined: Wed Mar 21, 2012 6:25 pm
Location: New Haven, CT
Contact: Website

Re: WiFi has an issue with "ioctl" (beyond wifi sticky)

Tue Aug 11, 2015 11:22 pm

MrEngman wrote:Ignore the ioctl messages, they occur with all different wifi adapters.

The post you've used references the old network configuration. The new network set up in the latest raspbian is a mess and the configuration you've used may be the problem.

I don't have problems with the variety of adapters I use but I don't used static IP's. With the latest version of raspbian I've set up my wifi by adding the following to default wpa_supplicant.conf

Code: Select all

network={
	ssid="network-name"
	psk="network-password"
}
MrEngman

Odd that the old network config is being used unless update/upgrade doesn't touch that. Anyway this seemed to do the trick after two reboots. Thanks so much!!!

Return to “Troubleshooting”