]> 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)
commitbebff2f9575e259c4df0bf1c825db466cbb911d2
treeaeac7b16c571f062380fa99508d64df7cc1f4565
parent9d10982a38541eae1dff2132fddc2291930aa294
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