Announcement

Collapse
No announcement yet.

Wifi with USB

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

    Wifi with USB

    I have been trying to get wireless internet working with my laptop for many months now, without luck. I am using an SMCWUSB-G key and have tried with two different routers. I have installed the WinXP driver using ndiswrapper.

    ndiswrapper -l
    Installed ndis drivers:
    smcwgu driver present, hardware present

    My /etc/network/interfaces file looks like this:

    auto lo
    iface lo inet loopback
    address 127.0.0.1
    netmask 255.0.0.0

    auto eth0
    iface eth0 inet dhcp

    auto eth1
    iface eth1 inet dhcp

    auto eth2
    iface eth2 inet dhcp

    auto ath0
    iface ath0 inet dhcp

    auto wlan0
    iface wlan0 inet dhcp
    wireless-essid 3Com
    #wireless-channel 06
    #gateway 192.168.2.1

    I have tried uncommenting both the wireless-channel and gateway lines, making no difference.

    ifconfig gives this:

    eth0 Link encap:Ethernet HWaddr 00:14:22:8F:AC:F5
    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:217

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:32 errors:0 dropped:0 overruns:0 frame:0
    TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:2368 (2.3 KiB) TX bytes:2368 (2.3 KiB)

    wlan0 Link encap:Ethernet HWaddr 00:13:F7:1B:16:0E
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:6 errors:0 dropped:0 overruns:0 frame:0
    TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:924 (924.0 b) TX bytes:342 (342.0 b)

    And iwconfig:

    lo no wireless extensions.

    eth0 no wireless extensions.

    wlan0 Auto Access Point: 34:C0:86:02:00:00
    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

    And when I try pinging the router:

    ping 192.168.2.1
    connect: Network is unreachable

    If I try to scan for the network:

    iwlist wlan0 scan
    wlan0 Interface doesn't support scanning : Operation not supported

    But:

    iwlist wlan0 event
    wlan0 Wireless Events supported :
    0x8B04 : Set Frequency/Channel (kernel generated)
    0x8B06 : Set Mode (kernel generated)
    0x8B13 : Spy threshold crossed
    0x8B15 : New Access Point/Cell address - roaming
    0x8B19 : Scan request completed
    0x8B1A : Set ESSID (kernel generated)
    0x8B2A : Set Encoding (kernel generated)
    0x8C00 : Tx packet dropped - retry exceeded
    0x8C02 : Custom driver event
    0x8C03 : Registered node
    0x8C04 : Expired node

    And last, the log:

    07/09/06 02:39:53 localhost kernel [4294700.647000] ndiswrapper version 1.8 loaded (preempt=yes,smp=no)
    07/09/06 02:39:53 localhost kernel [4294700.706000] ndiswrapper: driver smcwgu (SMC,01/11/2006,6.3.4.16) loaded
    07/09/06 02:39:53 localhost kernel [4294702.142000] wlan0: encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK
    07/09/06 02:39:53 localhost kernel [4294702.142000] wlan0: ndiswrapper ethernet device 00:13:f7:1b:16:0e using driver smcwgu, 083A:4505.F.conf
    07/09/06 02:39:53 localhost kernel [4294702.142000] wlan0: vendor: 'SMCWUSB-G 802.11g Wireless USB 2.0 Adapter'
    07/09/06 02:39:53 localhost kernel [4294702.144000] usbcore: registered new driver ndiswrapper
    07/09/06 02:39:53 localhost kernel [4294711.169000] 00000000
    07/09/06 02:39:53 localhost kernel [4294711.169000] <6>ACPI: AC Adapter [AC] (on-line)
    07/09/06 02:39:53 localhost kernel [4294711.169000] Call Trace:
    07/09/06 02:39:53 localhost kernel [4294711.169000] Code: Bad EIP value.
    07/09/06 02:39:53 localhost kernel [4294711.169000] CPU: 0
    07/09/06 02:39:53 localhost kernel [4294711.169000] [default_wake_function+0/32] default_wake_function+0x0/0x20
    07/09/06 02:39:53 localhost kernel [4294711.169000] ds: 007b es: 007b ss: 0068
    07/09/06 02:39:53 localhost kernel [4294711.169000] e05c2bf0 db56a000 00000001 00000000 ea7b27c0 00010000 00000000 00000000
    07/09/06 02:39:53 localhost kernel [4294711.169000] e05e11e4 c012caca 00000000 db56a000 dad5e558 dad5e548 dad5e550 db56a000
    07/09/06 02:39:53 localhost kernel [4294711.169000] eax: c00000bb ebx: dea99240 ecx: 0001010e edx: ffff000d
    07/09/06 02:39:53 localhost kernel [4294711.169000] EFLAGS: 00010286 (2.6.15-23-386)
    07/09/06 02:39:53 localhost kernel [4294711.169000] EIP: 0060:[<00000000>] Tainted: P VLI
    07/09/06 02:39:53 localhost kernel [4294711.169000] EIP is at _stext+0x3feffdc0/0x40
    07/09/06 02:39:53 localhost kernel [4294711.169000] esi: db56a000 edi: 00000246 ebp: db56bf4c esp: db56bf40
    07/09/06 02:39:53 localhost kernel [4294711.169000] [kernel_thread_helper+5/16] kernel_thread_helper+0x5/0x10
    07/09/06 02:39:53 localhost kernel [4294711.169000] [kthread+0/160] kthread+0x0/0xa0
    07/09/06 02:39:53 localhost kernel [4294711.169000] [kthread+147/160] kthread+0x93/0xa0
    07/09/06 02:39:53 localhost kernel [4294711.169000] Modules linked in: ndiswrapper ext3 jbd dm_mod md_mod af_packet parport_pc lp parport tsdev b44 mii joydev rtc pcspkr serio_raw snd_hda_intel snd_hda_codec snd_pcm_oss snd_mixer_oss snd_pcm snd_timer snd psmouse soundcore snd_page_alloc shpchp pci_hotplug intel_agp agpgart sg sd_mod evdev usb_storage scsi_mod reiserfs ide_generic ehci_hcd uhci_hcd usbcore ide_cd cdrom ide_disk piix generic thermal processor fan capability commoncap vga16fb vgastate fbcon tileblit font bitblit softcursor
    07/09/06 02:39:53 localhost kernel [4294711.169000] Oops: 0000 [#1]
    07/09/06 02:39:53 localhost kernel [4294711.169000] *pde = 00000000
    07/09/06 02:39:53 localhost kernel [4294711.169000] [pg0+538545136/1069368320] wrap_work_item_worker+0x0/0xf0 [ndiswrapper]
    07/09/06 02:39:53 localhost kernel [4294711.169000] [pg0+538545281/1069368320] wrap_work_item_worker+0x91/0xf0 [ndiswrapper]
    07/09/06 02:39:53 localhost kernel [4294711.169000] PREEMPT
    07/09/06 02:39:53 localhost kernel [4294711.169000] printing eip:
    07/09/06 02:39:53 localhost kernel [4294711.169000] Process wrapper_wq (pid: 3615, threadinfo=db56a000 task=df367a70)
    07/09/06 02:39:53 localhost kernel [4294711.169000] Stack: d8ff0000 00000000 00000000 00000000 e05c2c81 d8ffccd8 d8ff0000 e05e11e0
    07/09/06 02:39:53 localhost kernel [4294711.169000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    07/09/06 02:39:53 localhost kernel [4294711.169000] [worker_thread+0/656] worker_thread+0x0/0x290
    07/09/06 02:39:53 localhost kernel [4294711.169000] [worker_thread+442/656] worker_thread+0x1ba/0x290
    07/09/06 02:39:53 localhost kernel [4294793.990000] pcc_acpi: loading...
    07/09/06 02:39:53 localhost kernel [4294794.066000] ACPI: Lid Switch [LID]
    07/09/06 02:39:53 localhost kernel [4294794.066000] ACPI: Power Button (CM) [PBTN]
    07/09/06 02:39:53 localhost kernel [4294794.066000] ACPI: Sleep Button (CM) [SBTN]
    07/09/06 02:39:53 localhost kernel [4294794.157000] ibm_acpi: ec object not found
    07/09/06 02:39:53 localhost kernel [4294794.485000] ACPI: Battery Slot [BAT0] (battery present)
    07/09/06 02:39:53 localhost kernel [4294794.540000] ACPI: Video Device [VID2] (multi-head: yes rom: no post: no)
    07/09/06 02:39:53 localhost kernel [4294794.540000] ACPI: Video Device [VID] (multi-head: yes rom: no post: no)
    07/09/06 02:39:53 localhost kernel [4294795.690000] apm: BIOS not found.
    07/09/06 02:39:53 localhost kernel Loaded 23018 symbols from /boot/System.map-2.6.15-23-386.
    07/09/06 02:39:53 localhost kernel No module symbols loaded - kernel modules not enabled.
    07/09/06 02:39:53 localhost kernel Symbols match kernel version 2.6.15.
    07/09/06 02:39:59 localhost /usr/sbin/cron[4318] (CRON) INFO (pidfile fd = 3)
    07/09/06 02:39:59 localhost /usr/sbin/cron[4319] (CRON) INFO (Running @reboot jobs)
    07/09/06 02:39:59 localhost /usr/sbin/cron[4319] (CRON) STARTUP (fork ok)
    07/09/06 02:40:03 localhost kernel [4294805.739000] [drm] Initialized drm 1.0.1 20051102
    07/09/06 02:40:03 localhost kernel [4294805.742000] ACPI: PCI Interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 169
    07/09/06 02:40:03 localhost kernel [4294805.743000] [drm] Initialized i915 1.4.0 20060119 on minor 0
    07/09/06 02:40:10 localhost kdm_greet[4767] Can't open default user face
    07/09/06 02:40:17 localhost kdm_greet[4767] Internal error: memory corruption detected
    07/09/06 02:40:38 localhost kernel [4294840.827000] Bluetooth: Core ver 2.8
    07/09/06 02:40:38 localhost kernel [4294840.827000] Bluetooth: HCI device and connection manager initialized
    07/09/06 02:40:38 localhost kernel [4294840.827000] Bluetooth: HCI socket layer initialized
    07/09/06 02:40:38 localhost kernel [4294840.827000] NET: Registered protocol family 31
    07/09/06 02:40:51 localhost kernel [4294853.558000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:41:30 localhost kernel [4294892.659000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:42:10 localhost kernel [4294932.669000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:42:50 localhost kernel [4294972.678000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:43:30 localhost kernel [4295012.676000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:44:10 localhost kernel [4295052.682000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:44:50 localhost kernel [4295092.688000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:45:27 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
    07/09/06 02:45:30 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
    07/09/06 02:45:30 localhost kernel [4295132.698000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:45:34 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
    07/09/06 02:45:39 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
    07/09/06 02:45:51 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
    07/09/06 02:46:08 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
    07/09/06 02:46:10 localhost kernel [4295172.705000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:46:21 localhost dhclient DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
    07/09/06 02:46:28 localhost dhclient No DHCPOFFERS received.
    07/09/06 02:46:28 localhost dhclient No working leases in persistent database - sleeping.
    07/09/06 02:46:50 localhost kernel [4295213.224000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:47:17 localhost dhclient DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 8
    07/09/06 02:47:25 localhost dhclient DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
    07/09/06 02:47:30 localhost kernel [4295252.730000] ndiswrapper (iw_get_range:1415): getting bit rates failed: C0000001
    07/09/06 02:47:38 localhost dhclient DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 16
    07/09/06 02:47:54 localhost dhclient DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 15

    #2
    Re: Wifi with USB

    Finally I got it to work by completely uninstalling older versions of ndiswrapper. It seems like there was already a default version installed.

    Comment

    Working...
    X