Nokia and HTC settle litigation, sign patent deal