Efficient Channel Allocation for Wireless Local-Area Networks