Skip to content
Snippets Groups Projects
Commit b60ad348 authored by Johannes Berg's avatar Johannes Berg
Browse files

cfg80211: move cookie_counter out of wiphy


There's no reason for drivers to be able to access the
cfg80211 internal cookie counter; move it out of the
wiphy into the rdev structure.

While at it, also make it never assign 0 as a cookie
(we consider that invalid in some places), and warn if
we manage to do that for some reason (wrapping is not
likely to happen with a u64.)

Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 71e5e886
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment