cfg80211: hold BSS over association process
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 11:21:15 +0000 (13:21 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Jun 2013 16:55:39 +0000 (18:55 +0200)
commitf1940c5730f0f0555e42afbcf629be7f7fbbce8e
tree0e85c3b6f57bbb8e9f2640c28d0e98e0bdf55765
parent959867fa55d0cb55fb3d08656e5e62607167617f
cfg80211: hold BSS over association process

This fixes the potential issue that the BSS struct that we use
and later assign to wdev->current_bss is removed from the scan
list while associating.

Also warn when we don't have a BSS struct in connect_result
unless it's from a driver that only has the connect() API.

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