Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98818
b: refs/heads/master
c: 8db9369
h: refs/heads/master
v: v3
  • Loading branch information
Guy Cohen authored and John W. Linville committed Jul 7, 2008
1 parent cc98b68 commit 062c68a
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 0ff1cca0e272045b9c11a2ff94bd3e6893c9308c
refs/heads/master: 8db9369ff92b1cd93566baadd8bd2992f025fdd0
7 changes: 5 additions & 2 deletions trunk/net/mac80211/mlme.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,15 +547,14 @@ static void ieee80211_set_associated(struct net_device *dev,
sdata->bss_conf.ht_bss_conf = &conf->ht_bss_conf;
}

netif_carrier_on(dev);
ifsta->flags |= IEEE80211_STA_PREV_BSSID_SET;
memcpy(ifsta->prev_bssid, sdata->u.sta.bssid, ETH_ALEN);
memcpy(wrqu.ap_addr.sa_data, sdata->u.sta.bssid, ETH_ALEN);
ieee80211_sta_send_associnfo(dev, ifsta);
} else {
netif_carrier_off(dev);
ieee80211_sta_tear_down_BA_sessions(dev, ifsta->bssid);
ifsta->flags &= ~IEEE80211_STA_ASSOCIATED;
netif_carrier_off(dev);
ieee80211_reset_erp_info(dev);

sdata->bss_conf.assoc_ht = 0;
Expand All @@ -569,6 +568,10 @@ static void ieee80211_set_associated(struct net_device *dev,

sdata->bss_conf.assoc = assoc;
ieee80211_bss_info_change_notify(sdata, changed);

if (assoc)
netif_carrier_on(dev);

wrqu.ap_addr.sa_family = ARPHRD_ETHER;
wireless_send_event(dev, SIOCGIWAP, &wrqu, NULL);
}
Expand Down

0 comments on commit 062c68a

Please sign in to comment.