Telecoms infrastructure company CommScope is nearing a deal to buy complementary telecom gear provider Arris for more than $31 a share, according to people familiar with the matter.

A deal would give CommScope more scale with a more diversified product base, while it would provide an exit for Arris as fewer customers watch traditional TV from set-top boxes, a major part of its business.

The all-cash transaction could be announced as soon as tomorrow, the people said, who asked not to be named because the discussions are private. A deal hasn't been signed and could still fall apart, the people said.