Interference and traffic aware channel assignment in WiFi-based wireless mesh networks