You are not logged in.

#1 2006-08-20 09:53:51

Disabled
Member
Registered: 2006-08-20
Posts: 17

[SOLVED] Iwconfig not working

Hi all, i'm a new arch-user, and i'm trying to set up my wireless card. I've used it with gentoo and ubuntu with success, so, like i did in that 2 distributions, i installed ndiswrapper and loaded the right drivers. The card is now seen by the system as wlan0, but i can't set anything using iwconfig.
For example, this is iwconfig output:

disabled@Dario:~$ iwconfig wlan0
wlan0     IEEE 802.11b  ESSID:off/any
          Mode:Auto  Frequency:2.412 GHz  Access Point: Not-Associated
          Bit Rate:11 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3
          RTS thr:off   Fragment thr:off
          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

When i try to set essid (but also channel or mode) i don't get any error message, but iwconfig don't change them:

disabled@Dario:~$ sudo iwconfig wlan0 essid default
disabled@Dario:~$ iwconfig wlan0
wlan0     IEEE 802.11b  ESSID:off/any
          Mode:Auto  Frequency:2.412 GHz  Access Point: Not-Associated
          Bit Rate:11 Mb/s   Tx-Power:20 dBm   Sensitivity=0/3
          RTS thr:off   Fragment thr:off
          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

Any ideas? Thanks in adance smile

Offline

#2 2006-08-20 19:49:09

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: [SOLVED] Iwconfig not working

using

iwlist scanning

do you see any hotspot?

Offline

#3 2006-08-20 21:13:53

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

Thanks for the reply smile

This is the output of iwlist scanning:

disabled@Dario:~$ iwlist scanning
lo        Interface doesn't support scanning.

eth0      Interface doesn't support scanning.

wlan0     Scan completed :
          Cell 01 - Address: 00:80:C8:AD:17:70
                    ESSID:"default"
                    Protocol:IEEE 802.11b
                    Mode:Managed
                    Frequency:2.437 GHz (Channel 6)
                    Quality:0/100  Signal level:-51 dBm  Noise level:-256 dBm
                    Encryption key:off
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                    Extra:bcn_int=100
                    Extra:atim=16351

ppp0      Interface doesn't support scanning.

sit0      Interface doesn't support scanning.

So, it sees my ap, but still i can't connect to it, even with:

iwconfig wlan0 ap 00:80:C8:AD:17:70

Offline

#4 2006-08-21 05:02:12

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: [SOLVED] Iwconfig not working

yeah it sees the ap, but

Quality:0/100  Signal level:-51 dBm  Noise level:-256 dBm

it couldn't reach it...maybe it wants a stable connection to executing command like setting the essid or anything else...with other distro have you still a strong connection?

/me is going to work for the first day after the summer break  :evil:

Offline

#5 2006-08-21 09:56:40

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

This is the result of iwconfig started from ubuntu:

wlan0     802.11b linked  ESSID:"default"  
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:80:C8:AD:17:70   
          Bit Rate=11 Mb/s   Sensitivity=80/85  
          Retry:on   Fragment thr:off
          Power Management:off
          Link Quality:97/100  Signal level:-37 dBm  Noise level:-253 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

The link is strong sad

Can it be a kernel problem?

Offline

#6 2006-08-21 14:17:23

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [SOLVED] Iwconfig not working

Sounds like a module problem... what module are you using?

Offline

#7 2006-08-21 15:02:16

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

If with module you mean the wireless card module, i use ndiswrapper with the same windows driver on both arch and ubuntu. Arch version is 1.23.

Otherwise i didn't understand what do you mean smile

Offline

#8 2006-08-21 16:01:46

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: [SOLVED] Iwconfig not working

try to compare a

lsmod

between ubuntu and arch...maybe there will be something different  :oops:

Offline

#9 2006-08-21 21:06:46

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

I did as you suggested, but i didn't see nothing important missing, maybe because i'm not so proficient with kernel modules tongue

