You are not logged in.

#1 2004-06-30 03:12:07

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Wireless internal nic in Lattitude problems

I just recently rebuilt my dell laptop system and I can't remember what I did to get my wireless card working the first time.  Here's what I have so far...

rc.conf:

...
...
lo="lo 127.0.0.1"
eth0="dhcp"
eth1="dhcp"
INTERFACES=(lo eth0 !eth1)
...
...
DAEMONS=(syslogd klogd hotplug pcmcia network netfs crond xinetd !archstatsrc cups lisa acpid kdm)

modprobe.conf:

...
alias eth0 3c59x
alias eth1 orinoco
...

lsmod does not show orinoco in use and iwconfig returns:

lo        no wireless extensions.

sit0      no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

Can anyone help me get iwconfig to recognize that eth1 is a wireless device?

Thanks

Offline

#2 2004-07-06 08:53:35

taskara
Member
Registered: 2004-07-03
Posts: 18

Re: Wireless internal nic in Lattitude problems

I'm trying to get such a pcmcia card working atm.

I just added pcmcia-cs to default runlevel

and added hotplug, which detects it.

[root@moses linux-2.6.7]# lsmod
Module                  Size  Used by
orinoco_cs              7688  1
orinoco                44428  1 orinoco_cs
hermes                  8320  2 orinoco_cs,orinoco
rtl8150                12160  0
ohci_hcd               20484  0
snd_maestro3           22440  0
snd_ac97_codec         68356  1 snd_maestro3
snd_pcm                91780  1 snd_maestro3
snd_page_alloc          9480  1 snd_pcm
snd_timer              23556  1 snd_pcm
snd                    50276  4 snd_maestro3,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8160  1 snd
pci_hotplug            11524  0
evdev                   7936  0
tsdev                   6016  0

and iwconfig:

[root@moses linux-2.6.7]# iwconfig
lo        no wireless extensions.
 
sit0      no wireless extensions.
 
eth1      no wireless extensions.
 
eth0      IEEE 802.11-DS  ESSID:"SmartClan"  Nickname:"HERMES I"
          Mode:Managed  Frequency:2.457GHz  Access Point: 00:00:00:00:00:00
          Bit Rate:11Mb/s   Tx-Power=15 dBm   Sensitivity:1/3
          Retry limit:4   RTS thr:off   Fragment thr:off
          Encryption key:736D-6172-742D-6E65-7477-6F72-6B
          Power Management:off

maybe this will help you :?

the problem I am having is I can't get it to talk to my AP sad

I've written a bashscript for it, but I get erorrs:

#!/bin/bash
iwconfig eth0 mode Ad-Hoc
iwconfig eth0 ap 00:0d:88:a6:8e:8c
iwconfig eth0 essid SmartClan
iwconfig eth0 channel 6
iwconfig eth0 key s:********
iwconfig eth0 enc open

and when I run it:

[root@moses conf.d]# ./wlan
Error for wireless request "Set AP Address" (8B14) :
    SET failed on device eth0 ; Operation not supported.

it doesn't like setting the AP's address

If I set it to Managed mode it complains about setting the channel..

so I dunno!!

Offline

#3 2004-07-06 21:59:41

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Wireless internal nic in Lattitude problems

I used to have this very same error when using my rt2400-based driver. After loading the module, the card would go into a scanning mode, after which changing the ssid would be impossible. The bug report is at
https://sourceforge.net/tracker/index.p … tid=648844

What should be done is to load the module for the card and change the ssid in the same script, so the card doesn't have a chance to get into 'scanning' mode.

Offline

#4 2004-07-06 22:38:57

taskara
Member
Registered: 2004-07-03
Posts: 18

Re: Wireless internal nic in Lattitude problems

thanks for the thought.

this card won't actually go into scanning mode, even if I force it! smile

anyway I have it all working now.

#!/bin/bash
iwconfig eth0 mode Ad-Hoc
iwconfig eth0 essid SmartClan
iwconfig eth0 channel 6
iwconfig eth0 key s:****
iwconfig eth0 enc open
dhcpcd eth0

did the trick smile

