Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 149844
b: refs/heads/master
c: 32c1628
h: refs/heads/master
v: v3
  • Loading branch information
Christian Lamparter authored and John W. Linville committed Apr 22, 2009
1 parent 8b798bb commit ffd485e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 807e37394b5a1dc23a2908b59f34edbbae67e9ea
refs/heads/master: 32c1628f153a5468cf48be5e5c04cd599ae9e01d
7 changes: 4 additions & 3 deletions trunk/drivers/net/wireless/ar9170/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,8 +742,9 @@ static void ar9170_op_stop(struct ieee80211_hw *hw)
if (IS_STARTED(ar))
ar->state = AR9170_IDLE;

mutex_lock(&ar->mutex);
flush_workqueue(ar->hw->workqueue);

mutex_lock(&ar->mutex);
cancel_delayed_work_sync(&ar->tx_status_janitor);
cancel_work_sync(&ar->filter_config_work);
cancel_work_sync(&ar->beacon_work);
Expand Down Expand Up @@ -1123,10 +1124,10 @@ static void ar9170_set_filters(struct work_struct *work)
filter_config_work);
int err;

mutex_lock(&ar->mutex);
if (unlikely(!IS_STARTED(ar)))
goto unlock;
return ;

mutex_lock(&ar->mutex);
if (ar->filter_changed & AR9170_FILTER_CHANGED_PROMISC) {
err = ar9170_set_operating_mode(ar);
if (err)
Expand Down

0 comments on commit ffd485e

Please sign in to comment.