I am using madwifi on two laptops, on is set as an AP and the other is a client. I have disabled hardware encryption on both, so both perform encyption in software. I noted that, using this mode, the client keeps on being disconnected and then goes for reassociation very frequently (like every 30 seconds or so). 

Does anybody knows the reason behind this problem or how to solve it?