It generally happens when the black and white wires connecting to the wifi card are changed. Try changing the places of the black and white connectors on the wifi card.