Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 23287
b: refs/heads/master
c: 2dd5080
h: refs/heads/master
i:
  23285: 96d53c9
  23283: 285c8ab
  23279: 737bea9
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Mar 23, 2006
1 parent 1a5d2b3 commit c0adce5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 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: 5c4df6da580b9317dc0856e235232b95cbc8251c
refs/heads/master: 2dd50801b3ac95988bd5789e4ec576f3480ecc59
4 changes: 2 additions & 2 deletions trunk/net/ieee80211/softmac/ieee80211softmac_assoc.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ ieee80211softmac_associated(struct ieee80211softmac_device *mac,
if (mac->set_bssid_filter)
mac->set_bssid_filter(mac->dev, net->bssid);
memcpy(mac->ieee->bssid, net->bssid, ETH_ALEN);
mac->dev->flags |= IFF_RUNNING;
netif_carrier_on(mac->dev);

mac->association_id = le16_to_cpup(&resp->aid);
}
Expand Down Expand Up @@ -346,7 +346,7 @@ ieee80211softmac_handle_disassoc(struct net_device * dev,
struct ieee80211softmac_device *mac = ieee80211_priv(dev);
unsigned long flags;
dprintk(KERN_INFO PFX "got disassoc frame\n");

netif_carrier_off(dev);
spin_lock_irqsave(&mac->lock, flags);
mac->associnfo.bssvalid = 0;
mac->associated = 0;
Expand Down
2 changes: 2 additions & 0 deletions trunk/net/ieee80211/softmac/ieee80211softmac_auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ ieee80211softmac_deauth_from_net(struct ieee80211softmac_device *mac,
kfree(net->challenge);
kfree(net);

/* can't transmit data right now... */
netif_carrier_off(mac->dev);
/* let's try to re-associate */
schedule_work(&mac->associnfo.work);
spin_unlock_irqrestore(&mac->lock, flags);
Expand Down
15 changes: 2 additions & 13 deletions trunk/net/ieee80211/softmac/ieee80211softmac_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,10 @@ struct net_device *alloc_ieee80211softmac(int sizeof_priv)
softmac->txrates.default_rate = IEEE80211_CCK_RATE_1MB;
softmac->txrates.default_fallback = IEEE80211_CCK_RATE_1MB;

/* should we also assign softmac->mgmt_xmit here so
* that it is always valid? If so, we probably want
* to define a new function for that which just
* wraps ieee80211_tx_frame
*/
/* to start with, we can't send anything ... */
netif_carrier_off(dev);

/* until associated, we're not ready */
dev->flags &= ~IFF_RUNNING;

return dev;

err_free_ieee80211:
free_ieee80211(dev);

return NULL;
}

/* Clears the pending work queue items, stops all scans, etc. */
Expand Down

0 comments on commit c0adce5

Please sign in to comment.