On Fri, 2012-07-06 at 14:30 -0700, Ben Greear wrote: > On 07/06/2012 02:05 PM, Johannes Berg wrote: > > I decided that with multi-channel coming and thus us using more > > virtual interfaces, the scanning code was going to be the first > > victim of some factoring ;-) > > > > Please review. The only thing that isn't quite clear to me is > > whether or not I can really remove the channel == oper_channel > > check, but it's only applied to probe resp/beacon frames so it > > seems a bit pointless to try to keep it? > > For what it's worth, I don't see any problems with the patches. :-) I think you should see much fewer calls to cfg80211 with this when beacons are received, when you have many virtual interfaces, but I'm not sure how you'd see that unless you carefully measure CPU utilization. > Another enhancement I was thinking about would be to allow > vifs to piggy-back on other vif's scans. Instead of > returning EBUSY when another vif is already scanning, just > register to receive the scanning vif's results when it finishes. Hmm, yes, technically that's possible. However, you'd have to verify that it used exactly the same scan parameters, which seems like a lot of overhead? Given that we give you the scan parameters in the nl80211 event when the scan finishes (at least I think we do), you could even do this optimisation in userspace, when -EBUSY is returned? johannes -- 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