There are some "weird" issues with the control of wifi cards in my 4540s machine. If, for instance, I boot into Linux and turn off wifi, when I then boot back into Mac osx the wifi is still detected BUT it is impossible to get it to work. If I then boot back into Linux and re-enable the wifi it works fine when I boot back into Mac osx.
Also, I bought a card from a seller in the USA, this seemed to work fine and found all the networks in my area EXCEPT mine! It seems that different areas of the world have different radio frequencies allocated to them. My system was on channel 14, the USA allocation only goes to channel 13 (I think?) so that's why it didn't work. I booted into Linux and changed the network location info to Europe and the card then found my network OK. Once set the region info stays fixed so it worked fine with Mac osx and Windows 7.
So, what I'm saying here is, there may be other reasons why your card (which is supposed to work in Mac osx) might not be functioning.
Pete