A method for selecting communication parameters in a wireless network comprising a plurality of nodes configured to wirelessly communicate with each other over a plurality of communication channels, wherein said method comprises: a) establishing a channel quality index for each node in the wireless network, said channel quality index comprising a quality indication value for each of said communication channels, b) dividing said plurality of nodes into one master node M and at least one sub-node (A-F), said master node is configured to select communication parameters in the network, and to communicate the communication parameters to the at least one sub-node in the wireless network, c) configuring the wireless network in a tree structure whereby each sub-node (A-F) has a parent node and each node may have one or more child nodes, and d) for each node, calculating a modified channel quality index based on - the channel quality index established in the node, and - an accumulated channel quality index based on the modified channel quality index established in and transmitted from its child nodes, if any, wherein the method further comprises: d1) for each node, calculating a weighted quality indication value for each communication channel, and d2) for each communication channel, summing the weighted quality indication value, and the quality indication value of the accumulated channel quality index to create said modified channel quality index, e) for each sub-node, transmitting said modified channel quality index to its parent node, and f) selecting and communicating updated communication parameters based on the modified channel quality index calculated in the master node. a) establishing a channel quality index for each node in the wireless network, said channel quality index comprising a quality indication value for each of said communication channels, b) dividing said plurality of nodes into one master node M and at least one sub-node (A-F), said master node is configured to select communication parameters in the network, and to communicate the communication parameters to the at least one sub-node in the wireless network, c) configuring the wireless network in a tree structure whereby each sub-node (A-F) has a parent node and each node may have one or more child nodes, and d) for each node, calculating a modified channel quality index based on - the channel quality index established in the node, and - an accumulated channel quality index based on the modified channel quality index established in and transmitted from its child nodes, if any, wherein the method further comprises: d1) for each node, calculating a weighted quality indication value for each communication channel, and d2) for each communication channel, summing the weighted quality indication value, and the quality indication value of the accumulated channel quality index to create said modified channel quality index, - the channel quality index established in the node, and - an accumulated channel quality index based on the modified channel quality index established in and transmitted from its child nodes, if any, d1) for each node, calculating a weighted quality indication value for each communication channel, and d2) for each communication channel, summing the weighted quality indication value, and the quality indication value of the accumulated channel quality index to create said modified channel quality index, e) for each sub-node, transmitting said modified channel quality index to its parent node, and f) selecting and communicating updated communication parameters based on the modified channel quality index calculated in the master node. <EOS>