LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   WPA2 and PSK in Fedora 11 (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wpa2-and-psk-in-fedora-11-a-746428/)

deesto 08-10-2009 08:11 AM

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.

bhaslinux 08-11-2009 08:54 AM

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 ?

deesto 08-11-2009 10:27 AM

bhaslinux: it's an ASCII string in a pre-shared key in WPA2. Fedora doesn't seem to have an 'interfaces' file there.

ruther 08-13-2009 12:06 PM

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.

deesto 08-13-2009 02:55 PM

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.


jschiwal 08-14-2009 06:30 AM

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'


All times are GMT -5. The time now is 04:23 AM.