From: Johannes Berg Date: Sun, 11 Oct 2009 09:47:57 +0000 (+0200) Subject: mac80211: fix ibss race X-Git-Tag: v2.6.32-rc5~13^2~7^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51f98f1313d2fc4b1d3a3e1f4db7cf4925b29df6;p=pandora-kernel.git 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 Signed-off-by: John W. Linville --- Reading git-diff-tree failed