This is the lsmod on ubuntu, tell me if you see some important module i'm missing:

"af_packet"
"agpgart"
"binfmt_misc"
"bitblit"
"bluetooth"
"capability"
"cdrom"
"commoncap"
"cpufreq_conservative"
"cpufreq_ondemand"
"cpufreq_powersave"
"cpufreq_stats"
"cpufreq_userspace"
"crc_ccitt"
"dm_mod"
"eeprom"
"ehci_hcd"
"evdev"
"ext3"
"fan"
"fat"
"fbcon"
"floppy"
"font"
"freq_table"
"gameport"
"generic"
"hci_usb"
"hwmon_vid"
"i2c_core"
"i2c_isa"
"i2c_viapro"
"ide_cd"
"ide_disk"
"ide_generic"
"ieee80211_rtl"
"ip_conntrack"
"ip_conntrack_ftp"
"ip_conntrack_irc"
"ip_nat"
"ip_nat_ftp"
"ip_nat_irc"
"ip_tables"
"ipt_LOG"
"iptable_filter"
"iptable_mangle"
"iptable_nat"
"ipv6"
"irda"
"isofs"
"jbd"
"l2cap"
"lp"
"md_mod"
"mii"
"nfnetlink"
"nls_cp437"
"nls_iso8859_1"
"ntfs"
"nvidia"
"parport"
"parport_pc"
"pci_hotplug"
"pcmcia_core"
"pcspkr"
"ppdev"
"ppp_async"
"ppp_generic"
"ppp_synctty"
"processor"
"psmouse"
"r818x"
"rfcomm"
"rsrc_nonstatic"
"rtc"
"serio_raw"
"shpchp"
"slhc"
"snd"
"snd_ac97_bus"
"snd_ac97_codec"
"snd_mixer_oss"
"snd_mpu401_uart"
"snd_page_alloc"
"snd_pcm"
"snd_pcm_oss"
"snd_rawmidi"
"snd_seq"
"snd_seq_device"
"snd_seq_dummy"
"snd_seq_midi"
"snd_seq_midi_event"
"snd_seq_oss"
"snd_timer"
"snd_via82xx"
"softcursor"
"soundcore"
"thermal"
"tileblit"
"tsdev"
"udf"
"uhci_hcd"
"usbcore"
"usbhid"
"vfat"
"vga16fb"
"vgastate"
"via_agp"
"via_ircc"
"via_rhine"
"via82cxxx"
"w83627hf"

Thank you very much smile

Offline

#10 2006-08-21 21:43:20

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: [SOLVED] Iwconfig not working

ehm...i need to comparing it to the arch's list wink

Offline

#11 2006-08-21 22:06:25

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [SOLVED] Iwconfig not working

Well, you said you used ndiswrapper before, but I don't see ndiswrapper in ubuntu's list.

Can you post the output of "lspci", and also check if "ndiswrapper -l" reports "hardware present" or not.

Offline

#12 2006-08-21 22:15:19

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

phrakture wrote:

Well, you said you used ndiswrapper before, but I don't see ndiswrapper in ubuntu's list.

Well, it's very strange, i didn't noticed that...

Anyhow, here's my lspci:

disabled@Dario:~$ lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377 [KT400/KT600 AGP] Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI Bridge
00:06.0 Ethernet controller: D-Link System Inc DWL-510 2.4GHz Wireless PCI Adapter (rev 20)
00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: nVidia Corporation NV28 [GeForce4 Ti 4200 AGP 8x] (rev a1)

and ndiswrapper -l:

disabled@Dario:~$ ndiswrapper -l
Installed drivers:
netdlwl         driver installed, hardware present 

As you see, it goes well smile

And for Cagnulein pleasure here's the lsmod done on arch:

