Joint optimisation of the distributed channel allocation and power control in scalable wireless LANs