[solved] Two Senao PCMCIA cards in Mips AMD Alchemy board
Josh Green
jgreen
Wed Feb 2 12:12:21 PST 2005
On Wed, 2005-02-02 at 10:01 -0800, Chris wrote:
> Josh Green wrote:
>
> >Hello, I'm attempting to turn an embedded AMD Alchemy board into a
> >wireless access point and bridge between a point to point link. For
> >this I am using 2 Senao 200mW 802.11b cards (the one with 2 antenna
> >
> >
> >
> <snip>
>
> >When this happens, one card will function correctly (wlan0 available,
> >etc) but the other one will not (no wlan1). I can get things to work
> >sometimes if I start PCMCIA then insert one card, wait a bit and then
> >the other. I've posted this to the Linux MIPS list also, in case its a
> >MIPS related problem, but I thought I'd check here as well.
> >I noticed in the hostap_cs.c file this:
> >
> >
> >
> I know nothing about the Alchemy product, but I can tell you that I have
> two Prism2.5-based PCMCIA cards in an x86-based board, with TI PCI1520
> PCI/PCMCIA bridge chips and the cards both come up properly. The kernel
> module used for the PCMCIA hardware is yenta, hostap_cs is v 0.2.4,
> kernel 2.4.26.
>
> >If anyone has any ideas on resolving these issues or can confirm them
> >
> >
> One thing that springs to mind is the maturity of PCMCIA support
> provided for the Alchemy... perhaps this is a more generic problem with
> multiple PCMCIA cards on that platform?
>
> Chris.
>
Just for the record, it turned out to be a general PCMCIA bug in the
kernel I'm using, which is surprising (so I suppose its not a hostap
issue, just wanted to complete the thread for those reading it). Here
is a patch to drivers/pcmcia/ds.c to fix it:
--- ds.c.orig 2005-01-13 06:06:18.000000000 -0800
+++ ds.c 2005-02-02 11:58:29.125469160 -0800
@@ -660,7 +660,7 @@
p_dev = pcmcia_get_dev(p_dev);
if (!p_dev)
continue;
- if ((!p_dev->client.state & CLIENT_UNBOUND) ||
+ if ((!(p_dev->client.state & CLIENT_UNBOUND)) ||
(!p_dev->dev.driver)) {
pcmcia_put_dev(p_dev);
continue;
Best regards,
Josh Green
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20050202/7e8decac/attachment.pgp
More information about the Hostap
mailing list