although it would be nice if it was wlan0 instead of eth0.. any ideas?

Offline

#5 2004-07-06 23:08:10

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Wireless internal nic in Lattitude problems

The point of putting everything into a script is so that the card does NOT have the chance to go into scanning mode big_smile

Anyway, since the thing is working now, no problems huh  smile
About the change from eth* to wlan*, this was discussed on the rt2400 forums, and it seems as if such a change might not be so simple, it might require a mini code rewrite. Since function calls and a whole bunch of watchacallamalits would have to be changed.

Either way, there does not seem to be any standard for wireless aliases. Some call it eth*, some wlan*, and some ra*(after RaLink, the original creator of the rt2400 chipset)
It doesn't really matter, anyway, as long as it works fine

Offline

#6 2004-07-06 23:12:33

taskara
Member
Registered: 2004-07-03
Posts: 18

Re: Wireless internal nic in Lattitude problems

true, true.

thanks for your help all the same!

I'm just happy it's finally all working big_smile

and I'm really enjoying archlinux too

cheers!

Offline

#7 2004-07-07 00:42:00

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Wireless internal nic in Lattitude problems

I have a very similar start up script that used to work for me before I re-installed.  Now it doesn't work at all.  I'm having a horrible time getting this to work and I can't imagine what I'm missing.  I've double checked all my backed up configuration files and that doesn't fix it.  I've read all the other posts about wireless configurations and they're not much help solving my problem either. 

Does iwconfig show eth0 as your wireless device upon startup?  I can not get that to happen for me.  Can anyone help?

Thanks

Offline

#8 2004-07-07 01:07:22

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Wireless internal nic in Lattitude problems

iwconfig is a utility that simply controls the settings of the wireless connection, nothing more. It does not automatically get invoked on startup, you have to call it seperately after booting.
In your console, type in iwconfig or /sbin/iwconfig and post the output over here.

What were you using before? archlinux?
In the rc.conf, treat the wireless device just as you would a normal ethernet connection(put in the module entry, if required and set up the interface, dhcp or manually, however it should be done)

Offline

#9 2004-07-07 01:20:16

taskara
Member
Registered: 2004-07-03
Posts: 18

Re: Wireless internal nic in Lattitude problems

sounds like it might be a driver problem.

can you post lsmod?

also, IF your wlan card has the driver loaded correctly, and if wlan is supported in the kernel, then iwconfig should show something like this:

[root@moses root]# iwconfig 
lo        no wireless extensions.

sit0      no wireless extensions.

eth0      IEEE 802.11-DS  ESSID:"SmartClan"  Nickname:"HERMES I"
          Mode:Ad-Hoc  Frequency:2.437GHz  Cell: 00:80:C8:B5:C8:A2  
          Bit Rate:11Mb/s   Tx-Power=15 dBm   Sensitivity:1/3  
          Retry limit:4   RTS thr:off   Fragment thr:off
          Encryption key:736D-6172-742D-6E65-7477-6F72-6B   Security mode:open
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

if not, then the driver is not loaded correctly or you don't have wlan in kernel is my guess.

-chris

Offline

#10 2004-07-07 01:22:55

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Wireless internal nic in Lattitude problems

I see now that I worded my question poorly.  smile  I understand what iwconfig does and have been using it as you described.  (Yes, I did use arch previously.  I liked it so much I re-installed it over my windows partition.)  I have been treating my wireless card just like any other network card but nothing seems to work.  iwconfig shows no wireless cards and nothing I do seems to fix that.  Any ideas?

Thanks

Offline

#11 2004-07-07 01:46:16

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Wireless internal nic in Lattitude problems

