The 2.3 SDK Wi-Fi sta sample app does not appear to work like it did with SDK 2.2, at least with my access point running WPA2.
It looks like the net_mgmt() macro call does not work with CONFIG_STA_KEY_MGMT_WPA2=y.
if (net_mgmt(NET_REQUEST_WIFI_CONNECT, iface, &cnx_params, sizeof(struct wifi_connect_req_params))) { LOG_ERR("Connection request failed"); return -ENOEXEC; }