Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 194250
b: refs/heads/master
c: 76c3c69
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and Reinette Chatre committed Apr 9, 2010
1 parent 8b4451b commit 4370a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: a90178fa1dce52816ae9fa4a3ba031886b79c5ae
refs/heads/master: 76c3c698bf47927fb31044fa2f4321c99ed7411d
6 changes: 1 addition & 5 deletions trunk/drivers/net/wireless/iwlwifi/iwl-sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -1187,13 +1187,9 @@ int iwl_send_lq_cmd(struct iwl_priv *priv,
.data = lq,
};

if ((lq->sta_id == 0xFF) &&
(priv->iw_mode == NL80211_IFTYPE_ADHOC))
if (WARN_ON(lq->sta_id == IWL_INVALID_STATION))
return -EINVAL;

if (lq->sta_id == 0xFF)
lq->sta_id = IWL_AP_ID;

iwl_dump_lq_cmd(priv, lq);
BUG_ON(init && (cmd.flags & CMD_ASYNC));

Expand Down

0 comments on commit 4370a44

Please sign in to comment.