What driver are you trying to use?

wpa_supplicant -w -Dipw -iwlan0 -c/etc/wpa_supplicant


-D ipw tells me you are your an intel wireless driver however you mentioned something about realtek 8185. This is a separate driver.