Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PARTLY SOLVED/UNDERSTOOD] Operation not supported
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 139

PostPosted: Thu May 16, 2013 1:25 pm    Post subject: [PARTLY SOLVED/UNDERSTOOD] Operation not supported Reply with quote

I'm trying to establish wireless connection on my netbook. It used to work, but most probably after recent update of udev something was messed up and wireless simply doesn't work as expected.
Here is the basic info:

Quote:
$> lspci -v
[...]
02:00.0 Network controller: Broadcom Corporation BCM4313 802.11b/g/n Wireless LAN Controller (rev 01)
Subsystem: Broadcom Corporation Device 0510
Flags: bus master, fast devsel, latency 0, IRQ 17
Memory at 52000000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [40] Power Management version 3
Capabilities: [58] Vendor Specific Information: Len=78 <?>
Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
Capabilities: [d0] Express Endpoint, MSI 00
Capabilities: [100] Advanced Error Reporting
Capabilities: [13c] Virtual Channel
Capabilities: [160] Device Serial Number 00-00-4c-ff-ff-5a-5c-ac
Capabilities: [16c] Power Budgeting <?>
Kernel driver in use: wl


$> lsmod
Module Size Used by
wl 2413811 0
lib80211 2966 1 wl
cfg80211 127683 1 wl
coretemp 4891 0

$> eix -I broadcom
[I] net-wireless/broadcom-sta
Available versions: 5.100.82.112-r2^m ~6.30.223.30^m {{kernel_linux}}
Installed versions: 5.100.82.112-r2^m(20:40:21 03/02/13)(kernel_linux)
Homepage: https://launchpad.net/ubuntu/+source/bcmwl http://www.broadcom.com/support/802.11/linux_sta.php
Description: Broadcom's IEEE 802.11a/b/g/n hybrid Linux device driver.


$> /etc/init.d/wpa_supplicant start
* Starting WPA Supplicant Daemon ...
ioctl[SIOCSIWMODE]: Operation not supported
ioctl[SIOCGIWRANGE]: Operation not supported
ioctl[SIOCGIWMODE]: Operation not supported
ioctl[SIOCSIWAP]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODE]: Operation not supported


Usually first I scan with wpa_gui and then select connection, but now it cannot find anything.
_________________
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.


Last edited by jimmij on Fri May 17, 2013 2:42 pm; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu May 16, 2013 2:01 pm    Post subject: Reply with quote

jimmij ...

Mostly like the interface has been renamed due to the udev-200 update, what does 'ifconfig -a' show? If the interface has been renamed from wlan0 to wlp2s0 (or similar) you will need to adjust wpa_supplicant_args="" in /etc/conf.d/wpa_supplicant to reflect this fact.

best ... khay
Back to top
View user's profile Send private message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 139

PostPosted: Thu May 16, 2013 2:30 pm    Post subject: Reply with quote

Thanks for a quick reply. Names of interfaces are "normal":

Quote:
$> ifconfig -a
eth0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 1c:75:08:00:17:0c txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

