A method for selecting and distributing 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 data packets are used for data communication within the wireless network and each data packet comprises a sequential number identifying selected communication parameters, the method comprises: - 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, - dividing said plurality of nodes into one master node and at least one sub-node, 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, - configuring the wireless network in a tree structure whereby each sub-node has a parent node and each node may have one or more child nodes, - 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; and - for each node, calculating a weighted quality indication value for each communication channel, and - 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, - for each sub-node, configuring the sub-node to transmit said modified channel quality index to its parent node, - selecting and communicating updated communication parameters based on the modified channel quality index calculated in the master node the method further comprises: - initiating a process of updating the communication parameters and updating the sequential number when the communication parameters has been updated by the master node, - communicating updated communication parameters to at least one sub-node in the wireless network by transmitting, from a node, a data packet comprising the updated sequential number, - detecting, in sub-nodes within the coverage area of the transmitting node, the updated sequential number in the data packet, - listening, in each sub-node that has detected an updated sequential number, for communication parameters associated with said updated sequential number, and - using the updated communication parameters at a predetermined time. - 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, - dividing said plurality of nodes into one master node and at least one sub-node, 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, - configuring the wireless network in a tree structure whereby each sub-node has a parent node and each node may have one or more child nodes, - 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; and - 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; and - for each node, calculating a weighted quality indication value for each communication channel, and - 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, - for each sub-node, configuring the sub-node to transmit said modified channel quality index to its parent node, - selecting and communicating updated communication parameters based on the modified channel quality index calculated in the master node the method further comprises: - initiating a process of updating the communication parameters and updating the sequential number when the communication parameters has been updated by the master node, - communicating updated communication parameters to at least one sub-node in the wireless network by transmitting, from a node, a data packet comprising the updated sequential number, - detecting, in sub-nodes within the coverage area of the transmitting node, the updated sequential number in the data packet, - listening, in each sub-node that has detected an updated sequential number, for communication parameters associated with said updated sequential number, and - using the updated communication parameters at a predetermined time.