WiFi problems after wake up (MBP2011 OS X 10.10.3) Suddenly yesterday my mac started to have WiFi-problems. I have had this mac since 2011 and it has always worked and I have only been using it on WiFi.

But today when I woke it up it didn't enable the WiFi. I tried to disable WiFi and enable it again but it didn't work.

I rebooted. It worked. After ~5 minutes it stopped working again.

Now I'm using my iphone (via USB) to connect to internet. Works fine.

Just before the problem occurred I installed the following updates:


Remote Desktop Client Update V3.8.4
Command Line Tools (OS X 10.10) V6.3


Does anyone have any tips for me?

Thanks in advance :)

Update: I add a section from my wifi.log file on the time of one of my failures

Wed May 20 16:45:53.489 &lt;airportd[50]&gt; airportdProcessDLILEvent: en1 attached (up)
Wed May 20 22:20:51.299 ***Starting Up***
Wed May 20 22:20:51.504 &lt;airportd[50]&gt; airportdProcessDLILEvent: en1 attached (up)
Wed May 20 23:19:39.448 &lt;airportd[50]&gt; _handleLinkEvent: WiFi is not powered. Resetting state variables.
Wed May 20 23:20:13.062 &lt;airportd[50]&gt; WARNING: Network Diagnostics (827) is not entitled for com.apple.wifi.set_power, temporarily allowing request with background priority —— all entitlement requirements will be strictly enforced in a future release
Wed May 20 23:20:13.275 &lt;airportd[50]&gt; WARNING: Network Diagnostics (827) is not entitled for com.apple.wifi.scan, temporarily allowing request with background priority —— all entitlement requirements will be strictly enforced in a future release
Wed May 20 23:22:20.165 ***Starting Up***
Wed May 20 23:22:20.198 &lt;airportd[50]&gt; airportdProcessDLILEvent: en1 attached (up)
Wed May 20 23:23:49.476 &lt;airportd[50]&gt; -[CWXPCConnection performScanWithChannels:ssidList:legacyScanSSID:includeHiddenNetworks:mergeScanResults:maxAge:maxMissCount:maxWakeCount:maxAutoJoinCount:interfaceName:waitForWiFi:waitForBluetooth:token:priority:reply:]: !!! SCAN request received 1.2470 seconds after previous scan request from 243 (locationd)
Wed May 20 23:25:10.549 &lt;airportd[50]&gt; _handleLinkEvent: WiFi is not powered. Resetting state variables.
Wed May 20 23:31:45.127 &lt;airportd[50]&gt; _handleLinkEvent: WiFi is not powered. Resetting state variables.


Update

Today (4 weeks later) my MBP couldnt enable the wifi when I woke it from sleep. I turned it off via the terminal and then I turned it on with:

networksetup -setairportpower en1 on


My computer froze. The most interesting I could find in the log is

kernel[0]: en1: Error configuring antenna diversity (index = -1).


I have no idea what that means though. Ideas?

I could also find the following in the log

 Wifiscript[1018]: dig attempt via  
 Wifiscript[1022]: *** WIFI ERROR #1 DETECTED -- Trying again ***
 Wifiscript[1024]: dig attempt via  
 Wifiscript[1028]: *** WIFI ERROR #2 DETECTED ***
 Wifiscript[1029]: ---&gt; Bringing en1 down and waiting five seconds
 Wifiscript[1032]: ---&gt; Turning off Airport and waiting five seconds
 Wifiscript[1036]: ---&gt; Turning on Airport and waiting five seconds
 kernel[0]: LinkStatus 3011 Uncorrectible Errors 100000 Correctible Errors are: 30c1
 kernel[0]: Attempt to restore PCIe Config Space
 kernel[0]: en1: setting diversity to: -1
 kernel[0]: en1: Error configuring antenna diversity (index = -1).
 kernel[0]: en1: setting tx antenna: -1
 kernel[0]: en1: Error configuring transmit antenna (index = -1).
 Wifiscript[1042]: ---&gt; Bringing en1 up and waiting five seconds
 kernel[0]: Vendor ID 0xffff is not validVendor ID 0xffff is not validen1: setting diversity to: -1
 kernel[0]: en1: Error configuring antenna diversity (index = -1).
 kernel[0]: en1: setting tx antenna: -1
 kernel[0]: en1: Error configuring transmit antenna (index = -1).
 kernel[0]: Vendor ID 0xffff is not validwl_recover_nocard: Timer already started
 Wifiscript[1045]: *** WIFI RECOVERY ATTEMPT COMPLETED ***


And now after some more reboots it says No hardware installed and I cannot get the card to work at all :(
I think my problems are solved. I opened my cover on the MBP and saw 2 screws that were loose. They were supposed to hold the WIFI antenna. I tightened them up and now it seems to work... 

Strange that they opened themselves?