Resource sharing optimality in WiFi infrastructure networks