Me too... For the sake of helping Apple see how many people are suffering from this problem I thought I would post too. I have contacted Apple Care about this also and they said that they were working with some router manufacturers to try and resolve this - but not fast enough as far as I am concerned.
It is probably worthwhile documenting as much information about this issue as possible in the hope that we can isolate exactly what causes it and in what circumstances it happens, so here goes:
When my Macbook Air 2011 with Lion 10.7.3 wakes from sleep, about 50% of the time it will not reconnect to my home wireless network which is a Netgear WDNR3700v2 Dual Band Router. I get a dialog box pop up saying that it cannot connect to my preferred wireless network and I have to stop and start the WIFI several times before it will finally connect.
This problem seems to be specifically related to Wireless N Networks, as when I have my machine set for the wireless G network, it reconects every time when waking from sleep. It also seems to not be a problem for all wireless N networks, as it connects every time when waking from sleep to the Wireless N network in the Apple Store. I suspect that this is an Apple Airport Extreme but this is only a guess.
Specifically, I notice that there seems to be a delay in my machine seeing my Wireless N network when it awakens from sleep. When the dialog box pops up saying that it cannot connect to the network, neither of my two Wireless N networks are listed there, but my two wireless B/G networks are. If I wait a while for it to rescan a couple of times until they appear and then turn the WIFI on and off, it connects. So for some reason the machine has a delay finding the wireless N networks rather than the B/G networks.
I have a Windows 7 Laptop that connects to my wireless N network first time every time and it has no delay in seeing the Wireless N network when waking from sleep. I have tried all of the following things to fix this issue but to no avail:
- Delete all preferred networks
- Create a home network profile
- Delete all WIFI keys from the keychain and re-enter only the one for my Wireless N network
- Delete the network setting folder, and reboot to recreate it
- Changed the IPv6 settings to local link only from automatic
- Reset the Netgear router
- Disconnected and turned off all wired and wireless network devices from my environment and restarted my router and then connected Macbook as the first and only device (it still had troubles connecting when waking from sleep)
- Turned off the B/G network
- Turned off both of the B/G and N Guests networks
- Tried all the different channels and signal strengths for my wireless N network
- Ensured that there is no microwave or bluetooth interference
- Reset the SMC
I think that is about it, I live in a flat so there are about 15 wireless networks around me, but as I said previously I only have this issue with my Macbook.
Also, when the wireless is connected, I get no issues with wireless performance. I don't get any disconnects as others on other threads have been reporting and I get about 170Mbps copying files around my network which is pretty fantastic performance as far as I am concered. It is just the waking from sleep which is the problem and it is driving me nuts !!!!
Here is the output from /var/log/system.log for a successful wake from sleep:
Feb 5 08:07:17 macbook UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en0 - PreProbe
Feb 5 08:07:17 localhost configd[14]: setting hostname to "localhost"
Feb 5 08:07:17 localhost configd[14]: network configuration changed.
Feb 5 08:07:17 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x7faedb920ad0>: The operation couldn’t be completed. Socket is not connected
Feb 5 08:07:17 localhost com.apple.usbmuxd[49]: _SendDetachNotification (thread 0x7fff7530a960): sending detach for device cc:08:e0:42:df:6b@fe80::ce08:e0ff:fe42:df6b._apple-mobdev._tcp.local.: _BrowseReplyReceivedCallback got bonjour removal.
Feb 5 08:07:17 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x10e920180>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
Feb 5 08:07:23 localhost configd[14]: network configuration changed.
Feb 5 08:07:23 macbook configd[14]: setting hostname to "macbook"
Feb 5 08:07:23 macbook UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en0 - Probe
Feb 5 08:07:23 macbook UserEventAgent[11]: CaptiveNetworkSupport:copy_settings_plist:285 Could not read Settings file
Feb 5 08:07:23 macbook UserEventAgent[11]: CaptiveNetworkSupport:CaptiveStartDetect:2343 Bypassing probe on GlossyNet-N because it is protected and not on the exception list
Feb 5 08:07:23 macbook UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en0 - Unknown
Feb 5 08:07:23 macbook configd[14]: network configuration changed.
Feb 5 08:07:23 macbook airportd[1529]: _doAutoJoin: Already associated to “GlossyNet-N”. Bailing on auto-join.
Feb 5 08:07:25 macbook [0x0-0x105105].backupd-helper[1534]: Not starting Time Machine backup after wake - less than 60 minutes since last backup completed.
Feb 5 08:07:27 macbook com.apple.usbmuxd[49]: _SendAttachNotification (thread 0x7fff7530a960): sending attach for device cc:08:e0:42:df:6b@fe80::ce08:e0ff:fe42:df6b._apple-mobdev._tcp.local.: _GetAddrInfoReplyReceivedCallback matched.
Feb 5 08:07:28 macbook usbmuxd[49]: _AMDeviceConnectByAddressAndPort (thread 0x100781000): IPv4
Here is the output from a not successful join to the network on waking from sleep:
Feb 5 08:09:21 macbook UserEventAgent[11]: CaptiveNetworkSupport:CaptivePublishState:1211 en0 - PreProbe
Feb 5 08:09:21 localhost configd[14]: setting hostname to "localhost"
Feb 5 08:09:21 localhost configd[14]: network configuration changed.
Feb 5 08:09:21 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x7faedb941c00>: The operation couldn’t be completed. Socket is not connected
Feb 5 08:09:21 localhost com.apple.usbmuxd[49]: _SendDetachNotification (thread 0x7fff7530a960): sending detach for device cc:08:e0:42:df:6b@fe80::ce08:e0ff:fe42:df6b._apple-mobdev._tcp.local.: _BrowseReplyReceivedCallback got bonjour removal.
Feb 5 08:09:21 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x10e9231e0>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
Feb 5 08:09:26 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x7faed9620600>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
Feb 5 08:09:28 localhost [0x0-0x107107].backupd-helper[1545]: Not starting Time Machine backup after wake - less than 60 minutes since last backup completed.
Feb 5 08:09:29 localhost applepushserviced[75]: <APSCourier: 0x7faed951b5e0>: Stream error occurred for <APSTCPStream: 0x7faedb920900>: The operation couldn’t be completed. (kCFErrorDomainCFNetwork error 2.)
Feb 5 08:09:30 localhost rpcsvchost[1548]: sandbox_init: com.apple.msrpc.netlogon.sb succeeded
Oh well, that is about all I think that I can add, please feel free to agree or disagree with any of my findings to see if we can isolate exactly what is causing this issue and look for the common pattern in this problem as this is the most likely way that this problem will get resolved.
Best Regards
Gary