Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 287523
b: refs/heads/master
c: b7097eb
h: refs/heads/master
i:
  287521: ac29b43
  287519: b6cc97e
v: v3
  • Loading branch information
Amitkumar Karwar authored and John W. Linville committed Feb 3, 2012
1 parent 209d535 commit 5d0ea08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8149415efa033ca138c0080ded77329e98697c7b
refs/heads/master: b7097eb75fa11c302dcdec83f1dbfa874e0af0d1
8 changes: 7 additions & 1 deletion trunk/drivers/net/wireless/mwifiex/sta_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ int mwifiex_copy_mcast_addr(struct mwifiex_multicast_list *mlist,
int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter)
{
bool cancel_flag = false;
int status = adapter->cmd_wait_q.status;
int status;
struct cmd_ctrl_node *cmd_queued;

if (!adapter->cmd_queued)
Expand All @@ -79,6 +79,8 @@ int mwifiex_wait_queue_complete(struct mwifiex_adapter *adapter)
mwifiex_cancel_pending_ioctl(adapter);
dev_dbg(adapter->dev, "cmd cancel\n");
}

status = adapter->cmd_wait_q.status;
adapter->cmd_wait_q.status = 0;

return status;
Expand Down Expand Up @@ -240,6 +242,8 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,

if (!netif_queue_stopped(priv->netdev))
mwifiex_stop_net_dev_queue(priv->netdev, adapter);
if (netif_carrier_ok(priv->netdev))
netif_carrier_off(priv->netdev);

/* Clear any past association response stored for
* application retrieval */
Expand Down Expand Up @@ -271,6 +275,8 @@ int mwifiex_bss_start(struct mwifiex_private *priv, struct cfg80211_bss *bss,

if (!netif_queue_stopped(priv->netdev))
mwifiex_stop_net_dev_queue(priv->netdev, adapter);
if (netif_carrier_ok(priv->netdev))
netif_carrier_off(priv->netdev);

if (!ret) {
dev_dbg(adapter->dev, "info: network found in scan"
Expand Down

0 comments on commit 5d0ea08

Please sign in to comment.