Emmanuel Grumbach wrote: > mac80211 will not wait until the context switch happen specifically, > but if you can wait > in the driver in the flush() callback until the deauth is being sent - > whatever you need to > happen to have that done, context switch, TX queues to move etc... - > then you should be good? > IIRC, mac80211 sends the deauth to the driver and then calls flush() - > only then, it'll remove the > contexts. > > So I guess that we agree - the solution for you I guess is to wait > until you have context switch > in the flush() callback. I don't think trying to switch channel contexts in the flush() callback is a good idea. We would be changing the meaning of the callback if we do that. Moreover flush() is called from many other places too, like the PS code. It seems appropriate to instruct a driver to make the necessary preparations before sending a deauth frame. Do you see any problems if mgd_prepare_tx() is called before initiating deauth ? 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