PDA

View Full Version : How to access an ap with shared key using madwifi (fc3)


verraux
12th December 2004, 04:17 AM
Hi guys,

If you can use madwifi driver in open mode and cannot use it in shared key mode that applies to you. I found it here:

http://sourceforge.net/mailarchive/message.php?msg_id=9801263

you can issue this command as root and try to reactivate the connection
iwpriv ath0 authmode 2 # shared key authentication

or if you want the wireless connection to be activated on boot you should add these lines to
/etc/sysconfig/network-scripts/ifcfg-ath0

KEY='h:yourkey' #do not use 0x here
IWPRIV="authmode 2"

I am posting whole content of ifcfg-ath0 in case you need other parameters:

IPV6INIT=no
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
GATEWAY=
TYPE=Wireless
DEVICE=ath0
HWADDR=00:90:96:c1:d3:31
BOOTPROTO=dhcp
NETMASK=
DHCP_HOSTNAME=
IPADDR=
DOMAIN=
ESSID=yourssid
CHANNEL=6
MODE=Managed
RATE=Auto
KEY='h:yourkey'
IWPRIV="authmode 2"

p.s: the punctuation is as is (no need not use extra ' or " )

Have fun,

xula_1983
31st August 2007, 05:21 AM
use command:
iwconfig ath0 essid "Network Name" key s:<your key>