mac80211: fix ieee80211_find_sta[_by_hw]
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 30 Apr 2010 11:48:36 +0000 (13:48 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 May 2010 18:51:47 +0000 (14:51 -0400)
commitf7c65594f7148b778f41d591a701e94bb22428e4
treef5ffe3353a5061c5251c6e5a1575a8338487da2a
parentc7ab1a4dcb8fb63364e9460b1182da6eae5f0d16
mac80211: fix ieee80211_find_sta[_by_hw]

Both of these functions can currently return
a station pointer that, to the driver, is
invalid (in IBSS mode only) because adding
the station failed. Check for that, and also
make ieee80211_find_sta() properly use the
per interface station search.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/sta_info.c