libertas: Move actual transmission to main thread

The locking issues with TX, especially TX from multiple netdevs, get
_so_ much easier if you do it like this.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
David Woodhouse
2007-12-09 23:54:27 -05:00
committed by David S. Miller
parent b8d40bc9c9
commit 2eb188a1c5
3 changed files with 71 additions and 61 deletions

View File

@@ -164,7 +164,10 @@ struct lbs_private {
struct mutex lock;
u8 tmptxbuf[LBS_UPLD_SIZE];
/* TX packet ready to be sent... */
int tx_pending_len; /* -1 while building packet */
u8 tx_pending_buf[LBS_UPLD_SIZE];
/* protected by hard_start_xmit serialization */
/** command-related variables */