Previously the AP PSK was in ASCII. Now i have put the same hex string in wpa_suplicant and the AP and it works OK. Thanks for your answer.