diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-10-11 13:47:57 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-12 23:55:52 +0400 |
commit | 51f98f1313d2fc4b1d3a3e1f4db7cf4925b29df6 (patch) | |
tree | d39f829ab22aff38791a0c13e05eab985598ef6e /drivers/auxdisplay | |
parent | 5e4708bcb5d5360730e31b14e5e36429fc7d48b2 (diff) | |
download | linux-51f98f1313d2fc4b1d3a3e1f4db7cf4925b29df6.tar.xz |
mac80211: fix ibss race
When a scan completes, we call ieee80211_sta_find_ibss(),
which is also called from other places. When the scan was
done in software, there's no problem as both run from the
single-threaded mac80211 workqueue and are thus serialised
against each other, but with hardware scan the completion
can be in a different context and race against callers of
this function from the workqueue (e.g. due to beacon RX).
So instead of calling ieee80211_sta_find_ibss() directly,
just arm the timer and have it fire, scheduling the work,
which will invoke ieee80211_sta_find_ibss() (if that is
appropriate in the current state).
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/auxdisplay')
0 files changed, 0 insertions, 0 deletions