]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: fix tx-mgmt cookie value being left uninitialized
authorNicolas Cavallari <Nicolas.Cavallari@lri.fr>
Mon, 16 Jul 2012 16:36:52 +0000 (18:36 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 17 Jul 2012 09:22:42 +0000 (11:22 +0200)
commitc4f7db8d440d9de6e62b31143ab66c2c4859880a
tree82d4c54d095ba8107e3841036e50e325254dd39d
parent8c537c7d0fa1a0ea1ce6c18fe6ef6166c0e4e085
mac80211: fix tx-mgmt cookie value being left uninitialized

commit "mac80211: unify SW/offload remain-on-channel"
moved the cookie assignment from ieee80211_mgmt_tx()
to ieee80211_start_roc_work().  But the latter is only
called where offchannel is needed.  If offchannel isn't
needed/used, a uninitialized cookie value would be returned
to userspace.

This patch sets the cookie value when offchannel isn't used.

Signed-off-by: Nicolas Cavallari <cavallar@lri.fr>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c