Networking :: basic WPA help please



Quote (^thehatsrule^ @ Aug. 08 2007,22:34)
It would appear that the prism2 driver does not support that operation: "ioctl[PRISM2_IOCTL_HOSTAPD]: Operation not supported"

It shouldn't be using a prism2 driver as the wg511t uses the atheros chipset, and is correctly identified as this in DSL. Why is it trying to use the Prism2 driver ?
ah, i think you need to pass -Dmadwifi (guess it doesn't try to detect the driver to use ....)

example search: http://damnsmalllinux.org/cgi-bin....40;st=5

You don't need to use the wlanconfig script if you are using wpa. As root (or add sudo to the front of them) use the commands:

ifconfig ath0 up

iwconfig ath0 essid <your_ssid>

wpa_supplicant -Bdd -c<your_wpa_supplicant.conf_file> -iath0 -dmadwifi

pump -iath0

Once this is all working put the commands into /opt/bootlocal.sh. This is run as root at boot-time & so doesn't need sudo in front of the commands in it.

You can check the network is found with iwlist ath0 after the iwconfig command if you want.

Your wpa_supplicant.conf file is OK if you are using wpa-psk. You will need pairwise=ccmp if you are using wpa2-psk. You can tell which is in use from the iwlist results. THere will be a line (or lines) near the bottom of the results which start wpa= or rsn= followed by a long series of characters. The former means wpa-psk is in use & the latter means wpa2-psk is in use - depending on how the ap is set up you could have either or both.

Thanks for that. Progress, but not success yet  :(

Small code error (capital D)  in that the -dmadwifi should be -Dmadwifi            (as in hats' post, just in case others are reading this for help in the future)

But with that, the routine seems to run once and end - photos of the terminal text below. The WG511T lights now start flashing in syncro, which is what happens in win98 when I am using it and it is properly connected.

However trying now to ping the router (at 192.168.0.201) doesn't work, and trying to get an IP with the pump command fails.

It looks as if it is almost there, as the lights on the WG511T are indicating it is connected.

Any ideas ? Does the wpa_supplicant routine look as if it is completing successfully? Is it now just a problem acquiring an IP address ?





(I saw that -Dwext was mentioned for some other distribution - could that be relevant?)

I found this which might help, and indicates the WG511T works with wpa_supplicant in Slackware, Fedora, Debian, SuSe, Kubuntu, Knoppix .... if anyone can dig out from this, what my problem with dsl is, it would be much appreciated.
http://www.linuxquestions.org/hcl....=myprod

Quote
This 32-bit Cardbus 802.11b/g wireless card can achieve up to 108 MB/s transfer rates when used with the proper router, however I don't think it can do this in Linux just yet.
Must first install the MadWifi driver:

http://sourceforge.net/projects/madwifi/

and you can get plenty of help with that here:

http://madwifi.org

Once the drivers are installed I used the following commands to configure the card:
iwconfig ath0 mode Managed
iwconfig essid _your_essid_

set your IP and Subnet Mask and start the card:
ifconfig ath0 x.x.x.x netmask y.y.y.y up

set default gateway:
route add default gw z.z.z.z

set your WEP key:
iwconfig ath0 key ABCDEFEDCB

set the bit rate:
iwconfig ath0 rate 54M

When it is up and working both lights will flash simultaneously. The flashing rate increases when it's transferring data.

That's all. Hope this helps someone.


So I'm now trying :

Code Sample

iwconfig ath0 mode Managed
iwconfig essid SSIDFORDSL
ifconfig ath0 192.168.0.50 netmask 255.255.255.0 up
route add default gw 192.168.0.1
wpa_supplicant -Bdd -c/etc/wpa_supplicant.conf -iath0 -Dmadwifi


Now I can try to ping but nothing happens, and opening a web browser is unable to resolve the web address.

Next Page...
original here.