how i solved this issue with ML Wi-Fi
I had this same issue after upgrading from Lion to ML.
Here is what solved this for me:
1. I checked my router to confirm the wireless setup configuration for my network (for me it's WPA2 Personal)
2. I opened System Preferences > Network > Selected Wi-Fi Service > clicked Advanced
3. I deleted my primary Wi-Fi connection, and re-added it (moved it to the top)
Since doing this I have not had any issues staying connected, or reconnecting after sleep, restart, etc.
I had this same issue after upgrading from Lion to ML.
Here is what solved this for me:
1. I checked my router to confirm the wireless setup configuration for my network (for me it's WPA2 Personal)
2. I opened System Preferences > Network > Selected Wi-Fi Service > clicked Advanced
3. I deleted my primary Wi-Fi connection, and re-added it (moved it to the top)
Since doing this I have not had any issues staying connected, or reconnecting after sleep, restart, etc.