]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use a counter for remain-on-channel cookie
authorJohannes Berg <johannes.berg@intel.com>
Fri, 26 Oct 2012 14:13:06 +0000 (16:13 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 30 Oct 2012 08:33:40 +0000 (09:33 +0100)
commitd4f52691c19e21cacf075c4c60c9bb08bd2328b1
treeba700ee435487e31857d165f836ea084983d10cb
parent1fa506dd147f6c41d8ef861ebf8024f733b9f608
mac80211: use a counter for remain-on-channel cookie

Instead of using the pointer which can be re-used
fairly quickly due to allocator patterns and then
makes debugging difficult, maintain a counter and
use its value. Since it's a 64-bit value it can't
really wrap, but catch that case anyway since it
most likely points to a bug somewhere.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/ieee80211_i.h
net/mac80211/offchannel.c