Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156896
b: refs/heads/master
c: e9d126c
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Aug 10, 2009
1 parent 5a904e5 commit 255f76c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 363ec5614f86110c6a6bdd72ac2147ebafd3ff5e
refs/heads/master: e9d126cdfa60b575f1b5b02024c4faee27dccf07
5 changes: 3 additions & 2 deletions trunk/drivers/net/wireless/ath/ar9170/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1967,13 +1967,14 @@ static int ar9170_conf_tx(struct ieee80211_hw *hw, u16 queue,
int ret;

mutex_lock(&ar->mutex);
if ((param) && !(queue > __AR9170_NUM_TXQ)) {
if (queue < __AR9170_NUM_TXQ) {
memcpy(&ar->edcf[ar9170_qos_hwmap[queue]],
param, sizeof(*param));

ret = ar9170_set_qos(ar);
} else
} else {
ret = -EINVAL;
}

mutex_unlock(&ar->mutex);
return ret;
Expand Down

0 comments on commit 255f76c

Please sign in to comment.