Lepton-pair production in association with a bb¯ pair and the determination of the W boson mass