diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2013-03-24 04:45:59 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-03-27 21:37:36 +0400 |
commit | c031df31daf69ffbb4c9f6f966df83646241a195 (patch) | |
tree | 56d7b55fe1047a48cb0527d11960074a11b498e6 /drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | |
parent | af44e258108058f30d4d4de1f7af0aff88ea3f4b (diff) | |
download | linux-c031df31daf69ffbb4c9f6f966df83646241a195.tar.xz |
brcmsmac: react on changing SSID
To send the correct probe response the hardware needs to know the SSID
when it changed.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c')
-rw-r--r-- | drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c index e113fb6f3241..5688df5907b8 100644 --- a/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c +++ b/drivers/net/wireless/brcm80211/brcmsmac/mac80211_if.c @@ -521,6 +521,12 @@ brcms_ops_bss_info_changed(struct ieee80211_hw *hw, brcms_c_set_addrmatch(wl->wlc, RCM_BSSID_OFFSET, info->bssid); spin_unlock_bh(&wl->lock); } + if (changed & BSS_CHANGED_SSID) { + /* BSSID changed, for whatever reason (IBSS and managed mode) */ + spin_lock_bh(&wl->lock); + brcms_c_set_ssid(wl->wlc, info->ssid, info->ssid_len); + spin_unlock_bh(&wl->lock); + } if (changed & BSS_CHANGED_BEACON) { /* Beacon data changed, retrieve new beacon (beaconing modes) */ struct sk_buff *beacon; |