Protocols and architectures for channel assignment in wireless mesh networks