diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-10-01 11:52:07 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2018-10-02 09:58:36 +0200 |
commit | b60ad3485106b5845113e7a2745abb7e64b15d6d (patch) | |
tree | 1edbb0fdc3876e3a34103056a20d39ad3460bead /include/net | |
parent | 71e5e886806ee3f8e0c44ed945eb2e4d6659c6e3 (diff) | |
download | op-kernel-dev-b60ad3485106b5845113e7a2745abb7e64b15d6d.zip op-kernel-dev-b60ad3485106b5845113e7a2745abb7e64b15d6d.tar.gz |
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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/cfg80211.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/net/cfg80211.h b/include/net/cfg80211.h index deb3131..8f5ee2c 100644 --- a/include/net/cfg80211.h +++ b/include/net/cfg80211.h @@ -4012,7 +4012,6 @@ struct wiphy_iftype_ext_capab { * by the driver in the .connect() callback. The bit position maps to the * attribute indices defined in &enum nl80211_bss_select_attr. * - * @cookie_counter: unique generic cookie counter, used to identify objects. * @nan_supported_bands: bands supported by the device in NAN mode, a * bitmap of &enum nl80211_band values. For instance, for * NL80211_BAND_2GHZ, bit 0 would be set @@ -4151,8 +4150,6 @@ struct wiphy { u32 bss_select_support; - u64 cookie_counter; - u8 nan_supported_bands; u32 txq_limit; |