OESF Portables Forum

Everything Else => General Support and Discussion => Zaurus General Forums => Archived Forums => Security and Networking => Topic started by: Prefect47 on August 27, 2005, 10:23:09 am

Title: What Cf Cards Work With Wpa?
Post by: Prefect47 on August 27, 2005, 10:23:09 am
Haven't been using my C860 for some time (except to watch TV shows and movies when I'm travelling) but since access points have popped up around my little town, not to mention at work, I got interested again.

Since I use wireless at home with WPA-PSK, I'd like to know if there are any CF cards that have confirmed support for it. I've read that WPA support is a driver issue but there seems to be some confusion wether it still needs some form of support from the cards hardware/firmware.

Been reading the forums and checking card specs for three hours now without getting that much closer to an answer to this...  

BTW, I'm also planning on changing to OZ on my C860 Real Soon Now ™, will that complicate things wrt wifi/wpa support?
Title: What Cf Cards Work With Wpa?
Post by: Hrw on August 28, 2005, 12:57:02 pm
iirc all Prism based wifi cards works with WPA - you need to check firmware version (have to be 1.7.0 atleast)
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on August 31, 2005, 09:07:12 am
I'm told you need to use hostap driver...

We have an apple airport extreme at work, so I want to get WPA to work.

I've got two wlan cards, the symbol/socket one which is prism based and causes Z to load the prism drivers. It doesn't work with wpa, probably because I don't know the voodoo magic to get it to load hostap and not prism.

The other card is the mercury/zonet zcf110 which causes my Z to load the hostap driver. It doesn't work either,  but the WPA supplicant does fire up, and tries to talk to the airport, but no joy.

I gave up and bought a bluetooth dongle for use at work, and use my desktop suse93 machine as a gateway. It worked first time. Apart from oddities with bluetooth, but that's another story!
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on October 21, 2005, 06:27:18 pm
can anyone tell me how I can make my cacko 860 load the hostap driver when I plug in my prism (socket/symbol) card, so that wpa will work? It currently loads the prism driver which I'm told doesn't support wpa.

I'm told that wpa won't work on my mercury/zonet zcf1100 card - certainly my experience agrees.
Title: What Cf Cards Work With Wpa?
Post by: Hrw on October 22, 2005, 05:21:37 am
speculatrix: install OZ, insert card, configure & run wpa_supplicant

if it does not work then check firmware of card - 1.7.0 or 1.7.4 is needed. To update firmware you need hostap driver (with firmware loading enabled) and hostap-utils.
Title: What Cf Cards Work With Wpa?
Post by: arniel on October 24, 2005, 05:29:30 am
Quote
speculatrix: install OZ, insert card, configure & run wpa_supplicant

if it does not work then check firmware of card - 1.7.0 or 1.7.4 is needed. To update firmware you need hostap driver (with firmware loading enabled) and hostap-utils.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=100485\"][{POST_SNAPBACK}][/a][/div]

If you're going to answer a question, it is customary to attempt to make the answer useful!  Do you work for Micro$oft?  

I am no Z expert, but can I suggest you look in the file /etc/pcmcia/config for the entry matching your card, then edit the line underneath starting "bind" to replace whatever is there with "hostap_cs".  Reboot and see if that works.

