Fonterra is preparing itself for legal action from French dairy group Danone following the New Zealand firm's recall of concentrated whey powder earlier this year.