LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 06-23-2008, 05:43 PM   #1
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Rep: Reputation: 15
iwlist HELL. scan returns no results


Hi everyone!
I've got a ralink 2400 card and a rt2400 driver for it. Using Slackware 12.1

When running iwlist wlan0 scan (as root) it returns

iwlist wlan0 scan
wlan0 No scan results

Sometimes if I run

ifconfig wlan0 down
ifconfig wlan0 up

iwlist wlan0 scan would return results of 2-3 networks, but when i run it again it would return No scan results.

I found many topics on this problem, though haven't seen a single solution to it.

Quote:
iwlist --version
iwlist Wireless-Tools version 29
Compatible with Wireless Extension v11 to v22.

Kernel Currently compiled with Wireless Extension v22.

wlan0 Recommend Wireless Extension v21 or later,
Currently compiled with Wireless Extension v22.

Anybody knows how to deal with it?

Thanks

Chaves
 
Old 06-23-2008, 09:26 PM   #2
LinuxManMikeC
Member
 
Registered: Nov 2007
Location: Provo, Utah
Distribution: Debian and Ubuntu
Posts: 74

Rep: Reputation: 15
If I remember correctly, it doesn't actually do the scanning when you run the command iwlist scan, but it scans as soon as the interface is up. Also, it takes time for your card to pick up the broadcast packets from all available networks. So don't expect all the networks to be listed the moment you bring up the interface. Give it 15 - 30 seconds before running iwlist scan. If you have no results then wait 15 - 30 seconds and try again. If after a minute or two of this you still have nothing, then you either you can't pick up any networks, or your system is improperly configured. That is the limit of my knowledge on the subject. Hope it helps.
 
Old 06-24-2008, 02:39 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
An interface has to be 'up' in order to report scan results, that is why you do see networks after you have run 'ifconfig wlan0 up' first.

Eric
 
Old 06-24-2008, 03:08 PM   #4
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
Thanks for the replies.
AlienBob: I know that iwlist only works with the interface up.
what I was saying is that it won't find any networks UNLESS it is run right after i bring wlan0 up.

Examle:
1)
wlan0 down
wlan0 up (in Managed mode)
iwlist wlan0 scan
Results: 0-3 networks. however, there should be at least 5 available.

NOTE:
If wait 10 seconds after these commands and iwlist scan again, thaen no network would be listed!!!

2)
wlan0 down
wlan0 up
wait 1 minute
iwlist wlan0 scan
Results: no scan results

Any ideas?
 
Old 06-24-2008, 04:30 PM   #5
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40
I had a pretty fair mileage with a "rt2500" card
"rt61" (RaLink rt2561) are fine too
in both cases i use the CVS snapshot
Sometimes it's broken, sometimes not.
I'm a member on the serialmonkey forum (it helps)
The guys are doing a tremendous job without any help, except few user's feedback...

so,
RTFM You did RTFM didn't ya?
I would check/try iwpriv,
I would compare the stable against the CVS
I would give the 2x00 a shot too ;-)

did You know that 2x00 has hit the main kernel tree (not sure if still in mm or already in stable branch)?
May be it's time to run a 'own' kernel? I wish You luck and recommend oldconfig with pat's settings, then customize.

please do report as You go...
 
Old 06-25-2008, 07:06 AM   #6
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
rtfm is alway the best solution=))) Though i think the problem is in drivers.
Here is a little update:

I just did an exactly the same installation of Slack 12.1 smp on another computer (sony vaio using iwl3945 driver for its intel card).

after configuring the essid in my iwconfig, the iwconfig looked fine (i.e it found the right mac for my ap). iwlist returns 7 networks.
When i tried runnig dhcpcd wlan0, it wouldn't work and just would bring the wlan0 down.
after a quick search i found that i had a
Quote:
Jun 25 12:36:26 sietch kernel: ADDRCONF(NETDEV_UP): wlan0: link is not ready
message in my /var/log/messages file.
The solution was to run iwconfig wlan0 essid again 0_0
then there was the message that link is found.
dhcpcd wlan0 worked fine.

So the problem is in my card's driver.
It looks like the ralink rt2500 and rt61 are the cards which work fine, but there are problems with rt2400 ones.

If i list all loaded modules, a get the

Quote:
rt2400.ko
rt2400pci.ko
rt2x00lib.ko
rt2x00pci.ko
output for my wifi card.

