From: Felix Fietkau Date: Tue, 19 Jan 2010 19:51:32 +0000 (+0100) Subject: ath9k: fix beacon slot/buffer leak X-Git-Tag: v2.6.33-rc7~20^2~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74401773f80b6d42f7a4c6994ca0cca883b03745;p=pandora-kernel.git ath9k: fix beacon slot/buffer leak When cleaning up beacon buffers and slots, ath9k currently checks if sc->ah->opmode is set to a beacon related mode before cleaning up buffers. An unfortunate ordering of interface up/down commands can lead to sc->ah->opmode being set to monitor mode, while there are AP interfaces present on the same wiphy. Always cleaning up beacon buffers if present fixes this issue. Signed-off-by: Felix Fietkau Cc: stable@kernel.org Signed-off-by: John W. Linville --- Reading git-diff-tree failed