I’m getting an error when Turning off/on WiFi on our Android device. This problem was caused by wifi driver module remove and inserted again.
Fortunately other people already faced this same issue:
http://www.mail-archive.com/android-porting@googlegroups.com/msg08149.html
Patches here:
http://groups.google.com/group/0xlab-devel/msg/2ece2f41cf8bf020