Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267417
b: refs/heads/master
c: 1f44a82
h: refs/heads/master
i:
  267415: a430828
v: v3
  • Loading branch information
Sukesh Srikakula authored and Greg Kroah-Hartman committed Aug 23, 2011
1 parent aac659b commit 0ce22f8
Show file tree
Hide file tree
Showing 2 changed files with 21 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: db25e44b9fa9e04f18122aed5bd4dedf45c7dd9c
refs/heads/master: 1f44a8219e47d0803a7386d7e501fbe8b04058a6
21 changes: 20 additions & 1 deletion trunk/drivers/staging/brcm80211/brcmfmac/wl_cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,11 @@ brcmf_bss_roaming_done(struct brcmf_cfg80211_priv *cfg_priv,
const struct brcmf_event_msg *e, void *data)
{
struct brcmf_cfg80211_connect_info *conn_info = cfg_to_conn(cfg_priv);
struct wiphy *wiphy = cfg_to_wiphy(cfg_priv);
struct brcmf_channel_info channel;
struct ieee80211_channel *notify_channel;
struct ieee80211_supported_band *band;
u32 freq;
s32 err = 0;

WL_TRACE("Enter\n");
Expand All @@ -2898,7 +2903,21 @@ brcmf_bss_roaming_done(struct brcmf_cfg80211_priv *cfg_priv,
brcmf_update_prof(cfg_priv, NULL, &e->addr, WL_PROF_BSSID);
brcmf_update_bss_info(cfg_priv);

cfg80211_roamed(ndev, NULL,
brcmf_dev_ioctl(ndev, BRCMF_C_GET_CHANNEL, &channel, sizeof(channel));

channel.target_channel = le32_to_cpu(channel.target_channel);
WL_CONN("Roamed to channel %d\n", channel.target_channel);

if (channel.target_channel <= CH_MAX_2G_CHANNEL)
band = wiphy->bands[IEEE80211_BAND_2GHZ];
else
band = wiphy->bands[IEEE80211_BAND_5GHZ];

freq = ieee80211_channel_to_frequency(channel.target_channel,
band->band);
notify_channel = ieee80211_get_channel(wiphy, freq);

cfg80211_roamed(ndev, notify_channel,
(u8 *)brcmf_read_prof(cfg_priv, WL_PROF_BSSID),
conn_info->req_ie, conn_info->req_ie_len,
conn_info->resp_ie, conn_info->resp_ie_len, GFP_KERNEL);
Expand Down

0 comments on commit 0ce22f8

Please sign in to comment.