Why doesn’t Airport reconnect after sleep or shutdown

Networksnow leopardwifi

I have a MacBook Pro (2.4 GHz Core 2 Duo, running OS X 10.6.8) that does not reconnect to its stored WiFi network after it restarts or goes to sleep. To reconnect, I need to go into System Preferences and choose a network in Airport settings. Then it happily reconnects and stays connected.

I saw this question, and tried to delete and re-add my preferred network (I only have one). I went into Advanced, deleted the network, turned Airport off and on, and chose my network from the dropdown. It knew the password already though.

I was going to delete/move the preferences file containing network/WiFi settings, but I can't find it. Would this be helpful? If so, where is that file stored? I've already looked through ~/Library/Preferences and /Library/Preferences to no avail.

Best Answer

The problem got partially better on its own, and it's not clear why. There were also a lot of old networks in the list of previous wifi networks in System Preferences, and it helped to delete them.

The complete fix, however, ended up being to go into the list of wireless networks (in System Preferences > Networks > Airport, Advanced) and move the desired network up to the top of the list so it was joined first. There was one called "linksys" on top that was matching a neighbor's network, and then failing to get internet access for some reason; I think it was added a long time ago for a different network of the same name.

I thought I had tried this before, but either something changed or I didn't actually try it. I'm asking this question to help me troubleshoot someone else's computer, so I'm not aware of everything that might have changed since I originally posted the question.