lsmod returns

Quote:
lp 13348 0
fuse 45588 1
rt2400 80576 0
sg 30224 0
pcmcia 35884 0
rt2400pci 17792 0
rt2x00pci 11136 1 rt2400pci
snd_intel8x0 31900 0
rt2x00lib 21504 2 rt2400pci,rt2x00pci
rfkill 9488 2 rt2x00lib
ac 8068 0
snd_ac97_codec 98724 1 snd_intel8x0
ac97_bus 5760 1 snd_ac97_codec
input_polldev 7304 1 rt2x00lib
snd_pcm 72068 3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
crc_itu_t 5760 1 rt2x00lib
battery 14340 0
Testerday i've downloaded a serialmonkey driver and installed it (following the manual). The only problem was that i kept being redirected from their download page to their main, so in order to download it i had to find a direct link to tarball (found it in one of gentoo forums) and then wget it.

Am I using the 2x00 serialmonkey driver or the initial rt2400 one?
 
Old 06-25-2008, 07:43 AM   #7
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
update:

Just ran slax. it loaded the serialmonkey driver, however the card would behave in the same way. I doubt that this is hardware problems, as i used this card under windows a year ago=))

Though i think that the easies solution would be to just buy another wifi card =\
 
Old 06-27-2008, 04:24 AM   #8
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40
Chaves, pretty serious work You'we done there,

Can You test the card on a windowsPC? That way You would know for sure if the OEM driver works or the card is broken (they kind of 'fade' sometimes)?

If You go for a new card, consult the HCL, and get Yourself that most supported one for those (...most wise spent...) extra few bucks ;-)

please, do provide feedback :-)

Last edited by SCerovec; 06-27-2008 at 04:35 AM. Reason: typo :-(
 
Old 06-28-2008, 02:37 PM   #9
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
can't test it in windows now((
Only have Slackware installed on my fujitsu, and sony's wifi card has a different connector=\

The card seems to work fine in MONITOR mode (i.e. kismet catches packets from around 11 networks).

I do remember using it a year ago, and it was working. After that i just took it out of my laptop and put it in only a couple of weeks ago.
 
Old 06-30-2008, 12:24 PM   #10
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40
If the card works in monitor mode, chances are its working.

Tyr to find any comment about the driver having a 'stable' release, may be its broken for an feature to be added?

Meanwhile the 2x00 project has undergone major changes since merged in kernel ...

I feel like in vacuum for this few months. :-(

I would try to skim the documentation again, for a life-saver tip (few times had bullseye this way )
 
Old 06-30-2008, 12:37 PM   #11
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40
I whish You luck, all I could find was this link:
http://sourceforge.net/project/showf...roup_id=107832
Take for what it's worth
 
Old 06-30-2008, 12:55 PM   #12
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40

It's not easy to be as stupid as I am -
- it takes (alot of) practice!

the other links (for CVS code)
http://rt2x00.serialmonkey.com/wiki/...itle=Downloads
I do apologize
 
Old 07-01-2008, 01:56 PM   #13
Chaves
Member
 
Registered: Mar 2008
Posts: 33

Original Poster
Rep: Reputation: 15
found an old d-link pcmcia card and downloaded the drivers for it (MadWifi).
Using it now.

thanks for the links. I would have a look at them when have some free time=)

Cheers
 
Old 07-02-2008, 01:14 PM   #14
SCerovec
Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware and Porteus
Posts: 616

Rep: Reputation: 40
I assure You, once dealing with ralink You will be pleased

I certainly was
 
Old 07-06-2008, 07:11 AM   #15
nsp
Member
 
Registered: Jul 2006
Location: China
Distribution: Slackware
Posts: 54

Rep: Reputation: 15
Sorry, I deleted my reply, because I thought there was a mistake in it.

Last edited by nsp; 07-06-2008 at 07:28 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
iwlist ath0 no scan results somethinguttered Linux - Newbie 5 09-20-2008 01:03 AM
iwlist no scan results: wlan0 still worked clementis Linux - Wireless Networking 2 03-24-2008 05:20 AM
Iwlist scan y00b Linux - Wireless Networking 17 11-15-2006 08:38 PM
iwlist scan not supported mcd Linux - Wireless Networking 14 02-09-2006 07:42 PM
cannot see any AP using iwlist wlan0 scan dpowers Linux - Wireless Networking 5 08-28-2005 09:36 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration