I've just came back from Cuba and had the same problem.
It is not the compatibility issue but some sort of regional lock.
My S6 Edge worked just fine in the UK and Spain but the minute I landed in Cuba I started having problems with wifi.
Phone would not see any wifi networks. I had HTC One...