Johannes Berg 7d37fcd409 mac80211: reject zero cookie in mgmt-tx/roc cancel
When cancelling, you can cancel "any" (first in list) mgmt-tx
or remain-on-channel operation by using the value 0 for the
cookie along with the *opposite* operation, i.e.
 * cancel the first mgmt-tx by cancelling roc with 0 cookie
 * cancel the first roc by cancelling mgmt-tx with 0 cookie

This isn't really that bad since userspace should only pass
cookies that we gave it, but could lead to hard-to-debug
issues so better prevent it and reject zero values since we
never hand those out.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
2015-12-04 14:43:32 +01:00
..
2015-10-13 17:42:34 +02:00
2015-11-22 11:54:10 -05:00
2015-11-02 15:38:26 -05:00
2015-11-02 22:47:14 -05:00
2015-11-22 11:54:10 -05:00
2015-10-23 03:05:19 -07:00
2015-10-07 04:27:43 -07:00
2015-10-27 19:52:59 -07:00
2015-11-17 15:25:44 -05:00