This is an attempt to move some code around inside the driver to make it work
with the wpa_supplicant stock wext driver. wpa_supplicant doesn't need to be
patched anymore in such case.
It's supposed to mimic the behaviour of the zd1211 r52 driver. I tried to add
as many WPA related functions as I could find. The driver seems to leave
pretty much all of the work to wpa_supplicant therefore the stuff added does
nothing, except writing an informational/debugging message to the log.
The wpa_supplicant wext driver might provide more functionality than the
driver can handle. (e.g. don't expect WPA2 to work) I don't know if that
might lead to trouble but so far it seems to work for me, so I thought may be
it'd be of intrest to others to post this, even though I consider this a big
experiment. (no guarantee it won't misbehave in any way)
I didn't check it, but I expect this code to need a recent kernel. If I'm not
mistaken it uses fairly new wireless extensions. I don't expect this to work
on 2.4, or older 2.6, kernels because of that. (I used kernel 2.6.14,