As for finding a hostap driver with firmware loading enabled, I'm sorry but I can't answer that question.
Maybe someone with more knowledge than myself will be able to tell you HOW to configure and run wpa_supplicant and where to get the appropriate hostap driver (if the standard one doesn't already have that facility) and firmware from.

HTH.
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on October 24, 2005, 06:19:33 am
** HRW
hmm, install OZ. I assume from your answer that hostap-utils is not available for cacko/sharp rom?

I've been considering trying OZ... when the new release is stable I might.

Where do I get the updated firmware for the socket/symbol wlan card from please? How do I *know* that I need to update the firmware, is there a way of finding out from the card?

** arniel
thanks for the answer, I will give that a go.

Paul
Title: What Cf Cards Work With Wpa?
Post by: Hrw on October 24, 2005, 08:41:42 am
Quote
** HRW
hmm, install OZ. I assume from your answer that hostap-utils is not available for cacko/sharp rom?
Don't know - never used Cacko - I know that this is working under OZ.

Quote
Where do I get the updated firmware for the socket/symbol wlan card from please? How do I *know* that I need to update the firmware, is there a way of finding out from the card?

http://linux.junsun.net/intersil-prism/ (http://linux.junsun.net/intersil-prism/) - Mini-howto on Flashing Intersil Prism Chipsets
http://www.red-bean.com/~proski/firmware/ (http://www.red-bean.com/~proski/firmware/) - firmware collection

Firmware infos:
1.4.9 - Earlier version (1.4.2?) has some problems with PCI-based cards. The symptom is corrupted packets. If you have PCI cards, upgrade to this one.
1.5.6 - This version and later ones enable hostap driver to use standard 4-address packet format for WDS packets.
1.7.0 - minimal version to get WPA working
1.7.4 - No negative reports about this version so far. One report says 1.7.4 supports hiding ESSID.
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on October 24, 2005, 10:43:14 am
that is very helpful, thanks. I have now downloaded the firmwares and verified that cacko has the hostap-utils, so in theory I just need to change the bindings to make Z use hostap and not prism driver, and I can reflash.

news will follow.

thanks very much.
Title: What Cf Cards Work With Wpa?
Post by: Hrw on October 28, 2005, 03:01:50 am
http://www.hrw.one.pl/2005/10/27/prism-firmware-features/ (http://www.hrw.one.pl/2005/10/27/prism-firmware-features/)
Title: What Cf Cards Work With Wpa?
Post by: Prefect47 on October 29, 2005, 07:45:46 am
Been searching high and low for someone/somewhere (preferrably in Sweden) that sells the Socket Low Power / Spectrum24 / Symbol Wireless Networker CF WLAN card. The only one I've found is eXpansys, and they only deliver directly to you during the day which is a hassle if you're at work more than 1h distance from home...

BTW, are all those really different names on the same card? And the orange one is revB, right? As in "not recommended"?
Title: What Cf Cards Work With Wpa?
Post by: Cagilaba on November 07, 2005, 10:43:46 am
Does anyone know if the Linksys WCF12 can be made to work with WPA? I *think* the firmware version on my card is 1.4.2 which it seems from this discussion doesn't support WPA.

Is there a way to upgrade the firmware on this card?
Title: What Cf Cards Work With Wpa?
Post by: Hrw on November 07, 2005, 10:56:28 am
You need atleast 1.7.0 firmware. How to update was discussed already - search in my posts.
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 09, 2005, 05:54:51 am
hmm. well, I couldn't get cacko (1.22) to flash new firmware, so I got a CF-PCMCIA adaptor and tried using my SuSE9.3 laptop. I reconfigured it to use the hostap driver for the card, as per HRW's instructions that reflashing isn't possible otherwise. Here's what I got:

Nov  8 22:59:49 fry cardmgr[4040]: socket 1: Spectrum24 LA4100 Series WLAN PC Card
Nov  8 22:59:50 fry kernel: hostap: module not supported by Novell, setting U taint flag.
Nov  8 22:59:50 fry kernel: hostap_crypt: registered algorithm 'NULL'
Nov  8 22:59:50 fry kernel: hostap_cs: module not supported by Novell, setting U taint flag.
Nov  8 22:59:50 fry kernel: hostap_cs: 0.4.4 - 2005-08-21 (Jouni Malinen <jkmaline@cc.hut.fi>)
Nov  8 22:59:50 fry kernel: hostap_cs: setting Vcc=33 (constant)
Nov  8 22:59:50 fry kernel: hostap_cs: CS_EVENT_CARD_INSERTION
Nov  8 22:59:50 fry kernel: hostap_cs: setting Vcc=33 (from config)
Nov  8 22:59:50 fry kernel: Checking CFTABLE_ENTRY 0x01 (default 0x01)
Nov  8 22:59:50 fry kernel: IO window settings: cfg->io.nwin=1 dflt.io.nwin=1
Nov  8 22:59:50 fry kernel: io->flags = 0x00C7, io.base=0x0000, len=72
Nov  8 22:59:50 fry kernel: hostap_cs: Registered netdevice wifi0
Nov  8 22:59:50 fry kernel: hostap_cs: index 0x01: Vcc 3.3, irq 3, io 0xe080-0xe0c7
Nov  8 22:59:51 fry kernel: hostap_cs: assuming no Primary image in flash - card initialization not completed
Nov  8 22:59:51 fry kernel: wifi0: test Genesis mode with HCR 0x1f
Nov  8 22:59:51 fry kernel: prism2_pccard_cor_sreset: original COR 41
Nov  8 22:59:51 fry kernel: prism2_pccard_genesis_sreset: original COR 41
Nov  8 22:59:51 fry kernel: Readback test failed, HCR 0x1f write 00 e1 a1 ff read 00 ce a1 ce
Nov  8 22:59:51 fry kernel: wifi0: test Genesis mode with HCR 0x0f
Nov  8 22:59:51 fry kernel: prism2_pccard_cor_sreset: original COR 41
Nov  8 22:59:51 fry kernel: prism2_pccard_genesis_sreset: original COR 41
Nov  8 22:59:51 fry kernel: Readback test succeeded, HCR 0x0f
Nov  8 22:59:51 fry kernel: prism2_pccard_genesis_sreset: original COR 41
Nov  8 22:59:51 fry kernel: wifi0: registered netdevice wlan0
Nov  8 22:59:51 fry kernel: wifi0: cannot get RID fdc6 (len=12) - no PRI f/w

the final line simply repeats indefinitely, sometimes saying wifi0, sometimes wlan0.

I also tried a windows reflash utility but it didn't find the card, although Windows was happy to try and use the card.

So, after much googling I found that, according to the Jean Tourrilhes page, the symbol CF wlan card doesn't have any built-in firmware, the host uploads the firmware into the card during initialisation.
http://www.hpl.hp.com/personal/Jean_Tourri...html#SpectrumCF (http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Linux.Wireless.drivers.802.11b.html#SpectrumCF)

I am now puzzled. Or maybe I misunderstood you HRW... is it that OpenZaurus is set up to use the card in hostap mode, and uploads the firmware to the card using the prism2_srec function during boot, and you're not actually upgrading the card at all?

thanks
Paul
Title: What Cf Cards Work With Wpa?
Post by: Hrw on November 09, 2005, 07:19:25 am
"Spectrum24 LA4100 Series WLAN PC Card" is not prism but spectrum based card. I was talking about prism based cards which use hostap_cs driver.

Code: [Select]
card "LA4100 Spectrum24 CF WLAN Card"
  manfid 0x026c, 0x0001
  bind "spectrum_cs"
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 09, 2005, 07:54:01 am
Quote
"Spectrum24 LA4100 Series WLAN PC Card" is not prism but spectrum based card. I was talking about prism based cards which use hostap_cs driver.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102965\"][{POST_SNAPBACK}][/a][/div]

the light dawns. oh no! damnit, I bought the card specifically in the hope it was a prism-based one for WPA, since the cheapo Mercury/Zonet ZCF1100 card didn't appear to work in WPA mode.

sigh.
Title: What Cf Cards Work With Wpa?
Post by: pgas on November 09, 2005, 08:32:13 am
Quote
cheapo Mercury/Zonet ZCF1100

have you tried to flash this one?
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 09, 2005, 09:27:58 am
Quote
Quote
cheapo Mercury/Zonet ZCF1100

have you tried to flash this one?
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]
 (http://index.php?act=findpost&pid=102969\")

Well, according to the faqs, this is a prism3 card not a 2, and it seemed to me from other discussions that the card won't do WPA at all. However, after much googling, I found this:

[a href=\"http://archive.openbsd.nu/?ml=openbsd-arm&a=2005-07&m=1051486]http://archive.openbsd.nu/?ml=openbsd-arm&...05-07&m=1051486[/url]

which says I should be able to reflash it and get WPA working... so I shall give it a go.
Title: What Cf Cards Work With Wpa?
Post by: pgas on November 09, 2005, 09:39:05 am
Quote
Well, according to the faqs, this is a prism3 card not a 2

I thought it was the same card as my senao, (because it was sold as senao/zonet) but the ZCF1100 must be a newer card
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 09, 2005, 09:55:12 am
Quote
Quote
Well, according to the faqs, this is a prism3 card not a 2

I thought it was the same card as my senao, (because it was sold as senao/zonet) but the ZCF1100 must be a newer card
[div align=\"right\"][a href=\"index.php?act=findpost&pid=102975\"][{POST_SNAPBACK}][/a][/div]

I found info was inconsistent... you have to go by the output of
"cardctl config ; cardctl status ; cardctl ident ; cardctl info". It was the "ISL37100P" that led me to the conclusion that it was a prism3. elsewhere I read that other zonet cards were senao based and prism2/2.5. The moral of the story is that you can't tell what a card is until you put it into a linux box and ask it!

My Z reports:
Socket 0:
  Vcc 0.0V  Vpp1 0.0V  Vpp2 0.0V
Socket 1:
  not configured
Socket 0:
  3.3V 16-bit PC Card [suspended]
Socket 1:
  no card
Socket 0:
  product info: "WLAN", "11Mbps_PC-Card_3.0", "ISL37100P", "Eval-RevA"
  manfid: 0x000b, 0x7100
  function: 6 (network)
Socket 1:
  no product info available
PRODID_1="WLAN"
PRODID_2="11Mbps_PC-Card_3.0"
PRODID_3="ISL37100P"
PRODID_4="Eval-RevA"
MANFID=000b,7100
FUNCID=6
PRODID_1=""
PRODID_2=""
PRODID_3=""
PRODID_4=""
MANFID=0000,0000
FUNCID=255
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 09, 2005, 01:25:55 pm
Quote
"cardctl config ; cardctl status ; cardctl ident ; cardctl info". It was the "ISL37100P" that led me to the conclusion that it was a prism3. elsewhere I read that other zonet cards were senao based and prism2/2.5. The moral of the story is that you can't tell what a card is until you put it into a linux box and ask it!

well, after reading the Pavel Roskin site, it seemed that it was unlikely I could mis-flash my zonet card, so I tried it, and it worked! So now I have station firmware 1.8.4.

# hostap_diag -a wifi0
Host AP driver diagnostics information for 'wifi0'

NICID: id=0x801b v1.0.0 (PRISM III PCMCIA (SST parallel flash))
PRIID: id=0x0015 v1.1.1
STAID: id=0x001f v1.8.4 (station firmware)

For my next trick, getting WPA to work.
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 10, 2005, 06:58:40 pm
Quote
well, after reading the Pavel Roskin site, it seemed that it was unlikely I could mis-flash my zonet card, so I tried it, and it worked! So now I have station firmware 1.8.4.
For my next trick, getting WPA to work.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103004\"][{POST_SNAPBACK}][/a][/div]

Woohoo! I can now confirm that WPA did indeed work after flashing/upgrade. The only snag was that my Z then joined the network at work and decided to take control of the windows domain and break everyone's login! I have t (o quickly "disconnect" it from the network, and then remove the entries from inetd.conf to stop smb starting up!

So, to recap what I got to work:
Zaurus SL-C860
Cacko 1.23-heavy
Mercury/Zonet ZCF1100 CF (prismIII) card with station firmware 1.8.4
802.11b with WPA using standard wifi setup, adding the "WPA=y" flag into the wlan-ng.opts and setting up /etc/wpa_supplicant.conf file


How I reflashed: using a PCMCIA adaptor to put the card into my laptop and using the hostap utility called prism2srec command to reflash.


Paul
Title: What Cf Cards Work With Wpa?
Post by: maslovsky on November 11, 2005, 12:38:38 pm
Quote
The only snag was that my Z then joined the network at work and decided to take control of the windows domain and break everyone's login!

Did you set wins support = yes in smb.conf? That makes Zaurus behave like a domain controller

Quote
How I reflashed: using a PCMCIA adaptor to put the card into my laptop and using the hostap utility called prism2srec command to reflash.

The same can be done on Zaurus, just need to awake the card - connect to something or type cardctl scheme qpewlan0; cardctl reset;
Title: What Cf Cards Work With Wpa?
Post by: speculatrix on November 11, 2005, 12:54:01 pm
Quote
Quote
The only snag was that my Z then joined the network at work and decided to take control of the windows domain and break everyone's login!

Did you set wins support = yes in smb.conf? That makes Zaurus behave like a domain controller

the line "wins support = yes" is commented out in default cacko1.13 smb.conf file. I think it should DEFINITELY be set to NO. Otherwise you can upset people!

But I must admit, I've not been running cacko 1.23 long enough to even think about tailoring the smb.conf file... I even forgot that the Z runs samba by default!

Quote
Quote
How I reflashed: using a PCMCIA adaptor to put the card into my laptop and using the hostap utility called prism2srec command to reflash.

The same can be done on Zaurus, just need to awake the card - connect to something or type cardctl scheme qpewlan0; cardctl reset;
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103338\"][{POST_SNAPBACK}][/a][/div]

I got the error that it couldn't reflash when I was running cacko1.22, I didn't try with cacko1.23 as by then I'd starting trying with my laptop.

One oddity was that when wifi0 starts up (maybe only with WPA, I haven't experimented), usb0 disappeared altogether!

One good thing: kismet runs again, previously in c1.22 the kismet client would segfault, and I never found out why. I'm dead chuffed with c1.23 in many ways!