Wigan Athletic have reportedly agreed a deal to sign Real Mallorca centre-back Ivan Ramis.
The 27-year-old was understood to have been the subject of a successful bid from West Ham United last week.
However, the Hammers have failed to agree personal terms with the player and he has since passed a medical at the DW Stadium with a view to a £4m move, according to The Mirror.
Ramis made 164 La Liga appearances for Mallorca.