LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 08-10-2009, 08:11 AM   #1
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Rep: Reputation: 31
Question 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.
 
Old 08-11-2009, 08:54 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Bullseye
Posts: 357

Rep: Reputation: 49
key s:<text> is for WEP and not for WPA
for WPA2 PSK you might have to use wpa_supplicant

in some OS like debian you can directly give the passphrase in the /etc/network/interfaces file.

If you are talking about hex key.. is this WEP or WPA ?
 
Old 08-11-2009, 10:27 AM   #3
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
bhaslinux: it's an ASCII string in a pre-shared key in WPA2. Fedora doesn't seem to have an 'interfaces' file there.
 
Old 08-13-2009, 12:06 PM   #4
ruther
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
I'm having the same issue, but with BOTH WPA and WEP.

I can connect at seemingly random for a few minutes, but then I'm prompted for my key again, and it's not accepted.
 
Old 08-13-2009, 02:55 PM   #5
deesto
Member
 
Registered: May 2002
Location: NY, USA
Distribution: FreeBSD, Fedora, RHEL, Ubuntu; OS X, Win; have used Slackware, Mandrake, SuSE, Xandros
Posts: 448

Original Poster
Rep: Reputation: 31
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.
 
Old 08-14-2009, 06:30 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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'
 
  


Reply

Tags
psk, wpa2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wicd on Fedora 10 will not connect to WPA/WPA2 network after install Mikazo Linux - Wireless Networking 2 04-11-2009 12:38 PM
WPA2-PSK how-to? Mr.Carioca Linux - Wireless Networking 1 02-16-2008 11:41 AM
Fedora 7 - Intel 3945ABG wireless - WPA2 parkerdt Fedora - Installation 8 10-05-2007 04:44 AM
Using WPA2-PSK under Ubuntu Edgy Eft jfmessier Linux - Wireless Networking 3 02-02-2007 09:28 PM
wpa-psk, ipw2200 on Fedora Core 4 doesn't work RoyalGala Linux - Wireless Networking 3 01-25-2006 03:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration