Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 119762
b: refs/heads/master
c: b8ddafd
h: refs/heads/master
v: v3
  • Loading branch information
Zhu Yi authored and John W. Linville committed Dec 5, 2008
1 parent cd3be49 commit 31308d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 40a9a8299116297429298e8fcee08235134883f7
refs/heads/master: b8ddafd759e356c839774a8b87011b768deb53b3
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/ipw2200.c
Original file line number Diff line number Diff line change
Expand Up @@ -3897,6 +3897,7 @@ static int ipw_disassociate(void *data)
if (!(priv->status & (STATUS_ASSOCIATED | STATUS_ASSOCIATING)))
return 0;
ipw_send_disassociate(data, 0);
netif_carrier_off(priv->net_dev);
return 1;
}

Expand Down Expand Up @@ -10190,6 +10191,9 @@ static int ipw_tx_skb(struct ipw_priv *priv, struct ieee80211_txb *txb,
u16 remaining_bytes;
int fc;

if (!(priv->status & STATUS_ASSOCIATED))
goto drop;

hdr_len = ieee80211_get_hdrlen(le16_to_cpu(hdr->frame_ctl));
switch (priv->ieee->iw_mode) {
case IW_MODE_ADHOC:
Expand Down

0 comments on commit 31308d2

Please sign in to comment.