From: Sharad Mittal (sharadmittal_at_yahoo.com)
Date: 2002-10-02 14:23:29 UTC
Hi,
I have a strange kind of problem. I have installed
RedHat 7.3 on soekris 4521 and I am using two D-Link
wireless cards - one as HostAP and the other as normal
wireless client using linux-wlan driver.
The problem is that the hostap driver configures the interface as wlan0 or wlan1 whichever is available. But it seems that the prism2_cs driver is very particular about the interface name (or the sequence in which it is configured).
If the prism2_cs driver comes up before hostap_cs, then everything is fine - wlan0 for prism2_cs and wlan1 for hostap_cs . But if hostap_cs driver comes up before prism2_cs, then hostap_cs takes up wlan0 and prism2_cs fails with the following output:
Jan 19 07:21:48 localhost cardmgr[1038]: socket 0:
Intersil PRISM2 Reference Design 11Mb/s WLAN Card
Jan 19 07:21:48 localhost cardmgr[1038]: executing:
'modprobe prism2_cs'
Jan 19 07:21:48 localhost kernel: init_module:
prism2_cs.o: 0.1.14-pre6 Loaded
Jan 19 07:21:48 localhost kernel: init_module:
dev_info is: prism2_cs
Jan 19 07:21:49 localhost cardmgr[1038]: get dev info
on socket 0 failed: No such device
Jan 19 07:21:49 localhost kernel: prism2sta_attach
called....Niranjan Vikram
Jan 19 07:21:49 localhost kernel: prism2_cs: index
0x01: Vcc 3.3, irq 10, io 0x0140-0x017f
Jan 19 07:21:49 localhost kernel: prism2sta_config: prism2sta_cs: register_wlandev() failed. Jan 19 07:21:49 localhost kernel: prism2sta_event:prism2_cs: Initialization failed!
Infact the IO address it is reporting is of the other card that the hostap has already configured as wlan0. Also the correct driver is loaded for the corresponding card.
Any ideas on why this is happening?
Thanks in advance.
Sharad