WPA2-enterprise + MQTT not working. for Arduino 2.6.0

Here i have issues :

When i am using MQTT connection with WIFI and Arduino core 2.4.2 it is working, so for WPA2 i have upgraded Arduino core to 2.6.0 and up, after that i an getting WPA2 connection but now MQTT connection failing could any one help on this?

Error is:
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds

You seem to have failed to provide the necessary source code. Don't forget the code tags (that's the </> button in the editor)!