Jump to content

[How To]Atheros AR5212 based cards, now w/ Leopard


consolation
 Share

384 posts in this topic

Recommended Posts

I've created a primitive shell script, which connects to the first Access Point found in the Keychain.

#!/bin/sh

get_firstAccessPointInKeychain () {
 security find-generic-password -s "AirPort Network" 1>&1 \
 |grep "\"acct\"" | cut -d '"' -f4
}

get_pw () {
 security 2>&1 >/dev/null find-generic-password -ga $1 \
 |ruby -e 'print $1 if STDIN.gets =~ /^password: "(.*)"$/'
}

echo Looking for the first wireless connection name in keychain ...

#get first available accesspoint from the keychain
connectionName=$(get_firstAccessPointInKeychain)

#get a password for a specific connection from the keychain
connectionPassword=$(get_pw "$connectionName")

echo 'Connecting to: '$connectionName

networksetup -setairportnetwork "$connectionName" "$connectionPassword"

picture1.png

Image show I have one "AirPort Network Password" item in my KeyChain, script connects to the first one on the list.

 

I don't know if this script is useful or not, but I sure as hell learned to code shell scripts :blush:

 

 

hy i need some help with your script

 

1 how to make the script run at startup

2 i have a error :

Looking for the first wireless connection name in keychain ...
/Users/bebe/Desktop/net2.sh: line 4:   security: command not found
Connecting to: 
cp: /Library/Preferences/SystemConfiguration/preferences.plist.old: fchmod failed: Operation not permitted
** Error: Error obtaining wireless information.

 

10x

Link to comment
Share on other sites

I've done everything named i this topic without any success.

I have a

 

Acer Aspire 5100

iDeneb 10.5.8

Atheros 168c:001c

 

Card is only visible in system profiler under PCI cards, status "Driver Installed - No"

Link to comment
Share on other sites

  • 4 weeks later...

Does this work with Snow???? I'm trying to get mine on it. I already tried the Tiger kext, it recognized the card, but in a offline status, and when you try to switch it on (activate) just happens nothing.

Link to comment
Share on other sites

  • 4 weeks later...

It worked with this system:

 

iPC OSx86 Final 10.5.6 V1.1 PPF6

 

 

Motherboard: ASUS M3A32-MVP Deluxe Edition with AP.

audio: Analog Devices ADI1988B

ethernet: Marvell Yukon 88E8056

CHIPSET: AMD 790FX

Graphics Card: ATI RADEON HD 3870 PCI-E

Processor: AMD Phenom x4 9550 am2+

RAM: 4X1GB PATRIOT DDR2 800MHZ

hardisk: 1X320gb SATA seagate barracuda 1x500gb sata western digital caviar.

 

2 DVD BURNER IDE (P-ATA)

 

 

Installed options:

 

kernel 9.5.0 voodo

drivers:

NATIT for video card

ADI1988B for sound.

Marvell Yukon 88E8056 for LAN/eth/en0

IO80211Family.kext (OS X 10.4) for wifi card (in the ipc package list, wich is supposed to be the same as the recommended at the first post for 10.5.6)

 

After the system is installed, edit IO80211Family.kext as the first post says, once i rebooted i saw the airport icon as blank, and aparently turned off.

 

then:

You just need to edit the /Library/Preferences/SystemConfiguration/NetworkInterfaces.plist file

 

edit the string <string>en0</string>

 

to <string>en1</string> (or en2 if you have other network cards i guess)

 

and string <key>IOInterfaceUnit</key>

<integer>0</integer>

 

to <key>IOInterfaceUnit</key>

<integer>1</integer> <--- this number shall reflect the one used in the other.. so if you have en1 it shoud be 1 and en2 should be 2 and so on.

 

Then just reboot and check your network settings. It should find a new Airport card.

 

 

and it worked

 

 

thank you =)

Link to comment
Share on other sites

  • 1 month later...
Does this work with Snow???? I'm trying to get mine on it. I already tried the Tiger kext, it recognized the card, but in a offline status, and when you try to switch it on (activate) just happens nothing.

 

 

YES !!!!!!!!!!!! for my card : Netgear WPN311 (firmware2.0)

 

Look My screen grab under 10.6.4 64k

 

/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros21.kext

 

Thanks to this AtherosFix.kext this card is working in 32 and 64k

Put AtherosFix.kext in /Extra !

 

post-305243-1281029056_thumb.png

AtherosFix.kext.zip

 

 

Good luck

Link to comment
Share on other sites

YES !!!!!!!!!!!! for my card : Netgear WPN311 (firmware2.0)

 

Look My screen grab under 10.6.4 64k

 

/System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros21.kext

 

Thanks to this AtherosFix.kext this card is working in 32 and 64k

Put AtherosFix.kext in /Extra !

 

post-305243-1281029056_thumb.png

AtherosFix.kext.zip

 

 

Good luck

 

I've tried your kext, but WPA still not work on Leopard 10.5.7 iAtkos v7....

Link to comment
Share on other sites

I've tried your kext, but WPA still not work on Leopard 10.5.7 iAtkos v7....

 

Did you look at this ?

http://www.insanelymac.com/forum/lofiversi...t33089-300.html

 

Obviously some users had to restart 2 times before it was working!

 

 

Be shure you have updated kernel cache !

 

There where some persons who succeded with ralink drivers !

http://www.ralinktech.com/support.php?s=3

 

an other method is to edit the infoplist inside /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros21.kext with your card code

(check your kext ! beacause mine is like that !)

 

 

I found that your card has a AR2413 chip !

pci.vendor_id : 5772 (0x168c)

 

http://www.insanelymac.com/forum/index.php...amp;pid=1179622

 

And there could be even a solution with the Airport extreme upgrade from apple !

 

Let me know if you succeeded !

 

^_^

Link to comment
Share on other sites

Did you look at this ?

http://www.insanelymac.com/forum/lofiversi...t33089-300.html

 

Obviously some users had to restart 2 times before it was working!

 

 

Be shure you have updated kernel cache !

 

There where some persons who succeded with ralink drivers !

http://www.ralinktech.com/support.php?s=3

 

an other method is to edit the infoplist inside /System/Library/Extensions/IO80211Family.kext/Contents/PlugIns/AirPortAtheros21.kext with your card code

(check your kext ! beacause mine is like that !)

 

 

I found that your card has a AR2413 chip !

pci.vendor_id : 5772 (0x168c)

 

http://www.insanelymac.com/forum/index.php...amp;pid=1179622

 

And there could be even a solution with the Airport extreme upgrade from apple !

 

Let me know if you succeeded !

 

:censored2:

 

There a others who have succeeded with this chip !!

 

http://www.insanelymac.com/forum/index.php...00#entry1523183

 

:wacko:

Link to comment
Share on other sites

 Share

×
×
  • Create New...