The company reported $728.9 million in revenue in its fiscal year that ended July 31, up nearly 22 percent from the prior year. Its net loss narrowed during the same time, to $29 million.

”Enterprises are facing a mobile-first world and are looking for solutions that help them transition legacy investments to the new style of I.T.,” Meg Whitman, HP’s chairman and chief executive, said in a statement. “By combining Aruba’s world-class wireless mobility solutions with HP’s leading switching portfolio, HP will offer the simplest, most secure networking solutions to help enterprises easily deploy next-generation mobile networks.”

HP expects the deal to add to its earnings in the first full year after closing.

Aruba will continue to do business under its own brand and will be led by its chief executive, Dominic Orr. Mr. Orr will report to the head of HP’s enterprise group, Antonio Neri.

The deal is expected to close by Oct. 31, pending approval by regulators and Aruba’s shareholders.

Evercore served as financial advisor on the deal to Aruba.