eth1: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet6 fe80::5eac:4cff:fe5a:4c01 prefixlen 64 scopeid 0x20<link>
ether 5c:ac:4c:5a:4c:01 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 17

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 0 (Local Loopback)
RX packets 24 bytes 1824 (1.7 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 24 bytes 1824 (1.7 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

sit0: flags=193<UP,RUNNING,NOARP> mtu 1480
inet6 ::127.0.0.1 prefixlen 96 scopeid 0x90<compat,host>
sit txqueuelen 0 (IPv6-in-IPv4)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 7 dropped 0 overruns 0 carrier 0 collisions 0


$> cat /etc/conf.d/wpa_supplicant
# conf.d file for wpa_supplicant
#
# Please check man 8 wpa_supplicant for more information about the options
# wpa_supplicant accepts.
#
wpa_supplicant_args=""


So what do I need to put in config file?
_________________
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu May 16, 2013 3:31 pm    Post subject: Reply with quote

jimmij wrote:
So what do I need to put in config file?

jimmij ... you had stated you'd updated udev and so I'd assumed your wireless interface had changed from wlan0 to wlp2s0 (or similar), from the above I see this isn't the case (though I'm not sure why).

So, what has changed exactly? Because if running wpa_supplicant in this way worked previously I'm not sure what to suggest you look at, as your not providing "-i <interface> -Dnl80211,wext" which would generally be required.

It looks as though your wireless interface is probably eth1, unless of course you have two ethernet cards and the wl driver isn't being loaded. Anyhow, there are too many maybe's here, so if you can elaborate on what exactly has broken, and what you may have updated that may be the cause (new kernel, udev migration, etc). It might help if you pastebin'd your kernel config and sections of dmesg where the wl module and firmware is loaded.

best ... khay
Back to top
View user's profile Send private message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 139

PostPosted: Fri May 17, 2013 11:05 am    Post subject: Reply with quote

Basically I use wireless very rarely so many "emerge -uDN world" have passed since last working session, I thought new udev could be the problem, but not sure at all.

Indeed adding wpa_supplicant_args="-ieth1 -Dnl80211,wext" to /etc/conf.d/wpa_supplicant makes some change, namely warnings about "ioctl[IOCSIWMODE]" disappear, but scan with wpa_gui still doesn't work.

Here is kernel config:
http://pastebin.com/kWbWeGHs

and dmesg:
Quote:
[ 8.843896] systemd-udevd[1168]: starting version 200
[ 9.721056] cfg80211: Calling CRDA to update world regulatory domain
[ 9.721958] lib80211: common routines for IEEE802.11 drivers
[ 9.721968] lib80211_crypt: registered algorithm 'NULL'
[ 10.079109] wl: module license 'MIXED/Proprietary' taints kernel.
[ 10.079118] Disabling lock debugging due to kernel taint
[ 2.432069] ACPI: Invalid Power Resource to register!
[ 10.116080] INFO @wl_cfg80211_attach :
[ 10.116089] Registered CFG80211 phy
[ 10.377307] eth1: Broadcom BCM4727 802.11 Hybrid Wireless Controller 5.100.82.112
[ 17.572234] EXT4-fs (sda5): re-mounted. Opts: (null)


and current /etc/conf.d/net if it is important:
Quote:
modules_eth1="wpa_supplicant"
wpa_supplicant_eth1"="-Dnl80211,wext"


There is also configuration file at /etc/wpa_supplicant/wpa_supplicant.conf with only one line:
Quote:
ctrl_interface=/var/run/wpa_supplicant

_________________
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri May 17, 2013 12:57 pm    Post subject: Reply with quote

jimmij wrote:
Indeed adding wpa_supplicant_args="-ieth1 -Dnl80211,wext" to /etc/conf.d/wpa_supplicant makes some change, namely warnings about "ioctl[IOCSIWMODE]" disappear, but scan with wpa_gui still doesn't work.

jimmij ... ok, so I'd suggest you use /etc/init.d/net.eth1 and not wpa_supplicant directly. I think I see what the problem is, your user isn't able to access the ctrl_interface, please try the following:

/etc/conf.d/net
Quote:
modules_eth1="!plug wpa_supplicant dhcpcd"
wpa_supplicant_eth1"="-Dnl80211 -qq"
wpa_timeout_eth1="15"
config_eth1="dhcp"

I'm assuming here that net-misc/dhcpcd is installed, you may want to use another dhcp client, modify the above if need be.

/etc/wpa_supplicant/wpa_supplicant.conf
Code:
ctrl_interface=DIR=/run/wpa_supplicant GROUP=wheel
update_config=1

You would then start /etc/init.d/net.eth1 and/or add it to the default runlevel:

Code:
# ln -s /etc/init.d/net.{lo,eth1}
# /etc/init.d/net.eth1 start
# rc-update add net.eth1 default # optional

You should then make sure your user is in the 'wheel' group (run 'groups' at the prompt), if not then modify the user:

Code:
# usermod -a -G wheel <your_username>

You will need to restart your login/shell or xsession if the above change is made.

You should now be able to access wpa_supplicant's ctrl_interface and so wpa_gui should now work as expected. I added "update_config=1" above so that changes (ie, networks) can be saved to the config file.

Hopefully this should now work, if not let me know.

best ... khay
Back to top
View user's profile Send private message
jimmij
Tux's lil' helper
Tux's lil' helper


Joined: 02 Dec 2008
Posts: 139

PostPosted: Fri May 17, 2013 2:38 pm    Post subject: Reply with quote

Thanks for suggestions, after some fight I discovered that I was hit by this bug: https://bugzilla.redhat.com/show_bug.cgi?id=865695.
Switching to kernel 3.5.7 solve the issue.
I have one more question about wireless but it is not related with the topic so I will close this thread and start new one.
_________________
Vanitas vanitatum et omnia vanitas.
Libera temet ex inferis.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum