Linux - Wireless NetworkingThis forum is for the discussion of wireless networking in Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've searched all over, but I can't seem to find what I need. I need to get WPA encryption working in SUSE 10, but I think I did something wrong configuring wpa_supplicant. Here is the code I get trying to run program:
Code:
linux:/ # /usr/sbin/wpa_supplicant -B -c/etc/wpa_supplicant.conf -ira0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
Use the YaST Network Interface configuration to set up wireless.
Here is what my /etc/wpa_supplicant looks like:
> cat /etc/wpa_supplicant
# allow frontend (e.g., wpa_cli) to be used by all users in 'wheel' group
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
#
# home network; allow all valid ciphers
network={
ssid="jesnet"
scan_ssid=1
# key_mgmt=WPA-PSK
psk="secretpassphrase" # bogus value in this example.
}
The psk isn't what my network uses, instead the value saved in
/etc/sysconfig/network/ifcfg-wlan0 is used. It matches what my router uses. I used the /dev/random device to generate this 64-digit random hexidecimal key.
But I still get the following errors when trying to run wpa_supplicant:
Code:
# /usr/sbin/wpa_supplicant -d -c/etc/wpa_supplicant.conf -ira0
Initializing interface 'ra0' conf '/etc/wpa_supplicant.conf' driver 'default'
Configuration file '/etc/wpa_supplicant.conf' -> '/etc/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group=10 (from group name 'wheel')
Priority group 0
id=0 ssid='home'
Initializing interface (2) 'ra0'
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: External notification - portEnabled=0
EAPOL: External notification - portValid=0
ioctl[SIOCSIWPMKSA]: Operation not supported
SIOCGIWRANGE: WE(compiled)=18 WE(source)=14 enc_capa=0x0
capabilities: key_mgmt 0x0 enc 0x3
Own MAC address: 00:0e:3b:04:06:01
wpa_driver_hostap_set_wpa: enabled=1
wpa_driver_hostap_set_key: alg=none key_idx=0 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=1 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=2 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_key: alg=none key_idx=3 set_tx=0 seq_len=0 key_len=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
Failed to set encryption.
wpa_driver_hostap_set_countermeasures: enabled=0
wpa_driver_hostap_set_drop_unencrypted: enabled=1
Setting scan request: 0 sec 100000 usec
Using existing control interface directory.
bind(PF_UNIX): Address already in use
ctrl_iface exists and seems to be in use - cannot override it
Delete '/var/run/wpa_supplicant/ra0' manually if it is not used anymore
Failed to initialize control interface '/var/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.
wpa_driver_hostap_set_wpa: enabled=0
ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported
wpa_driver_hostap_set_drop_unencrypted: enabled=0
wpa_driver_hostap_set_countermeasures: enabled=0
No keys have been configured - skip key clearing
I would suggest backing up and looking at the other parts of the setup also.
For example, do you also have a nic interface. Try shutting it down if it isn't already and restarting the wireless.
sudo /sbin/rcnetwork stop eth0
sudo /sbin/rcnetwork restart wlan0
Look at the output of /sbin/ifconfig and /usr/sbin/iwconfig. A good command to find out if the wireless interface is working is to run /usr/sbin/iwlist scan.
Okay, I stoped and restarted ra0 (my wireless interface) and here is the output:
Code:
# /sbin/rcnetwork restart ra0
Shutting down network interfaces:
ra0 device: RaLink Ralink RT2500 802.11 Cardbus Reference Card (rev 01)
ra0 configuration: wlan-id-00:0e:3b:04:06:01 done
Hint: you may set mandatory devices in /etc/sysconfig/network/config
Setting up network interfaces:
ra0 device: RaLink Ralink RT2500 802.11 Cardbus Reference Card (rev 01)
ra0 configuration: wlan-id-00:0e:3b:04:06:01
ra0 warning: WPA configured but may be unsupported
ra0 warning: by this device
ra0 starting wpa_supplicant
WEXT auth param 7 value 0x1 - ioctl[SIOCSIWAUTH]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
ioctl[SIOCSIWENCODEEXT]: Operation not supported
WEXT auth param 4 value 0x0 - ioctl[SIOCSIWAUTH]: Operation not supported
WEXT auth param 5 value 0x1 - ioctl[SIOCSIWAUTH]: Operation not supported
ra0 (DHCP) . . . . . no IP address yet... backgrounding. waiting
SuSEfirewall2: Warning: ip6tables does not support state matching. Extended IPv6 support disabled.
SuSEfirewall2: Setting up rules from /etc/sysconfig/SuSEfirewall2 ...
SuSEfirewall2: batch committing...
SuSEfirewall2: Firewall rules successfully set
I also did iwlist scan, and it seems to be working, I just still can't connect to the AP.
Take a look at what is supported according to the kernel.
sudo cat /proc/net/prism2/ra0/hw
Look for a line like: encryption_modes=WEP; TKIP with WPA; AES/CCMP with WPA
I am assuming that your kernel wrapper is named prism2.
Maybe TKIP with WPA isn't supported by your kernel module. That may mean that your driver is too old.
Okay, I got my answer from a couple other forums. It appears that the current stable rt2500 driver for linux does not support WPA. Thanks for the help, jschiwal.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.