A local controller for setting reflection phases of elements of a reconfigurable intelligent surface, the local controller being configured to set the reflection phases of elements in a first element subset comprising at least two of the elements, the local controller being configured to communicate control messages with neighbouring local controllers of the reconfigurable intelligent surface, each of the neighbouring local controllers being configured to set the reflection phases of elements in a respective second element subset, with at least two elements per each of the second element subset, the local controller comprising processing circuitry, and the processing circuitry being configured to cause the local controller to:
- receive a first control message, the first control message comprising a description of a first reflection phase specific for the first element subset;
- send a second control message towards a second local controller of the neighbouring local controllers, the second control message comprising a description of a second reflection phase specific for the second element subset of the second local controller, and the second reflection phase being based on the first reflection phase and a geometric relation in the reconfigurable intelligent surface between the first element subset and the second element subset of the second local controller;
- and
- set the reflection phase of each element in the first element subset in accordance with the description of the first reflection phase.