]> git.baikalelectronics.ru Git - kernel.git/commit
cfg80211: require passing BSS struct back to cfg80211_assoc_timeout
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 11:05:42 +0000 (13:05 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 16:55:39 +0000 (18:55 +0200)
commit4589751bf3079f986c85ef7d1fe568122ed6b065
treeaeac7b16c571f062380fa99508d64df7cc1f4565
parent701220bd6a2cec160eb14659e265f64fac4bc384
cfg80211: require passing BSS struct back to cfg80211_assoc_timeout

Doing so will allow us to hold the BSS (not just ref it) over the
association process, thus ensuring that it doesn't time out and
gets invisible to the user (e.g. in 'iw wlan0 link'.)

This also fixes a leak in mac80211 where it doesn't always release
the BSS struct properly in all cases where calling this function.
This leak was reported by Ben Greear.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/net/cfg80211.h
net/mac80211/mlme.c
net/wireless/mlme.c