This patch splits up the ioctls into the ones that are always available and
the ones that are only available when the device is up.
The split up is some guess work based on posts on the list so it's probably
not perfect. Consider it a starting point.
It should at least take care of configuration issues with r67.
So far it seems to work for me on a WPA2 and a WPA2-hidden network.
(using wpa_supplicant 0.4.7, zd1211 r67 + attached patch)