pcmcia

Timothy Murphy gayleard at eircom.net
Sun Feb 17 21:48:53 UTC 2008


Amadeus W.M. wrote:

>>> I have
>>> 
>>> alias wlan0 orinoco_cs
>>> 
>>> in /etc/modprobe.conf, and lsmod shows
>>> 
>>> orinoco_cs
>>> orinoco
>>> hermes
>>> hostap_cs
>>> 
>>> 
>>> /sbin/ifconfig -a does report sit0, wifi0-00 and wlan0 besides eth0 and
>>> lo.
>>> 
>>> However, when I try to configure and bring the card up from within
>>> system-config-network it fails trying to determine the IP information.
>> 
>> To me that sounds more like a dhcp problem. What does /var/log/messages
>> say on the subject? And does the access point or machine you are trying
>> to connect to get any DHCPREQUESTs
>> 
>> Also, does ifconfig see the card?
>> And are you running NetworkManager or not?
>> 
>> 
>> --
> 
> 
> This is what /var/log/messages says when I insert the card:
> 
> Feb 17 13:54:19 zeus kernel: pccard: PCMCIA card inserted into slot 0
> Feb 17 13:54:19 zeus kernel: pcmcia: registering new device pcmcia0.0
> Feb 17 13:54:19 zeus kernel: hostap_cs: Registered netdevice wifi0
> Feb 17 13:54:19 zeus kernel: hostap_cs: index 0x01: , irq 3, io
> 0x3080-0x30bf
> Feb 17 13:54:19 zeus kernel: wifi0: NIC: id=0x801b v1.0.0
> Feb 17 13:54:19 zeus kernel: wifi0: PRI: id=0x15 v1.1.0
> Feb 17 13:54:19 zeus kernel: wifi0: STA: id=0x1f v1.4.2
> Feb 17 13:54:19 zeus kernel: wifi0: Warning: secondary station firmware
> version 1.4.2 does not seem to work in Host AP mode
> 
> Then
> 
> [root at zeus ~]# /etc/rc.d/init.d/network stop
> Shutting down loopback interface:                          [  OK  ]
> [root at zeus ~]# /etc/rc.d/init.d/network start
> Bringing up loopback interface:                            [  OK  ]
> Bringing up interface wlan0:  Error for wireless request "Set Mode" (8B06)
> :
>     SET failed on device wlan0 ; Operation not supported.
> 
> Determining IP information for wlan0... failed.
>                                                            [FAILED]
> 
> 
> and finally this is what follows in /var/log/messages (during my network
> restart):
> 
> Feb 17 13:56:45 zeus system-config-network[17253]: -+ //etc/modprobe.conf
> #011eth0 alias 3c59x Feb 17 13:56:46 zeus system-config-network[17253]:
> chmod 0644 //etc/sysconfig/networking/devices/ifcfg-wlan0 Feb 17 13:56:46
> zeus system-config-network[17253]: chmod 0644
> //etc/sysconfig/networking/devices/ifcfg-eth0 Feb 17 13:56:54 zeus
> dhclient: wifi0: unknown hardware address type 801 Feb 17 13:56:54 zeus
> dhclient: wifi0: unknown hardware address type 801 Feb 17 13:56:54 zeus
> dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6 Feb
> 17 13:56:55 zeus avahi-daemon[2173]: Registering new address record for
> fe80::206:25ff:fe2c:5051 on wlan0.*. Feb 17 13:57:00 zeus dhclient:
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11 Feb 17
> 13:57:11 zeus dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67
> interval 13 Feb 17 13:57:24 zeus dhclient: DHCPDISCOVER on wlan0 to
> 255.255.255.255 port 67 interval 15 Feb 17 13:57:39 zeus dhclient:
> DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8 Feb 17
> 13:57:47 zeus dhclient: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67
> interval 8 Feb 17 13:57:47 zeus ntpd[2030]: Listening on interface #13 lo,
> ::1#123 Enabled Feb 17 13:57:47 zeus ntpd[2030]: Listening on interface
> #14 wlan0, fe80::206:25ff:fe2c:5051#123 Enabled Feb 17 13:57:47 zeus
> ntpd[2030]: Listening on interface #15 lo, 127.0.0.1#123 Enabled Feb 17
> 13:57:55 zeus dhclient: No DHCPOFFERS received.
> 
> 
> So yes, it looks like a dhcp problem. I'm not sure pcmcia works ok to
> begin with. The "wifi0: unknown hardware address type 801" can't be good.

I should say I am no expert.
But there seems to me to be some confusion about the interface - 
wifi0 or wlan0 - and also the driver -hostap_cs or orinoco_cs .

But as far as I can see, orinoco_cs/wlan0 does send out a request
DHCPDISCOVER, but doesn't get any response.
For what it is worth, this is what I got recently:
Jan 20 04:00:17 localhost dhclient: DHCPDISCOVER 
  on eth0 to 255.255.255.255 port 67 interval 6
Jan 20 04:00:17 localhost dhclient: DHCPOFFER from 192.168.2.1

If it were me - but I repeat that I am no expert -
I would look at /etc/sysconfig/network-scripts/ifcfg-wlan0
and see if the entries are reasonable.

Also, I'd look at the computer running dhcpd 
that you are trying to connect to,
and see if there was any acknowledgement.

Finally, I've never understood the naming of interfaces,
but my impression is that orinoco_cs prefers to work with eth0, eth1, etc.
But that may be a misunderstanding.

Incidentally, what does "sudo iwlist scan" say?


-- 
Timothy Murphy  
e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland




More information about the fedora-list mailing list