Module                  Size  Used by
bsd_comp                5888  0 
ppp_synctty             8320  0 
ppp_async               9728  1 
ndiswrapper           191952  0 
snd_seq_oss            31360  0 
snd_seq_midi_event      6528  1 snd_seq_oss
snd_seq                50256  4 snd_seq_oss,snd_seq_midi_event
ppdev                   7812  0 
lp                      9732  0 
snd_pcm_oss            37664  0 
shpchp                 36520  0 
pci_hotplug            27588  1 shpchp
hci_usb                14228  0 
bluetooth              44004  1 hci_usb
via_rhine              20356  0 
usbhid                 48928  0 
snd_mixer_oss          16128  1 snd_pcm_oss
snd_via82xx            24088  0 
rtc                    10676  0 
i2c_viapro              7828  0 
via_ircc               19860  0 
irda                  121912  1 via_ircc
crc_ccitt               2176  2 ppp_async,irda
pcspkr                  2816  0 
gameport               11656  1 snd_via82xx
snd_ac97_codec         93216  1 snd_via82xx
snd_ac97_bus            2304  1 snd_ac97_codec
snd_pcm                76292  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              19972  2 snd_seq,snd_pcm
snd_page_alloc          8072  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6656  1 snd_via82xx
snd_rawmidi            20256  1 snd_mpu401_uart
snd_seq_device          6796  3 snd_seq_oss,snd_seq,snd_rawmidi
snd                    45924  11 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               7776  1 snd
joydev                  8384  0 
evdev                   8192  1 
via_agp                 8320  1 
serio_raw               5764  0 
mii                     5248  1 via_rhine
parport_pc             24484  1 
nvidia               4528596  20 
ppp_generic            24852  7 bsd_comp,ppp_synctty,ppp_async
slhc                    6528  1 ppp_generic
uhci_hcd               20620  0 
ehci_hcd               29576  0 
agpgart                26980  2 via_agp,nvidia
i2c_core               17536  2 i2c_viapro,nvidia
usbcore               113536  6 ndiswrapper,hci_usb,usbhid,uhci_hcd,ehci_hcd
xfs                   594228  0 
reiserfs              250880  0 
jfs                   183420  0 
ext3                  128264  3 
jbd                    56084  1 ext3
sata_qstor              7684  0 
sata_promise            9220  0 
sata_sil24              9476  0 
sata_nv                 6916  0 
sata_mv                16392  0 
sata_vsc                6020  0 
sata_via                6020  0 
sata_uli                4996  0 
sata_svw                5764  0 
sata_sx4               11652  0 
sata_sis                5636  0 
sata_sil                7432  0 
DAC960                 69832  0 
cciss                  30212  0 
sx8                    15756  0 
cpqarray               19172  0 
mptfc                  10120  0 
mptspi                 13196  0 
mptsas                 19980  0 
mptctl                 22788  0 
mptscsih               19968  3 mptfc,mptspi,mptsas
mptbase                46688  5 mptfc,mptspi,mptsas,mptctl,mptscsih
megaraid_mbox          28560  0 
megaraid_sas           23468  0 
megaraid_mm             9252  1 megaraid_mbox
ata_piix                9732  0 
osst                   51104  0 
megaraid               37064  0 
sym53c8xx              70804  0 
atp870u                30592  0 
aha152x                36688  0 
aic79xx               273112  0 
aic7xxx               176564  0 
ahci                   12676  0 
pdc_adma                7556  0 
libata                 60940  15 sata_qstor,sata_promise,sata_sil24,sata_nv,sata_mv,sata_vsc,sata_via,sata_uli,sata_svw,sata_sx4,sata_sis,sata_sil,ata_piix,ahci,pdc_adma
raid_class              4992  0 
nsp32                  23316  0 
aacraid                56960  0 
ipr                    59300  0 
imm                    10888  0 
parport                33480  4 ppdev,lp,parport_pc,imm
3w_xxxx                24736  0 
tmscsim                20800  0 
dc395x                 32656  0 
3w_9xxx                30724  0 
a100u2w                 9280  0 
BusLogic               22708  0 
sr_mod                 14756  0 
qlogicfas408            6272  0 
st                     35612  0 
sg                     27036  0 
dmx3191d               11264  0 
lpfc                  166080  0 
scsi_transport_sas     21248  1 mptsas
qla1280               116620  0 
sd_mod                 16768  0 
ide_floppy             16256  0 
ide_cd                 36256  0 
cdrom                  35616  2 sr_mod,ide_cd
ide_disk               14208  6 
via82cxxx               8580  0 [permanent]
trm290                  4100  0 [permanent]
triflex                 3328  0 [permanent]
slc90e66                5248  0 [permanent]
sis5513                13064  0 [permanent]
siimage                10496  0 [permanent]
serverworks             8072  0 [permanent]
sc1200                  6656  0 [permanent]
rz1000                  2560  0 [permanent]
piix                    9476  0 [permanent]
pdc202xx_old            9856  0 [permanent]
pdc202xx_new            8448  0 [permanent]
ns87415                 4040  0 [permanent]
it821x                  7684  0 [permanent]
hpt366                 17792  0 [permanent]
hpt34x                  4608  0 [permanent]
generic                 4356  0 [permanent]
cy82c693                4228  0 [permanent]
cs5530                  5120  0 [permanent]
cmd64x                 10652  0 [permanent]
atiixp                  5392  0 [permanent]
amd74xx                13596  0 [permanent]
alim15x3               11148  0 [permanent]
aec62xx                 6656  0 [permanent]
ide_core              113736  27 ide_floppy,ide_cd,ide_disk,via82cxxx,trm290,triflex,slc90e66,sis5513,siimage,serverworks,sc1200,rz1000,piix,pdc202xx_old,pdc202xx_new,ns87415,it821x,hpt366,hpt34x,generic,cy82c693,cs5530,cmd64x,atiixp,amd74xx,alim15x3,aec62xx

