I was having major issues with m macbook and my

time machine.
This is what I did to fix it.
Turn off Airport on your imac. Go to "open network preferences" click in advanced and delete all of the networks in the list once done click o.k and apply.
Leave airport turned off.
Go into your keychain in utilities.
once key chain is open, type "airport" into the keychain search box. Delete everything in the keychain to do with airport.
Once done close keychain.
Open a finder window.
Go to your mac's HD.
Find the library folder and enter it.
Then find preferences and enter it.
Find "systemconfiguration" and enter it.
you will now have 7 files in this folder.
delete the following (don't worry they rebuild when you reboot the mac)
com.apple.airport.preferences.plist
com.apple.network.identification.plist
networkinterfaces.plist
once these are deleted. reboot the Mac.
Once rebooted switch on airport and find your network.
This worked for me, hope it does for you.