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.
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Rep:
WPA2 and PSK in Fedora 11
After getting the b43 drivers and firmware working in Fedora 11 for my on-board Broadcom BCM4306 adapter, I need to figure out how to enter an ASCII pre-shared key for WPA2 ... the network manager keeps asking me for a key over and over, and when I enter one, it times out and comes back ... I do get a list of available wireless networks, but I can't join the right one. I've also tried to enter a key with 'iwconfig', but I can't seem to figure out the syntax for a string-based key:
Code:
iwconfig wlan1 essid mynetworkname
iwconfig wlan1 key s:mynetworkpassword
Error for wireless request "Set Encode" (8B2A):
SET failed on device wlan ; Invalid argument
iwconfig wlan1 key mypasswordinhex
Error for wireless request "Set Encode" (8B2A):
invalid argument "mypasswordinhex"
Aside from this, I get the following dialog pop-up constantly: Authentication required by wireless network Passwords or encryption keys are required to access the wireless network 'mynetwork'. Wireless security: WPA & WPA2 Personal <- drop-down box with only one choice
Password: ..... Show password: <-- when enabled, the above shows my network password in hex. If I overwrite the hex with the ascii string and connect again, no change: it just comes back again and asks for the password.
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448
Original Poster
Rep:
It looks like my issue may not be with WPA2 or even encryption in general after all ... I completely disabled security briefly on my router and got the following while trying to connect, and wicd gui reported an error:
Code:
Aug 12 22:19:22 mylaptop dhclient: Internet Systems Consortium DHCP Client 4.1.0
Aug 12 22:19:22 mylaptop dhclient: Copyright 2004-2008 Internet Systems Consortium.
Aug 12 22:19:22 mylaptop dhclient: All rights reserved.
Aug 12 22:19:22 mylaptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Aug 12 22:19:22 mylaptop dhclient:
Aug 12 22:19:22 mylaptop dhclient: Listening on LPF/eth0/my:eth0:mac
Aug 12 22:19:22 mylaptop dhclient: Sending on LPF/eth0/my:eth0:mac
Aug 12 22:19:22 mylaptop dhclient: Sending on Socket/fallback
Aug 12 22:19:22 mylaptop kernel: eth0: remaining active for wake-on-lan
Aug 12 22:19:22 mylaptop kernel: eth0: DSPCFG accepted after 0 usec.
Aug 12 22:19:22 mylaptop kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 12 22:19:22 mylaptop dhclient: Internet Systems Consortium DHCP Client 4.1.0
Aug 12 22:19:22 mylaptop dhclient: Copyright 2004-2008 Internet Systems Consortium.
Aug 12 22:19:22 mylaptop dhclient: All rights reserved.
Aug 12 22:19:22 mylaptop dhclient: For info, please visit http://www.isc.org/sw/dhcp/
Aug 12 22:19:22 mylaptop dhclient:
Aug 12 22:19:22 mylaptop dhclient: Listening on LPF/wlan1/my:broadcom:mac
Aug 12 22:19:22 mylaptop dhclient: Sending on LPF/wlan1/my:broadcom:mac
Aug 12 22:19:22 mylaptop dhclient: Sending on Socket/fallback
Aug 12 22:19:22 mylaptop kernel: input: b43legacy-phy0 as /devices/virtual/input/input13
Aug 12 22:19:22 mylaptop kernel: b43legacy-phy0: Loading firmware version 0x127, patch level 14 (2005-04-18 02:36:27)
Aug 12 22:19:22 mylaptop kernel: Registered led device: b43legacy-phy0:radio
Aug 12 22:19:22 mylaptop kernel: ADDRCONF(NETDEV_UP): wlan1: link is not ready
Aug 12 22:20:03 mylaptop avahi-daemon[1256]: Joining mDNS multicast group on interface wlan1.IPv4 with address 192.168.11.15.
Aug 12 22:20:03 mylaptop avahi-daemon[1256]: New relevant interface wlan1.IPv4 for mDNS.
Aug 12 22:20:03 mylaptop avahi-daemon[1256]: Registering new address record for 192.168.11.15 on wlan1.IPv4.
Aug 12 22:20:06 mylaptop avahi-daemon[1256]: Withdrawing address record for 192.168.11.15 on wlan1.
Aug 12 22:20:06 mylaptop avahi-daemon[1256]: Leaving mDNS multicast group on interface wlan1.IPv4 with address 192.168.11.15.
Aug 12 22:20:06 mylaptop avahi-daemon[1256]: Interface wlan1.IPv4 no longer relevant for mDNS.
If you are using NetworkManager, you can edit the connection and enter it in the password field. It gets saved in /etc/sysconfig/networking/devices/key-wlan0. The entry will be
wpa-keys='yourasciikey'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.