How to Effectively Use Multiple Channels in Wireless Mesh Networks