Same problem here ath9k + rtl8187
This happens on WEP secured APs.

You are still associated but gateway doesn't respond at all after few seconds. When you reconnect same scenario occurs....