Björn Smedman wrote: > Thank you Sujith for the clarification. When you lay out the cases it > makes more sense. But there are still border cases, like e.g. adding > first a STA and then an AP interface. If I read main.c correctly the > opmode will then be STA and the AP vif will be broken, right? > > Wouldn't it be better to keep counts of number of vifs by type and > e.g. activate SWBA if (adhocvifs > 0 || apvifs > 0) and similar? Then > it wouldn't mater in which order vifs are added, removed and changed. Yep, individual interface counters have to be maintained, since bringing down one beaconing interface shouldn't disable SWBA altogether. Also, we should allow only one IBSS interface, and deny multi-interfaces when it is present. Sujith -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html