LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Atheros wireless card on macBook - problems with madwifi and ndiswrapper (https://www.linuxquestions.org/questions/linux-hardware-18/atheros-wireless-card-on-macbook-problems-with-madwifi-and-ndiswrapper-565681/)

sparrott 06-30-2007 03:20 PM

Atheros wireless card on macBook - problems with madwifi and ndiswrapper
 
Hi,

I've got SuSE 10.2 working on my shiny new macBook, and am trying to get wireless going - an Atheros wireless card.

I've tried ndiswrapper with the only windows drivers I can find (also mentioned in the ndiswrapper list) and they install but then fail with the following in dmesg:

ndiswrapper version 1.47 loaded (smp=yes)
ndiswrapper (check_nt_hdr:150): kernel is 64-bit, but Windows driver is not 64-bit;bad magic: 010B
ndiswrapper (load_sys_files:216): couldn't prepare driver 'net5416'
ndiswrapper (load_wrap_driver:118): couldn't load driver net5416; check system log for messages from 'loadndisdriver'


Everything I've found seems to say there are no 64bit drivers yet, so I'll pass on that bit...


Also tried with madwifi. I got it installed and then after modprobe'ing it appeared in the list of loaded modules with lsmod, but iwconfig and ifconfig only show the ethernet adapter, not the wireless:

iwconfig
lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:E3:3D:18:A9
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::219:e3ff:fe3d:18a9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14500 errors:0 dropped:0 overruns:0 frame:0
TX packets:10957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:17800812 (16.9 Mb) TX bytes:1203170 (1.1 Mb)
Interrupt:177

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:23 errors:0 dropped:0 overruns:0 frame:0
TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1988 (1.9 Kb) TX bytes:1988 (1.9 Kb)


In Yast, hardware info, Apple Network Controller, which I'm taking to be the wireless, is shown under network cards but not network interfaces. Once I've loaded the madwifi driver (modprobe ath_pci), if I try and create an interface (wlanconfig ath0 create wlandev wifi0 wlanmode sta) I get 'wlanconfig: ioctl: No such device'. dmesg'ing after that gives:

ath_hal: module license 'Proprietary' taints kernel.
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
ath_pci: 0.9.4.5 (0.9.3.1)


Any ideas? I've read loads of posts about this thing but nothings worked yet..

Cheers!
Sparrott

Electro 06-30-2007 03:52 PM

Usually when a module is loaded for a NIC, it will not show the list when doing ifconfig. You have to find out the device node and do ifconfig [device_node] up. Since ath0 is the device, type ifconfig ath0 up as root or sudo. Make sure the ndiswrapper is not running when using madwifi.

Please post the complete logs instead of truncating them.

My experience with Wifi is poor, so you may have to wait longer until an wifi expert comes.

sparrott 07-01-2007 04:01 AM

Thanks. I tried ifconfig ath0 up but got ath0: unknown interface: No such device. The untruncated dmesg show:

ath_pci: driver unloaded
ath_hal: driver unloaded
wlan: driver unloaded
ath_hal: 0.9.18.0 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
wlan: 0.8.4.2 (0.9.3.1)
ath_pci: 0.9.4.5 (0.9.3.1)

Any ideas?
Thanks.


All times are GMT -5. The time now is 06:37 PM.