From: Sujith Manoharan Date: Wed, 13 Apr 2011 05:55:59 +0000 (+0530) Subject: ath9k_htc: Drain pending TX frames properly X-Git-Tag: v3.0-rc2~7^2~16^2~394 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b587fc81a80b9656f64e89fe0a106ffa4b35abca;p=pandora-kernel.git ath9k_htc: Drain pending TX frames properly When doing a channel set or a reset operation the pending frames queued up for transmission have to be flushed and sent to mac80211. Fixing this has to be done in two separate steps: * Flush queued frames and kill the URB TX completion handler. * Complete all the frames that in the TX pending queue. This patch adds proper support for draining and all the callsites namely, channel change/reset/idle/stop are fixed. A separate queue is used for handling failed frames. Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- Reading git-diff-tree failed