Ubuntu Bug #459716 " encrypted modes don't work on ndiswrapper wireless adapters" results in message:
Dec 1 22:33:45 pax kernel: [ 2536.302406] ndiswrapper (iw_set_auth:1602): invalid cmd 12
command 12 is IW_AUTH_MFP (from linux kernel headers)
Ubuntu developers enabled CONFIG_IEEE80211W in wpa_supplicant, and wpa_supplicant tries to set IW_AUTH_MFP, then fails.
ndiswrapper should be fixed to accept at least the first two parameter values (IW_AUTH_MFP_DISABLED and IW_AUTH_MFP_OPTIONAL)
patch is attached.
Proof: I am sending this from Ubuntu Karmic, with a patched ndiswrapper