Offline

#13 2006-08-21 22:44:22

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: [SOLVED] Iwconfig not working

Oddly enough, it looks like ubuntu is using the "r818x" driver... which is some Realtek wireless driver.  Try removing ndiswapper and loading that one (assuming it's part of the stock kernel).

Also note, some modules load wireless devices as "ethX" devices, which sucks... wireless != ethernet.  Foolish module developers!

Offline

#14 2006-08-22 06:47:35

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

Well, i'm gonna leave for 2 days now, so i won't be able to try that r818x you mentioned, but i will as soon i return wednsday evening smile

I'm sure ndiswrapper loads my wireless device as wlan0 cause i've seen that in the dmesg after loading ndiswrapper modue smile

ndiswrapper version 1.23 loaded (preempt=yes,smp=yes)
ndiswrapper: driver netdlwl (D-Link,05/23/2003,5.140.0523.2003) loaded
ACPI: PCI Interrupt 0000:00:06.0[A] -> GSI 17 (level, low) -> IRQ 20
ndiswrapper: using irq 20
wlan0: vendor: 'D-Link Air Wireless LAN Adapter                                                 '
wlan0: ethernet device 00:40:05:3e:7b:a0 using NDIS driver netdlwl, 1186:3300:1186:3301.5.conf
wlan0: encryption modes supported: WEP

Offline

#15 2006-08-24 00:13:01

Disabled
Member
Registered: 2006-08-20
Posts: 17

Re: [SOLVED] Iwconfig not working

Well, i finally made it smile

After some troubles i was able to compile the rtl8180 driver (this bug is very important) and with that i was able to use my wireless card. Thank you all.

I still can't remember when i installed that driver on ubuntu, cause i was sure to have installed only ndiswrapper, but it doesn't matter tongue[/url]

Offline

#16 2006-08-24 04:26:13

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 260
Website

Re: [SOLVED] Iwconfig not working

Nice!

P.S. Welcome Back!

Offline

Board footer

Powered by FluxBB