title: Wifi just goes into IDLE
body: <p>I have written some software which uses Wifi as a possible internet-connection medium..
  I did notice though, that after some time (I am guessing around the 15-20 minutes) after the device has gone into power save mode (anyways when the screen has gone black) the Wifi connection will simply be dropped, even though it is still being used :( This on a ADP 2 (thus a Google Ion with Android 1.6)...
  I was able to get the following Log :</p>
  
  <pre><code>06-10 15:04:27.009: DEBUG/WifiService(72): got ACTION_DEVICE_IDLE
  06-10 15:04:27.069: ERROR/wpa_supplicant(538): Set_key: Wrong Key
  06-10 15:04:27.069: ERROR/wpa_supplicant(538): Set_key: Wrong Key
  06-10 15:04:27.069: ERROR/wpa_supplicant(538): Set_key: Wrong Key
  06-10 15:04:27.069: ERROR/wpa_supplicant(538): Set_key: Wrong Key
  06-10 15:04:27.069: ERROR/wpa_supplicant(538): Set_key: Wrong Key
  06-10 15:04:27.069: VERBOSE/WifiMonitor(72): Event [CTRL-EVENT-STATE-CHANGE id=0 state=8]
  06-10 15:04:27.079: VERBOSE/WifiStateTracker(72): Changing supplicant state: COMPLETED ==&gt; DORMANT
  06-10 15:04:27.079: DEBUG/WifiStateTracker(72): Deconfiguring interface and stopping DHCP
  06-10 15:04:27.099: VERBOSE/WifiMonitor(72): Event [CTRL-EVENT-DISCONNECTED - Disconnect event - remove keys]
  06-10 15:04:27.099: VERBOSE/WifiMonitor(72): Event [CTRL-EVENT-STATE-CHANGE id=-1 state=8]
  06-10 15:04:27.139: WARN/Smack/Packet(169): notify conn break (IOEx), close connection
  06-10 15:04:27.139: DEBUG/Smack(169): [XMPPConn] close connection, notifyClosed=false
  06-10 15:04:27.139: ERROR/MediaPlayer(390): error (1, -17)
  06-10 15:04:27.139: ERROR/MediaPlayer(390): Error (1,-17)
  06-10 15:04:28.109: VERBOSE/WifiMonitor(72): Event [CTRL-EVENT-DRIVER-STATE STOPPED]
  06-10 15:04:28.129: VERBOSE/WifiStateTracker(72): New network state is DISCONNECTED
  06-10 15:04:28.129: VERBOSE/WifiStateTracker(72): Changing supplicant state: DORMANT ==&gt; DORMANT
  06-10 15:04:28.189: INFO/MediaUploader(199): No need to wake up
  06-10 15:04:28.189: DEBUG/GpsLocationProvider(72): updateNetworkState available
  06-10 15:04:28.189: DEBUG/GpsLocationProvider(72): NetworkThread wait for 4484259ms
  06-10 15:04:28.289: DEBUG/NetworkLocationProvider(72): onDataConnectionStateChanged 3
  06-10 15:04:28.299: DEBUG/GpsLocationProvider(72): state: CONNECTING apnName: iinternet reason: null
  06-10 15:04:32.979: DEBUG/NetworkLocationProvider(72): onDataConnectionStateChanged 3
  06-10 15:04:33.029: DEBUG/GpsLocationProvider(72): state: CONNECTED apnName: iinternet reason: null
  06-10 15:04:33.099: DEBUG/GpsLocationProvider(72): updateNetworkState available
  06-10 15:04:33.099: DEBUG/GpsLocationProvider(72): NetworkThread wait for 4479355ms
  06-10 15:04:33.129: INFO/MediaUploader(199): No need to wake up
  06-10 15:04:33.299: INFO/ActivityManager(72): Stopping service: com.android.mms/.transaction.TransactionService
  06-10 15:04:33.339: ERROR/TransactionSettings(156): Invalid APN setting: MMSC is empty
  06-10 15:04:33.419: INFO/ActivityManager(72): Stopping service: com.android.providers.downloads/.DownloadService
  06-10 15:04:38.309: DEBUG/dalvikvm(199): GC freed 301 objects / 19232 bytes in 92ms
  06-10 15:04:43.349: DEBUG/dalvikvm(216): GC freed 1430 objects / 84920 bytes in 121ms
  06-10 15:04:48.319: DEBUG/dalvikvm(156): GC freed 323 objects / 15152 bytes in 96ms
  </code></pre>
  
  <p>Is this some kind of known bug/feature ? If so how to get around it ? 
  Also is there someway to actually intercept this EVENT and then soimehow ignore it or re-setup a wifi connection ?
  Thanks in advance</p>