cfg80211: move cookie_counter out of wiphy
authorJohannes Berg <johannes.berg@intel.com>
Mon, 1 Oct 2018 09:52:07 +0000 (11:52 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 2 Oct 2018 07:58:36 +0000 (09:58 +0200)
commitb60ad3485106b5845113e7a2745abb7e64b15d6d
tree1edbb0fdc3876e3a34103056a20d39ad3460bead
parent71e5e886806ee3f8e0c44ed945eb2e4d6659c6e3
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: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/wireless/core.h
net/wireless/nl80211.c