ndiswrapper setup problem

Hello,

I have a Toshiba A60 laptop which has this Vendor chipset:

pci 0x168c “Atheros Communications, Inc.”
Device: pci 0x001a “AR2413 802.11bg NIC”

I tried to configure it everyway possible I could find via madwifi and could not >:(. Eventually, I resorted to ndiswrapper. I seemed to have worked,

andreltr:/home/andreltr # dmesg | grep ath
ath5k_pci 0000:01:05.0: registered as ‘phy0’
ath5k phy0: Atheros AR5213A chip found (MAC: 0x78, PHY: 0x45)
ath5k phy0: RF2112A 2GHz radio found (0x56)

The Network Devices/Network Settings option shows:

Overview:

Wireless Network Card (Not connected)
MAC: 00:11:f5:c2:85:9f
Device name: wlan0
Started automatically at boot
IP address assigned using DHCP

Edit:
Address Dynamic Address DHCP
General Activate Device At Boot Time
Firewall Zone
Assign Interface to Firewall Zone:
x Automatically Assigned Zone
Device Control
x Enable Device Control for Non-root
User via KInternet (installed)

Global Options:

x User Controlled with NetworkManager

Hardware:

Udev rules
Device Name
wlan0 (greyed - not modifiable)
Kernel Module
ath5k (not in the blacklist file)

How to make it work please?

Thanks a lot,

André Luiz

Check if it’s working with

iwlist scan

(you’ll need root privileges) and if it does, set up a new connection with KNetworkManager or whatever network applet that you’re using.

Hello,

Thanks for the reply. I’m not close to any ap at this moment however if it was just to check if it is actually working the result is below,

andreltr:/home/andreltr # iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wmaster0 Interface doesn’t support scanning.

wlan0 No scan results

andreltr:/home/andreltr #

Sincerely,

André Luiz

Hello.
I am absolutely new to Linux so I dont know what to do. Ive bought a notebook and set up its modem following [WLAN Cards and Linux - Linux Forums](http://www.linuxforums.org/network/wlan_cards_and_linux.html) All worked good, I clicked the KNetworkManager icon -> connect There was 2 items: eth0 and wlan0. I clicked wlan0 and got connected. But recently the "wlan0" item disappeared and I cant connect/

Here`re some logs:
/sbin/lspci
<…>
06:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)

/sbin/lspci -n
<…>
06:00.0 0200: 168c:001c (rev 01)

/usr/sbin/iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sudo /usr/sbin/iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

also such lines as
ACPI: PCI Interrupt 0000:06:00.0[A] -> GSI 19 (level, low) -> IRQ 19
PCI: Setting latency timer of device 0000:06:00.0 to 64
ath5k_pci 0000:06:00.0: registered as ‘phy0’
ath5k phy0: failed to resume the MAC Chip
ACPI: PCI interrupt for device 0000:06:00.0 disabled
in the dmesg file may also contain useful informace

The output of those commands tells us there is no wlan0 interface anymore. It happened to me all the time while I was still using ndiswrapper. The wireless interface simply disappeared every now and then. It was the main reason that got me searching for alternative drivers. You should read through the stickies in the wireless section and visit swerdna’s site to get a grip on wireless in SuSE. Maybe there is a better driver for your wifi card (it’s an Atheros chip after all). As a temporary workaround, I’d suggest you go to YaST>Network Devices>Network Settings and Delete any wlan interfaces if present, and then Add another wlan0 interface. After a reboot, you should be able to connect via KNetworkManager (by Adding a new connection or simply reenabling an old one).
Good luck!

I never did get my card, which i had to use ndiswrapper, to work with NetworkManager. I had to shut NetworkManager off, and start it manually with ifup wlan0. It works perfectly every time with doing it manually. You may also want to post results of iwconfig, and ndiswrapper -l. In the hardware tab in the device, under module, put ndiswrapper. Did you do a modprobe ndiswrapper, to put the module in the kernel? Also search with dmesg to look for problems.

Thank you, I realized that I should use the original driver:|

Hello,

I’m having a very hard time trying to configure an Atheros wireless card (lspci: 01:05.0 Ethernet controller: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)) in openSUSE 11. First, I tried everything possible using madwifi option to no avail (it seems madwifi does not support this chipset). Eventually, I resorted to ndiswrapper.

andreltr:/home/andreltr/Desktop # iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

andreltr:/home/andreltr/Desktop # ifup wlan0
Interface wlan0 is not available
andreltr:/home/andreltr/Desktop # ifup wlan0
Interface wlan0 is not available

After “deleting” the card the result is as below,

andreltr:/home/andreltr/Desktop # ifup wlan0
wlan0 device: Atheros Communications Inc. AR2413 802.11bg NIC (rev 01)
No configuration found for wlan0
andreltr:/home/andreltr/Desktop # iwlist scan
lo Interface doesn’t support scanning.

eth0 Interface doesn’t support scanning.

wmaster0 Interface doesn’t support scanning.

wlan0 Scan completed :
Cell 01 - Address: 00:17:9A:66:57:4B
ESSID:“BITBAR”
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=25/100 Signal level:-81 dBm Noise level=-97 dBm
Encryption key on
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=00000024c99d6183
Cell 02 - Address: 00:4F:62:20:B2:9A
ESSID:“vex”
Mode:Master
Channel:1
Frequency:2.412 GHz (Channel 1)
Quality=45/100 Signal level:-66 dBm Noise level=-95 dBm
Encryption key : off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=0000005ee33ab19b
Cell 03 - Address: 00: 1B :11 : D4: 83 :A1
ESSID:“Sagrado Cafe”
Mode:Master
Channel:6
Frequency:2.437 GHz (Channel 6)
Quality=14/100 Signal level:-90 dBm Noise level=-99 dBm
Encryption key : off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 6 Mb/s
9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s; 36 Mb/s
48 Mb/s; 54 Mb/s
Extra:tsf=00000027bd5a2299
Cell 04 - Address: 00:14:BF:6D:AB:36
ESSID:“linksys”
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=12/100 Signal level:-93 dBm Noise level=-101 dBm
Encryption key : off
Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
36 Mb/s; 48 Mb/s; 54 Mb/s
Extra:tsf=0000000091d02155

andreltr:/home/andreltr/Desktop #

andreltr:/home/andreltr # iwconfig wlan0 ap auto
andreltr:/home/andreltr # iwconfig wlan0 ap any
andreltr:/home/andreltr # iwconfig wlan0
wlan0 IEEE 802.11 ESSID:“dlink”
Mode:Managed Frequency:2.437 GHz Access Point: Not-Associated
Tx-Power=27 dBm
Retry min limit:7 RTS thr : off Fragment thr=2352 B
Encryption key : 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

andreltr:/home/andreltr # dhclient wlan0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

wmaster0: unknown hardware address type 801
wmaster0: unknown hardware address type 801
Listening on LPF/wlan0/00:11:f5:c2:85:9f
Sending on LPF/wlan0/00:11:f5:c2:85:9f
Sending on Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 1
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
andreltr:/home/andreltr #

Network Devices /Network Settings Gnome menu is set to ifup. The card
configuration setup is as below,

Device name: wlan0
Module Name: ndiswrapper
Device Type: Wireless

Dynamic Address: DHCP
Activate Device: At Boot Time
Assign Interface to Firewall Zone: Automatically Assigned Zone
x Enable Device Control for Non-root User via KInternet

My questions are:

1 - how to conect to one of the wireless networks?

Via Network Settings option?  If so, how come because I change APs often
and would no like to repeat the card configuration everytime I go from one
place to another.

2 - if the wireless network card has been deleted how will KInternet work?

Thanks,

André Luiz