A method comprising: determining, by a first access point, AP, device of a local area network, LAN, a first path from the first AP device to a gateway of the LAN, for sending data received from a client device directly connected to the first AP device from the first AP device to the gateway of the LAN, wherein the first path comprises a first set of wireless links via one or more forwarding devices between the first AP device and the gateway, wherein the first path comprises at least one wired link between two respective forwarding devices in the first path; determining, by the first AP device, a second path from the first AP device to the gateway, wherein the second path comprises a second set of wireless links via one or more forwarding devices between the first AP device and the gateway; determining, by the first AP device, a first throughput metric of a first wireless link between the first AP device and a first forwarding device in the first set; determining, by the first AP device, a first channel utilization metric of the first wireless link; determining, by the first AP device, a first link metric using the first throughput metric and the first channel utilization metric; determining, by the first AP device, a first path cost of the first path as a sum of the first link metric and a first cumulative sum of a link metric of each of the other wireless links in the first path and the at least one wired link in the first path, the first cumulative sum received from the first forwarding device in the first set; determining, by the first AP device, a second throughput metric of a second wireless link between the first AP device and a first forwarding device in the second set; determining, by the first AP device, a second channel utilization metric of the second wireless link; determining, by the first AP device, a second link metric of the second wireless link using the second throughput metric and the second channel utilization metric; determining, by the first AP device, a second path cost of the second path as a sum of the second link metric and a second cumulative sum of a link metric of each of the other wireless links in the second path, the second cumulative sum received from the first forwarding device in the second set; receiving, by the first AP device, the data from the client device; determining, by the first AP device, that the first path cost is less than the second path cost; and sending, by the first AP device, the data to the gateway via the first path. determining, by a first access point, AP, device of a local area network, LAN, a first path from the first AP device to a gateway of the LAN, for sending data received from a client device directly connected to the first AP device from the first AP device to the gateway of the LAN, wherein the first path comprises a first set of wireless links via one or more forwarding devices between the first AP device and the gateway, wherein the first path comprises at least one wired link between two respective forwarding devices in the first path; determining, by the first AP device, a second path from the first AP device to the gateway, wherein the second path comprises a second set of wireless links via one or more forwarding devices between the first AP device and the gateway; determining, by the first AP device, a first throughput metric of a first wireless link between the first AP device and a first forwarding device in the first set; determining, by the first AP device, a first channel utilization metric of the first wireless link; determining, by the first AP device, a first link metric using the first throughput metric and the first channel utilization metric; determining, by the first AP device, a first path cost of the first path as a sum of the first link metric and a first cumulative sum of a link metric of each of the other wireless links in the first path and the at least one wired link in the first path, the first cumulative sum received from the first forwarding device in the first set; determining, by the first AP device, a second throughput metric of a second wireless link between the first AP device and a first forwarding device in the second set; determining, by the first AP device, a second channel utilization metric of the second wireless link; determining, by the first AP device, a second link metric of the second wireless link using the second throughput metric and the second channel utilization metric; determining, by the first AP device, a second path cost of the second path as a sum of the second link metric and a second cumulative sum of a link metric of each of the other wireless links in the second path, the second cumulative sum received from the first forwarding device in the second set; receiving, by the first AP device, the data from the client device; determining, by the first AP device, that the first path cost is less than the second path cost; and sending, by the first AP device, the data to the gateway via the first path.