Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 351858
b: refs/heads/master
c: 0dd13a4
h: refs/heads/master
v: v3
  • Loading branch information
Yogesh Ashok Powar authored and John W. Linville committed Jan 9, 2013
1 parent 9de7c9a commit e431620
Show file tree
Hide file tree
Showing 2 changed files with 25 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: 9b0b11fb1e286e03ce911b94844952edd05f554e
refs/heads/master: 0dd13a48a913f096cb44dbcb6c1daebd94b2cf84
25 changes: 24 additions & 1 deletion trunk/drivers/net/wireless/mwl8k.c
Original file line number Diff line number Diff line change
Expand Up @@ -3935,7 +3935,30 @@ static int mwl8k_cmd_set_new_stn_del(struct ieee80211_hw *hw,
struct ieee80211_vif *vif, u8 *addr)
{
struct mwl8k_cmd_set_new_stn *cmd;
int rc;
struct mwl8k_priv *priv = hw->priv;
int rc, i;
u8 idx;

spin_lock(&priv->stream_lock);
/* Destroy any active ampdu streams for this sta */
for (i = 0; i < MWL8K_NUM_AMPDU_STREAMS; i++) {
struct mwl8k_ampdu_stream *s;
s = &priv->ampdu[i];
if (s->state != AMPDU_NO_STREAM) {
if (memcmp(s->sta->addr, addr, ETH_ALEN) == 0) {
if (s->state == AMPDU_STREAM_ACTIVE) {
idx = s->idx;
spin_unlock(&priv->stream_lock);
mwl8k_destroy_ba(hw, idx);
spin_lock(&priv->stream_lock);
} else if (s->state == AMPDU_STREAM_NEW) {
mwl8k_remove_stream(hw, s);
}
}
}
}

spin_unlock(&priv->stream_lock);

cmd = kzalloc(sizeof(*cmd), GFP_KERNEL);
if (cmd == NULL)
Expand Down

0 comments on commit e431620

Please sign in to comment.