$ lsmod
Module                  Size  Used by
prism2_cs              76808  1
p80211                 32272  1 prism2_cs
eth1394                18568  0
ohci_hcd               20484  0
ohci1394               32388  0
ieee1394               96568  2 eth1394,ohci1394
3c59x                  36264  0
snd_intel8x0m          17224  2
pci_hotplug            11524  0
tsdev                   6016  0
evdev                   7936  0
nvidia               4815476  14
sd_mod                 17280  0
cdc_acm                 8992  0
ppp_async              10624  0
ppp_generic            27412  1 ppp_async
slhc                    6912  1 ppp_generic
usb_storage            97936  0
snd_seq_oss            33664  0
snd_seq_midi_event      7040  1 snd_seq_oss
snd_seq                53776  4 snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            51880  0
snd_mixer_oss          18304  1 snd_pcm_oss
snd_intel8x0           32556  2
snd_ac97_codec         68356  2 snd_intel8x0m,snd_intel8x0
snd_pcm                91780  4 snd_intel8x0m,snd_pcm_oss,snd_intel8x0
snd_timer              23556  2 snd_seq,snd_pcm
snd_page_alloc          9480  3 snd_intel8x0m,snd_intel8x0,snd_pcm
gameport                3968  1 snd_intel8x0
snd_mpu401_uart         7040  1 snd_intel8x0
snd_rawmidi            21540  1 snd_mpu401_uart
snd_seq_device          6920  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    50276  20 snd_intel8x0m,snd_seq_oss,snd_seq_midi_even  t,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_  timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               8160  1 snd
ide_scsi               14852  0
$ iwconfig
lo        no wireless extensions.

sit0      no wireless extensions.

eth0      no wireless extensions.

eth1      no wireless extensions.

wlan0     no wireless extensions.
$ more /etc/modprobe.conf
#
# /etc/modprobe.conf (for v2.6 kernels)
#

alias eth0 3c59x
alias eth1 orinoco_cs

alias usb-controller usb-uhci

##ALSA STUFF
alias char-major-116* snd
options snd cards_limit=1
alias snd-card-0 snd-intel8x0
alias char-major-14* soundcore
alias sound-slot-0 snd-card-0
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
alias /dev/sound/dsp snd-pcm-oss
alias /dev/sound/sequencer snd-seq-oss
alias /dev/sound/mixer snd-mixer-oss
install snd-intel8x0 /sbin/modprobe --ignore-install snd-intel8x0 && { /usr/sb
in/alsactl restore; }
remove snd-intel8x0 /usr/sbin/alsactl store
alias /dev/nvidia*   nvidia

Offline

#12 2004-07-07 01:51:05

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Wireless internal nic in Lattitude problems

your modprobe.conf says

alias eth1 orinoco_cs

while your 'lsmod' says 'prism2_cs'

i think you should change your modprobe.conf to

alias eth1 prism2_cs

I had once made that same mistake(assuming this is it), assuming 'via_rhine' instead of using 'sis900'

Offline

#13 2004-07-07 03:48:27

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Wireless internal nic in Lattitude problems

I got it working finally...

/etc/pcmcia/wlan-ng.conf only had drivers for prism2_cs.  To get it working I copied the /etc/pcmcia/config file over the /etc/pcmcia/wlan-ng.conf file (after backing it up of course).  This made it work (because the orinoco driver is listed in the file now) so I'm going to clean everything out of my new wlan-ng.conf that doesn't have anything to do with my wireless card to help reduce console noise.  This works without any mention of my wireless device in rc.conf or modprobe.conf. 

There may be a more elegant way to do this but at least this seems to work for me.

Thanks for all the help!

Offline

#14 2004-07-07 15:14:44

ravster
Member
From: Queen's U, Kingston, Canada
Registered: 2004-05-02
Posts: 285
Website

Re: Wireless internal nic in Lattitude problems

So which one do you use? prism2_cs or orinoco_cs?
Since your lsmod says prism2_cs but you seem to now have added the orinoco_cs to the wlan-ng.conf file.
Congratulations on getting it working  tongue

Offline

#15 2004-07-07 15:26:47

cbozic
Member
From: Morgantown, WV, USA
Registered: 2004-01-31
Posts: 77

Re: Wireless internal nic in Lattitude problems

orinoco_cs is the driver I'm currently using.  prism2_cs no longer shows up in lsmod.  That driver was mapped to my card in my old wlan-ng.conf file so that's why it was showing up in lsmod but becuase it was the wrong driver for my card, nothing would work properly.

Thanks again for the help.

Offline

Board footer

Powered by FluxBB