Can't turn on wifi on Mac OSX Mountain lion MBP 2012

The WiFi interface won't turn on when i press "Activate wifi" from the preferences neither from the status bar.

I tried restarting the mac,and reset the pram.

The Ethernet works fine and this is the result of ifconfig in the terminal:

en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 options=2b<RXCSUM,TXCSUM,VLAN_HWTAGGING,TSO4> ether a8:20:66:37:81:d9  inet6 fe80::aa20:66ff:fe37:81d9%en0 prefixlen 64 scopeid 0x4  inet
192.168.1.131 netmask 0xffffff00 broadcast 192.168.1.255 media: autoselect (100baseTX <full-duplex,flow-control>) status: active

en1: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether 5c:96:9d:89:fe:09  media: autoselect (<unknown type>) status: inactive

Is there anything I can try before initialize OSX?


Solution 1:

Cycling the network setup has worked for me. Run the following in Terminal:

networksetup -setairportpower en0 off
networksetup -setairportpower en0 on

Solution 2:

Found this:

  • Restart your mac.
  • Open "Network Preferences". On the left tab, look for wifi connection (usually named Wi-Fi).
  • Select the wifi connection, and disable that. To disable a connection, choose gear icon below the tab, and choose "Make Service Inactive".
  • After disabled, delete the connection. To delete a connection, choose minus (-) icon below the tab, left of gear icon.
  • Now that the original connection has been deleted, we must create a new wifi connection. Choose plus (+) icon, select "Wi-Fi" as interface, and you can name it anything as you want, it doesn't matter thought.
  • Apply the change. Once again, restart your mac.
  • After system reboot, voila ! your wifi should be working properly by now