You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Lion:WiFi not autoconnecting after sleep mode

Upgraded to Lion yesterday, now when Mac is recovered from sleep mode the WiFi preferred network is not automatically connected. Never was an issue with Snow Leopard. I added my connection as a preferred connection in the Networks/Advanced page but it stil doesn't reliably work. I must select the network from the list and connect.

Posted on Jul 21, 2011 9:30 AM

Reply
133 replies

Sep 25, 2012 9:37 AM in response to live4hills

I can confirm that both mine and my partners Macbook Airs (June 2011 models) updated to Mountain Lion 10.8.2 still exhibit this problem!!


I have to say that this is pretty outrageously poor behaviour from Apple on this issue - this issue has persisted for over a year and two Major releases of Apple's Mac OSX - I know that Apple are aware of it as I had an Apple Support consultant contact me to go through capturing a load of logs and information that he was compiling for some Apple specialists to look into in the US.


They must be aware of the issue and what causes it by now - it seems to me that it is due to the OS not waking from sleep/hibernation properly, I can't understand why there is not a fix!!!


Rgds


Gary

Sep 25, 2012 10:38 AM in response to garymansell

Looking back on this, this issue kept creeping up because we had two routers in our house broadcasting the same SSID, but each with different network security settings (one had an encryption setting to AES/TKIP, and the other was AES only). I ended up changing the configuration on my network so the routers have matching wireless encryption settings of AES only, and the issue has been resolved for me for a few months now.


Hope this helps those out there using multiple access points and are having issues reconnecting after sleep.

Nov 9, 2012 11:13 AM in response to live4hills

Ok I think I have finally solved this most frustrating of issues.


Basically a nearby router that my macbook can see is incorrectly configured with the wrong country code (or someone has imported a foreign router).

When the macbook wakes it looks for any wireless signal to understand what country it is in and then only listens on the wireless channels for the country detected.


I have about 10 wireless networks around me and one of them is set for Country "TW" - I am in Country Code "GB"


Most of the times the first network I see is the GB one and my laptop looks for my wireless network on the GB wireless channels and connects OK.


Sometimes, my laptop detects this rogue TW router first and only listens on wireless channels that are correct for TW - it hence can't see my wireless network as it is configured on channel 48 which is not part of the TW approved set of channels:


Here is a snippet from my syslog:


Nov 9 18:18:11 GarysMacBook kernel[0] <Debug>: en0: 802.11d country code set to 'TW'.

Nov 9 18:18:11 GarysMacBook kernel[0] <Debug>: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 56 60 64 100 104 108 112 116 120 124 128 132 136 140 149 153 157 161 165



Hence, the options are find the neighbour with the rogue router and get it fixed/binned, or choose a channel that can be seen by both the rogue router country and your own country.


The GB channels are:


Nov 4 14:01:23 GarysMacBook kernel[0] <Debug>: en0: 802.11d country code set to 'GB'.

Nov 4 14:01:23 GarysMacBook kernel[0] <Debug>: en0: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140


Unfortunately for me, my Netgear WNDR3700v2 (N600) router only allows me to chose channels 36, 40, 44 or 48 - None of which are visible if my laptop detects the country as TW !!!!


I need to find the neighbour with the rogue router, I guess...


Oh well, at least I know what causes the problem...


BTW - I could do with the forum thankyou points, so please be generous...


Rgds


Gary

Dec 25, 2012 8:19 PM in response to Harpo Marx

I want to add a slight addition to Harpo's method, which is simple and works for me so far though I'll want to monitor this for a few more days before I am sure.


In Harpo's last step he simply says to add the network and password back. I found that instruction to be insufficient because there are several ways to do this and only Aismail's method worked for me. Aismail said NOT to use the Advanced tab to enter the prefered network (using the + sign). I did it that way at first and I simply could not get wifi to find my preferred network automatically after stopping and starting wifi. So, I used the - sign to erase it on the Advanced tab and then used the Network Name drop-down menu (in Network Preferences) to have it find my network and request my WEP password. After that, I have been able to turn wifi off and on repeatedly and it automatically reconnects. I also noticed that the Advanced tab got filled in for me. I haven't rebooted yet but I am hopeful...

Jan 29, 2013 10:29 AM in response to Aismaiil

So i have read all 8 pages and am now confused:) Which is the working solution to this. I dont need it retyped, you could just tell me which posts to do to get this to work. This has been a frustration of mine for quite a while. Im happy to have found this thread. Now hopefully i can resolve this. It is quite frustrating that the tablets and iphones i have do not have any problems just my macbook.

Feb 6, 2013 10:14 AM in response to Elreq

I would follow the steps so carefully documented by Harpo Marx. But, before proceeding, read my caution (due to Aismaiil)that there are 2 ways to do one of his steps and only one of those 2 ways works. I haven't had any further problems since doing this. And... let the rest of us know if this solves the problem. Just because this fix has worked for a lot of us doesn't mean there couldn't be some other underlying cause for you. I hope this helps.

Apr 9, 2013 7:44 AM in response to garymansell

garymansell, Well found, it turns out that this is exactly my problem. I guess a number of other people will be having this issue too, especially if, like me, your router is using channel 12 or channel 13.


Going to Applications/Utilitues/Console.app

Then under kernel.log


It showed the following for me:


Apr 9 15:04:59 1234 kernel[0]: en1: 802.11d country code set to 'X3'.

Apr 9 15:04:59 1234 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140


Apr 9 15:05:07 1234 kernel[0]: en1: 802.11d country code set to 'US'.

Apr 9 15:05:07 1234 kernel[0]: en1: Supported channels 1 2 3 4 5 6 7 8 9 10 11 36 40 44 48 52 56 60 64 149 153 157 161 165


GB is what I expect to find - X3 would seem to suffice though.

According to the internet X3 means other country in South America... but it supports channel 13 which is ok by me.


US does not support channel 13 which is what my router is on! This is why my network is never found but my neighbours' are.


The easy solution is to change the channel but I use 13 because it has the least interference!

Now to find a way of changing the country code on my MacBook or hacking it somehow.


Apple should have this as a setting somewhere because I guess that this problem is probably more frequent than is reported.

Lion:WiFi not autoconnecting after sleep mode

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.