Hello Tomdylan,
Since you have OpenSuSE 11.2, another approach than ndiswrapper might be handier. OpenSuSE has drivermodule ar9170usb, developed by compat-wireless for your and other usb wlan sticks.
Let me explain what I did:
After a fresh install of OpenSuSE 11.2, open a terminal window and make yourself superuser.
Command iwconfig gives this:
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=8 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
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
Get firmware file ‘ar9170.fw’ from ar9170 - Linux Wireless and put it in /lib/firmware, where, by the way, firmware files ar9170-1.fw and ar9170-2.fw also happen to be (but they won’t work with the Fritz!WLAN usb N2.4).
Open a terminal window, change to su, give the command tail -f /var/log/messages, put the stick in one of the USB ports and these line appear in /var/log/messages, that tell that the stick is seen as a usb mass storage device.
Feb 7 14:45:48 linux-3a4c kernel: 659.620069] usb 1-2: new high speed USB device using ehci_hcd and address 5
Feb 7 14:45:49 linux-3a4c kernel: 659.783403] usb 1-2: New USB device found, idVendor=057c, idProduct=84ff
Feb 7 14:45:49 linux-3a4c kernel: 659.783430] usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
Feb 7 14:45:49 linux-3a4c kernel: 659.783444] usb 1-2: Product: FRITZ!WLAN USB Stick N 2.4
Feb 7 14:45:49 linux-3a4c kernel: 659.783456] usb 1-2: Manufacturer: AVM Berlin
Feb 7 14:45:49 linux-3a4c kernel: 659.783466] usb 1-2: SerialNumber: 001F3F092D40
Feb 7 14:45:49 linux-3a4c kernel: 659.783714] usb 1-2: configuration #1 chosen from 1 choice
Feb 7 14:45:49 linux-3a4c kernel: 659.828453] Initializing USB Mass Storage driver…
Feb 7 14:45:49 linux-3a4c kernel: 659.828846] scsi4 : SCSI emulation for USB Mass Storage devices
Feb 7 14:45:49 linux-3a4c kernel: 659.828977] usb-storage: device found at 5
Feb 7 14:45:49 linux-3a4c kernel: 659.828980] usb-storage: waiting for device to settle before scanning
Feb 7 14:45:49 linux-3a4c kernel: 659.828992] usbcore: registered new interface driver usb-storage
Feb 7 14:45:49 linux-3a4c kernel: 659.829000] USB Mass Storage support registered.
Feb 7 14:45:50 linux-3a4c kernel: 660.838205] scsi 4:0:0:0: CD-ROM FRITZ! WLAN selfinstall 1.00 PQ: 0 ANSI: 0 CCS
Feb 7 14:45:50 linux-3a4c kernel: 660.850928] sr1: scsi3-mmc drive: 52x/52x cd/rw xa/form2 cdda tray
Feb 7 14:45:50 linux-3a4c kernel: 660.851226] sr 4:0:0:0: Attached scsi CD-ROM sr1
Feb 7 14:45:50 linux-3a4c kernel: 660.851384] sr 4:0:0:0: Attached scsi generic sg2 type 5
Feb 7 14:45:50 linux-3a4c kernel: 660.852058] usb-storage: device scan complete
Feb 7 14:45:50 linux-3a4c kernel: 661.759415] sr 4:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Feb 7 14:45:50 linux-3a4c kernel: 661.759439] sr 4:0:0:0: [sr1] Sense Key : Illegal Request [current]
Feb 7 14:45:50 linux-3a4c kernel: 661.759451] sr 4:0:0:0: [sr1] Add. Sense: Logical block address out of range
Feb 7 14:45:50 linux-3a4c kernel: 661.759464] end_request: I/O error, dev sr1, sector 3784
Feb 7 14:45:50 linux-3a4c kernel: 661.759473] Buffer I/O error on device sr1, logical block 946
Feb 7 14:45:51 linux-3a4c kernel: 661.769795] sr 4:0:0:0: [sr1] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Feb 7 14:45:51 linux-3a4c kernel: 661.769814] sr 4:0:0:0: [sr1] Sense Key : Illegal Request [current]
Feb 7 14:45:51 linux-3a4c kernel: 661.769827] sr 4:0:0:0: [sr1] Add. Sense: Logical block address out of range
Lots of the error messages may follow, but they are of no concern. After 1 or 2 minutes, the stick presents itself as a wlan device:
Feb 7 14:47:20 linux-3a4c kernel: 751.292705] usb 1-2: USB disconnect, address 5
Feb 7 14:47:20 linux-3a4c kernel: 751.293536] cdrom: issuing MRW back ground format suspend
Feb 7 14:47:21 linux-3a4c kernel: 752.552054] usb 1-2: new high speed USB device using ehci_hcd and address 6
Feb 7 14:47:21 linux-3a4c kernel: 752.715348] usb 1-2: New USB device found, idVendor=057c, idProduct=8402
Feb 7 14:47:21 linux-3a4c kernel: 752.715373] usb 1-2: New USB device strings: Mfr=16, Product=32, SerialNumber=48
Feb 7 14:47:21 linux-3a4c kernel: 752.715388] usb 1-2: Product: FRITZ!WLAN USB Stick N 2.4
Feb 7 14:47:21 linux-3a4c kernel: 752.715398] usb 1-2: Manufacturer: AVM Berlin
Feb 7 14:47:21 linux-3a4c kernel: 752.715409] usb 1-2: SerialNumber: 001F3F092D40
Feb 7 14:47:21 linux-3a4c kernel: 752.715651] usb 1-2: configuration #1 chosen from 1 choice
Feb 7 14:47:22 linux-3a4c kernel: 752.848065] usb 1-2: reset high speed USB device using ehci_hcd and address 6
Feb 7 14:47:23 linux-3a4c kernel: 754.000135] usb 1-2: firmware: requesting ar9170.fw
Feb 7 14:47:23 linux-3a4c kernel: 754.417692] ath: EEPROM regdomain: 0x8114
Feb 7 14:47:23 linux-3a4c kernel: 754.417698] ath: EEPROM indicates we should expect a country code
Feb 7 14:47:23 linux-3a4c kernel: 754.417703] ath: doing EEPROM country->regdmn map search
Feb 7 14:47:23 linux-3a4c kernel: 754.417708] ath: country maps to regdmn code: 0x37
Feb 7 14:47:23 linux-3a4c kernel: 754.417712] ath: Country alpha2 being used: DE
Feb 7 14:47:23 linux-3a4c kernel: 754.417717] ath: Regpair used: 0x37
Feb 7 14:47:23 linux-3a4c kernel: 754.418990] phy1: Selected rate control algorithm ‘minstrel’
Feb 7 14:47:23 linux-3a4c kernel: 754.420961] cfg80211: Calling CRDA for country: DE
Feb 7 14:47:23 linux-3a4c kernel: 754.421829] Registered led device: ar9170-phy1::tx
Feb 7 14:47:23 linux-3a4c kernel: 754.421878] Registered led device: ar9170-phy1::assoc
Feb 7 14:47:23 linux-3a4c kernel: 754.421891] usb 1-2: Atheros AR9170 is registered as ‘phy1’
Feb 7 14:47:23 linux-3a4c kernel: 754.421938] usbcore: registered new interface driver ar9170usb
Feb 7 14:47:23 linux-3a4c ifup: Service network not started and mode ‘auto’ -> skipping
Feb 7 14:47:23 linux-3a4c ifup: interface ‘wmaster1’ is a wlan helper interface. Exiting.
Feb 7 14:47:29 linux-3a4c kernel: 759.932556] ADDRCONF(NETDEV_UP): wlan1: link is not ready
Command lsmod | grep 9170 should give this:
ar9170usb 52100 0
ath 8608 1 ar9170usb
mac80211 214968 3 ar9170usb,rt2x00usb,rt2x00lib
cfg80211 103584 4 ar9170usb,rt2x00lib,ath,mac80211
led_class 4836 3 ar9170usb,rt2x00lib,sdhci
Another wlan device, wlan1 is now present as iwconfif tells (I don’t understand why this is).
lo no wireless extensions.
eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=8 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
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
wmaster1 no wireless extensions.
wlan1 IEEE 802.11bgn ESSID:""
Mode:Managed Frequency:2.412 GHz Access Point: Not-Associated
Tx-Power=20 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key: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
Now, a wireless connection has to be configured.
For this, go to Yast network devices->network settings->
It tells you to switch to the traditional setup method with ifup (or use the connection editor, which I cannot find).
Under ‘global options’, tick the button with ‘Traditional method with ifup’
Go to ‘overview’ and press ‘add’
In ‘hardware dialog’, choose Device type ‘Wireless’ (at the bottom of the list) and choose configuration name 0 (this will eventually give the configuration nam wlan0).
Press ‘next’
Under tab ‘Address’, tick ‘Dynamic Address’, choose DHCP and both version 4 and 6.
Press ‘next’ and choose operation mode ‘managed’ and authentication mode ‘WPA-PSK’ and tick ‘passphrase’,
Press the button ‘Scan Network’ and hopefully you will find one, preferably your own network. If you have the FritzBox Fon WLan 7170 Annex A, you might see its name appear.
You will then have to enter the Encryption key for that network.
The press ‘next’ end the press ‘OK’
Reboot.
You should have a wireless connection now.
Check with Yast -> Security and Users -> Firewall that your firewall is working and that interface wlan0 is assigned the external zone .
Command iwconfig should show under wlan0 more information than before, like
The name of the network
Access point info other than ‘Not-Associated’
Bitrate
Encryption key information
Signal level info other than 0
Link quality other than 0
Hope this works for you.
Ed