summaryrefslogtreecommitdiff
path: root/package/libertas/src/join.c
diff options
context:
space:
mode:
authorJens Muecke <jens@nons.de>2008-01-24 03:03:04 +0000
committerJens Muecke <jens@nons.de>2008-01-24 03:03:04 +0000
commit3829f7b3f1ce44131a25f34d3c21ee33ab1ba7fa (patch)
tree12be7757f7f03efb1eeb53266dc48496b0d99b2f /package/libertas/src/join.c
parent8ee2e7a4a3161b73949836276e5fd847c44f1c10 (diff)
downloadmtk-20170518-3829f7b3f1ce44131a25f34d3c21ee33ab1ba7fa.zip
mtk-20170518-3829f7b3f1ce44131a25f34d3c21ee33ab1ba7fa.tar.gz
mtk-20170518-3829f7b3f1ce44131a25f34d3c21ee33ab1ba7fa.tar.bz2
Updating libertas wireless driver to latest version.
SVN-Revision: 10235
Diffstat (limited to 'package/libertas/src/join.c')
-rw-r--r--package/libertas/src/join.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/package/libertas/src/join.c b/package/libertas/src/join.c
index 14425d9..2d45080 100644
--- a/package/libertas/src/join.c
+++ b/package/libertas/src/join.c
@@ -781,8 +781,8 @@ int lbs_ret_80211_associate(struct lbs_private *priv,
priv->numSNRNF = 0;
netif_carrier_on(priv->dev);
- netif_wake_queue(priv->dev);
-
+ if (!priv->tx_pending_len)
+ netif_wake_queue(priv->dev);
memcpy(wrqu.ap_addr.sa_data, priv->curbssparams.bssid, ETH_ALEN);
wrqu.ap_addr.sa_family = ARPHRD_ETHER;
@@ -865,7 +865,8 @@ int lbs_ret_80211_ad_hoc_start(struct lbs_private *priv,
priv->curbssparams.ssid_len = bss->ssid_len;
netif_carrier_on(priv->dev);
- netif_wake_queue(priv->dev);
+ if (!priv->tx_pending_len)
+ netif_wake_queue(priv->dev);
memset(&wrqu, 0, sizeof(wrqu));
memcpy(wrqu.ap_addr.sa_data, priv->curbssparams.bssid, ETH_ALEN);