NBA has a deal to buy Hornets