Announcement

Collapse
No announcement yet.

iwlist scan......"no scan results"

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    iwlist scan......"no scan results"

    I am unable to connect to the internet in kubuntu.

    I am running kubuntu 10.04 (2.6.32-28-generic) and I use a TurboTenna NextG USB-Yagi Antenna, I also run Windows 7 and BackTrack 5 (2.6.38) on the same machine and have no problem connecting to the internet on either OS.

    After installing kubuntu I immediately noticed that I had not net connection, I found the network manager and clicked a few buttons but had no joy, so I decided to install wicd (and remove KNetworkManger) as it seemed to work well in BackTrack and thought that this might solve my problem.....it didn't, so after deciding that the network manager was not at fault I googled around and found a few posts that did nothing to really to help me. I finally ran 'iwlist wlan0 scan' and received back 'No scan results' at which point I find myself at a dead end.

    For reference:

    Running 'iwconfig' gives me:

    Code:
    lo   no wireless extensions
    eth0   no wireless extensions
    wlan0   IEEE 802.11bgn ESSID:off/any Mode:Managed Access Point: Not-Associated 
           Tx-Power=11 dBm Retry long limit:7 RTS thr:off Fragment thr:off Power Management:on

    while 'ifconfig' gives:

    Code:
    eth0   Link encap:Ethernet HWaddr e0:cb:4e:8f:d9:82 
         UP BROADCAST MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
         Interrupt:41 Base address:0xc000 
    
    lo    Link encap:Local Loopback 
         inet addr:127.0.0.1 Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING MTU:16436 Metric:1
         RX packets:40 errors:0 dropped:0 overruns:0 frame:0
         TX packets:40 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0 
         RX bytes:2400 (2.4 KB) TX bytes:2400 (2.4 KB)
    
    wlan0   Link encap:Ethernet HWaddr 00:e0:08:27:88:5a 
         UP BROADCAST MULTICAST MTU:1500 Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000 
         RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
    I have also ran 'lsmod' in both kubuntu and BackTrack to see if the drivers being used are the same and indeed they are as far as I can see, apart from BackTrack uses 'rt2800lib' I'm not sure if this is the problem or how to remedy it if it is.

    is anyone able to help?

    #2
    Re: iwlist scan......"no scan results"

    I'm not the most proficient with wireless issues, but I see the help is slow in coming ...

    So, to remove network-manager, there are several packages and configuration items that need to be removed and changed.

    http://kubuntuforums.net/forums/inde...opic=3114730.0

    http://kubuntuforums.net/forums/inde...4583#msg224583

    http://kubuntuforums.net/forums/inde...opic=3114961.0



    Comment


      #3
      Re: iwlist scan......"no scan results"

      Thanks for the response dibl, it's much appreciated. I tried all those things but still the problem remains.

      Comment


        #4
        Re: iwlist scan......"no scan results"

        OK. Did you see the recommendation to blacklist the Broadcom driver modules that you don't want to use?

        Also, can you post the file /etc/network/interfaces, please?

        Comment


          #5
          Re: iwlist scan......"no scan results"

          I did not see that, was it in one of those links you posted up? I'm not entirely sure what drivers are in use or which ones are supposed to be in use and which aren't (or indeed how to blacklist them, but I can find out how to do that myself)

          /etc/network/interfaces:

          Code:
          auto lo
          iface lo inet loopback
          Thanks again

          Comment


            #6
            Re: iwlist scan......"no scan results"

            Use "kdesudo kate" to edit your /etc/network/interfaces file. It needs to read like this:

            Code:
            auto lo
            iface lo inet loopback
            
            allow-hotplug eth0
            iface eth0 inet dhcp
            I'd like to see the exact model of your wireless chip (apparently it is a Ralink). Use "lspci" and paste in the line from the output that shows the wireless chip. (or lsusb if the wireless chip is only on the USB dongle)

            In your "System > Additional Drivers", did you see any firmware offered for a Ralink chip?

            Also since we know it needs a ralink driver, can you run "lsmod" again, this time looking for a driver that reads "rt2800xx". If you don't see one, and since we know the one that BackTrack is using, you could try a
            Code:
            sudo modprobe rt2800lib
            and see if that helps.

            Here's Ubuntu's guidance: https://help.ubuntu.com/community/WifiDocs


            Comment


              #7
              Re: iwlist scan......"no scan results"

              So I changed my /etc/network/interfaces file to read:

              Code:
              auto lo
              iface lo inet loopback
              
              allow-hotplug wlan0
              iface wlan0 inet dhcp
              as I figured it was actually the wlan0 interface that needs to be hot-pluggable (I assume that is what you meant to type, correct me if I am wrong)


              I issued the command 'lsusb' which returned:
              Code:
              Bus 001 Device 003: ID 148f:3070 Ralink Technology, Corp.

              and I checked "System > Additional Drivers" which says "No proprietary drivers are in use in use on this system", and none are offered.

              running 'lsmod |grep rt2' outputs:
              Code:
              rt2870sta       525366 0 
              rt2800usb       33496 0 
              rt2x00usb       11260 1 rt2800usb
              rt2x00lib       32133 2 rt2800usb,rt2x00usb
              led_class        3764 1 rt2x00lib
              mac80211       238896 2 rt2x00usb,rt2x00lib
              cfg80211       148725 2 rt2x00lib,mac80211
              crc_ccitt        1675 1 rt2800usb
              I figured that the 'rt2x00lib' entry would be equivalent to the 'rt2800lib' found on the BackTrack installation, but I ran 'sudo modprobe rt2800lib' anyway which promptly failed:
              Code:
              FATAL: Module rt2800lib not found.

              Futher, following the advice here: https://help.ubuntu.com/community/Wi...roubleshooting I can issue the command 'sudo ifup wlan0' and my dongle does infact send DHCP requests to the broadcast IP:
              Code:
              Internet Systems Consortium DHCP Client V3.1.3
              Copyright 2004-2009 Internet Systems Consortium.
              All rights reserved.
              For info, please visit [url]https://www.isc.org/software/dhcp/[/url]
              
              Listening on LPF/wlan0/00:e0:08:27:88:5a
              Sending on  LPF/wlan0/00:e0:08:27:88:5a
              Sending on  Socket/fallback
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 6
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 9
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
              DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 1
              No DHCPOFFERS received.
              No working leases in persistent database - sleeping.
              grep: /etc/resolv.conf: No such file or directory
              but looking at the output of 'iwconfig' as posted in my original post, my card isn't able to "see" any AP.


              Following steps on this page https://help.ubuntu.com/community/Wi...gGuide/Devices, I ran the command 'lshw -C network':
              Code:
               *-network
                  description: Wireless interface
                  physical id: 1
                  logical name: wlan0
                  serial: 00:e0:08:27:88:5a
                  capabilities: ethernet physical wireless
                  configuration: broadcast=yes multicast=yes wireless=IEEE 802.11bgn
              and then went to https://help.ubuntu.com/community/Wi...gGuide/Drivers which says "...Use the lshw command. As explained under lshw, if there is a line saying configuration: ...driver=... in the description of the wireless card, this indicates the driver is installed." and as you can see from the output above there is no 'driver=' at which point I become confused, because surely if the card does send DHCP requests as above then the drivers must be installed and working??

              Comment


                #8
                Re: iwlist scan......"no scan results"

                Correct. If the card is sending DHCP requests the driver is working.

                iwconfig won't give you any information unless you're already associated with an access point - what you want to do is

                sudo iwlist wlan0 scan

                Please post the output of that command.

                thanks -
                we see things not as they are, but as we are.
                -- anais nin

                Comment


                  #9
                  Re: iwlist scan......"no scan results"

                  So I issued the command 'sudo iwlist wlan0 scan' and received
                  Code:
                  wlan0 No scan results
                  As was the situation when I started the thread, although interestingly this now takes a couple of seconds to return this result, whereas before (when the thread began) this was returned instantly.

                  Comment


                    #10
                    Re: iwlist scan......"no scan results"

                    wizard knows far more about these devices than I do, but I am suspicious that there might be too many drivers loaded, as shown in your lsmod output. I saw this post yesterday but neglected to link it for you: http://kubuntuforums.net/forums/inde...opic=3114312.0

                    Note that he was successful by blacklisting the non-needed modules.

                    I'm thinking maybe yours needs only the rt2800usb and/or the rt2x00usb modules. I don't think the pci modules would do any good, and they might conflict, so try blacklisting them and then reboot. Maybe first blacklist all but the rtx00usb, then if just that one doesn't work, try blacklisting all but the rt2800usb module, and if that doesn't work try it with both of the usb modules not blacklisted.

                    Comment


                      #11
                      Re: iwlist scan......"no scan results"

                      In addition,

                      lspci -v

                      should tell you which driver is in use.

                      Another thing that might be interesting is to use ifconfig to give the interface a static IP and see if you can ping the access point.
                      we see things not as they are, but as we are.
                      -- anais nin

                      Comment


                        #12
                        Re: iwlist scan......"no scan results"

                        Thank you both again for the quick responses, I feel a bit guilty that I can't respond straight away but my girlfriend has traveled a couple of hundred miles to see me for the weekend. I'll look at those links and run those commands ASAP and hopefully post a reply for the next 24 hours or so......

                        Comment


                          #13
                          Re: iwlist scan......"no scan results"

                          A weekend with the girlfriend is normally a far more enjoyable experience than fixing a computer ....

                          Comment


                            #14
                            Re: iwlist scan......"no scan results"

                            So first things first, I added different combinations of entries to the /etc/modeprobe.d/blacklist.conf file as per this link http://kubuntuforums.net/forums/inde...opic=3114312.0 and rebooted with no change. Running 'lsmod' again to check the changes had taken effect gave this output:

                            Code:
                            ppdev          6375 0 
                            snd_hda_codec_atihdmi   3023 1 
                            fbcon         39270 71 
                            tileblit        2487 1 fbcon
                            font          8053 1 fbcon
                            bitblit         5811 1 fbcon
                            softcursor       1565 1 bitblit
                            vga16fb        12757 0 
                            vgastate        9857 1 vga16fb
                            snd_hda_codec_via   33207 0 
                            rt2870sta       525366 0 
                            arc4          1473 2 
                            snd_usb_audio     92747 1 
                            snd_hda_intel     25741 2 
                            snd_hda_codec     85759 3 snd_hda_codec_atihdmi,snd_hda_codec_via,snd_hda_intel
                            snd_usb_lib      19193 1 snd_usb_audio
                            snd_pcm_oss      41394 0 
                            snd_mixer_oss     16299 1 snd_pcm_oss
                            rt2800usb       33496 0 
                            snd_seq_dummy      1782 0 
                            snd_pcm        87946 4 snd_usb_audio,snd_hda_intel,snd_hda_codec,snd_pcm_oss
                            rt2x00usb       11260 1 rt2800usb
                            snd_seq_oss      31191 0 
                            rt2x00lib       32133 2 rt2800usb,rt2x00usb
                            snd_seq_midi      5829 0 
                            led_class        3764 1 rt2x00lib
                            snd_seq_midi_event   7267 2 snd_seq_oss,snd_seq_midi
                            mac80211       238896 2 rt2x00usb,rt2x00lib
                            ohci1394        30260 0 
                            radeon        742816 2                                                   
                            snd_seq        57481 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event 
                            uvcvideo        62819 0                                                   
                            ttm          60847 1 radeon                                                
                            snd_timer       23649 2 snd_pcm,snd_seq                                           
                            drm_kms_helper     30742 1 radeon                                                
                            cfg80211       148725 2 rt2x00lib,mac80211                                          
                            snd_rawmidi      23420 2 snd_usb_lib,snd_seq_midi     
                            videodev        40518 1 uvcvideo                                               
                            snd_seq_device     6888 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq,snd_rawmidi       
                            v4l1_compat      15495 2 uvcvideo,videodev                                          
                            v4l2_compat_ioctl32  11892 1 videodev                                               
                            snd_hwdep        6924 2 snd_usb_audio,snd_hda_codec 
                            crc_ccitt        1675 1 rt2800usb                                              
                            drm          198948 4 radeon,ttm,drm_kms_helper
                            psmouse        64576 0                                                   
                            serio_raw        4918 0                                                   
                            snd          71251 18 snd_usb_audio,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_mixer_oss,
                            snd_pcm,snd_seq_oss, snd_seq,snd_timer,snd_rawmidi,snd_seq_device,snd_hwdep 
                            xhci          41830 0                                                   
                            i2c_algo_bit      6024 1 radeon                                                
                            asus_atk0110      10033 0                                                   
                            soundcore        8052 1 snd                                                 
                            snd_page_alloc     8500 2 snd_hda_intel,snd_pcm
                            lp           9336 0 
                            parport        37160 2 ppdev,lp
                            usbhid         41116 0 
                            hid          83536 1 usbhid
                            usb_storage      49961 0 
                            ieee1394        94771 1 ohci1394
                            ahci          37870 4 
                            r8169         39714 0 
                            mii           5237 1 r8169
                            pata_jmicron      2747 0
                            This was actually with all these entries in the /etc/modeprobe.d/blacklist.conf file (thought I may as well add all of them as I had tried various other combinations of entries with no luck)

                            Code:
                            blacklist rt2800pci
                            blacklist rt2800lib
                            blacklist rt2x00usb
                            blacklist rt2x00pci
                            blacklist rt2x00lib
                            as you can see the blacklisted drivers are still in use. But before I look any further into this I must admit that before starting this thread I had compared the output of 'lsmod' from both kubuntu and BackTrack installations and could see that the same drivers were in use on both systems and so was a bit sceptical that this was the solution (although of course always worth a try),

                            BackTrack 'lsmod'

                            Code:
                            nls_iso8859_1      4665 1 
                            nls_cp437        6383 1 
                            vfat          10867 1 
                            fat          53835 1 vfat
                            snd_hda_codec_hdmi   24641 1 
                            snd_hda_codec_via   58965 1 
                            snd_hda_intel     25353 2 
                            snd_hda_codec     88363 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
                            rt2870sta       441743 0 
                            snd_pcm_oss      39737 0 
                            snd_usb_audio     105718 1 
                            snd_mixer_oss     15545 1 snd_pcm_oss
                            snd_hwdep        6666 2 snd_hda_codec,snd_usb_audio
                            snd_usbmidi_lib    20529 1 snd_usb_audio
                            snd_pcm        83404 5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss,snd_usb_audio
                            arc4          1505 2 
                            snd_seq_dummy      1782 0 
                            snd_seq_oss      29952 0 
                            rt2800usb       11972 0 
                            rt2800lib       35625 1 rt2800usb
                            snd_seq_midi      5676 0 
                            snd_rawmidi      21765 2 snd_usbmidi_lib,snd_seq_midi
                            crc_ccitt        1581 2 rt2870sta,rt2800lib
                            snd_seq_midi_event   6708 2 snd_seq_oss,snd_seq_midi
                            snd_seq        54693 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
                            snd_timer       21990 2 snd_pcm,snd_seq
                            rt2x00usb       10464 1 rt2800usb
                            snd_seq_device     6265 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
                            rt2x00lib       36198 3 rt2800usb,rt2800lib,rt2x00usb
                            uvcvideo        63153 0 
                            psmouse        60384 0 
                            asus_atk0110      10722 0 
                            lp           9893 0 
                            snd          65330 21 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel,snd_hda_codec,snd_pcm_oss,
                            snd_usb_audio, snd_mixer_oss,snd_hwdep,snd_usbmidi_lib,snd_pcm,snd_seq_oss,
                            snd_rawmidi,snd_seq,snd_timer, snd_seq_device
                            videodev        72410 1 uvcvideo
                            snd_page_alloc     8117 2 snd_hda_intel,snd_pcm
                            xhci_hcd        65431 0 
                            wmi           9912 0 
                            v4l2_compat_ioctl32   7512 1 videodev
                            mac_hid         3869 0 
                            serio_raw        4784 0 
                            mac80211       269729 3 rt2800lib,rt2x00usb,rt2x00lib
                            soundcore        7208 1 snd
                            parport        34080 1 lp
                            cfg80211       165057 2 rt2x00lib,mac80211
                            rfkill         18476 1 cfg80211
                            usbhid         38397 0 
                            hid          82119 1 usbhid
                            usb_storage      48102 1 
                            uas           8788 0 
                            radeon        961662 2 
                            ttm          64930 1 radeon
                            r8169         41388 0 
                            drm_kms_helper     32506 1 radeon
                            mii           4798 1 r8169
                            ahci          21302 3 
                            libahci        21959 1 ahci
                            pata_jmicron      2779 0 
                            drm          204443 5 radeon,ttm,drm_kms_helper
                            i2c_algo_bit      5564 1 radeon



                            So on to the next post, I ran 'lsusb -v' (as it is a usb device), this seems to be the relevant section from what I can see but I am unable to see where it lists the drivers that it is using, unless of course I am missing something or looking at the wrong part of the output.

                            Code:
                            Bus 001 Device 005: ID 148f:3070 Ralink Technology, Corp. 
                            Device Descriptor:
                             bLength        18
                             bDescriptorType     1
                             bcdUSB        2.00
                             bDeviceClass      0 (Defined at Interface level)
                             bDeviceSubClass     0 
                             bDeviceProtocol     0 
                             bMaxPacketSize0    64
                             idVendor      0x148f Ralink Technology, Corp.
                             idProduct     0x3070 
                             bcdDevice      1.01
                             iManufacturer      1 Ralink
                             iProduct        2 802.11 n WLAN
                             iSerial         3 1.0
                             bNumConfigurations   1
                             Configuration Descriptor:
                              bLength         9
                              bDescriptorType     2
                              wTotalLength      67
                              bNumInterfaces     1
                              bConfigurationValue   1
                              iConfiguration     0 
                              bmAttributes     0x80
                               (Bus Powered)
                              MaxPower       450mA
                              Interface Descriptor:
                               bLength         9
                               bDescriptorType     4
                               bInterfaceNumber    0
                               bAlternateSetting    0
                               bNumEndpoints      7
                               bInterfaceClass    255 Vendor Specific Class
                               bInterfaceSubClass  255 Vendor Specific Subclass
                               bInterfaceProtocol  255 Vendor Specific Protocol
                               iInterface       5 1.0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x81 EP 1 IN
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x01 EP 1 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x02 EP 2 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x03 EP 3 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x04 EP 4 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x05 EP 5 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                               Endpoint Descriptor:
                                bLength         7
                                bDescriptorType     5
                                bEndpointAddress   0x06 EP 6 OUT
                                bmAttributes      2
                                 Transfer Type      Bulk
                                 Synch Type        None
                                 Usage Type        Data
                                wMaxPacketSize   0x0200 1x 512 bytes
                                bInterval        0
                            Device Qualifier (for other device speed):
                             bLength        10
                             bDescriptorType     6
                             bcdUSB        2.00
                             bDeviceClass      0 (Defined at Interface level)
                             bDeviceSubClass     0 
                             bDeviceProtocol     0 
                             bMaxPacketSize0    64
                             bNumConfigurations   1
                            Device Status:   0x0000
                             (Bus Powered)

                            Comment


                              #15
                              Re: iwlist scan......"no scan results"

                              Bummer. Yes, I would expect the same set of drivers that work with BackTrack will also work with Ubuntu. I didn't realize there were multiple ralink drivers loaded in BT. So, that should be right for Ubuntu also.

                              On the "hotplug" item in your /etc/network/interfaces file, it should be "eth0". That merely lets you plug in an ethernet cable with the system running.

                              Did you try the iwlist scan with a "sudo" prefix?

                              Code:
                              sudo iwlist wlan0 scan


                              Comment

                              Working...
                              X