diff options
author | Eliad Peller <eliad@wizery.com> | 2011-10-05 05:55:44 -0400 |
---|---|---|
committer | Luciano Coelho <coelho@ti.com> | 2011-10-07 01:32:36 -0400 |
commit | cdf09495588fda7e9c15c25bc20cb828e07be314 (patch) | |
tree | eef30352c4619b787515c95b8a7c5b79ad785d0b /drivers/net/wireless/wl12xx/main.c | |
parent | d2d66c56cf6c8727662aa321991f791604c22094 (diff) |
wl12xx: replace wl->bssid with vif->bss_conf.bssid
Use the per-interface vif->bss_conf instead of the global wl->bssid.
Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
Diffstat (limited to 'drivers/net/wireless/wl12xx/main.c')
-rw-r--r-- | drivers/net/wireless/wl12xx/main.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/net/wireless/wl12xx/main.c b/drivers/net/wireless/wl12xx/main.c index 8863ea542ea6..d19c3fe34860 100644 --- a/drivers/net/wireless/wl12xx/main.c +++ b/drivers/net/wireless/wl12xx/main.c | |||
@@ -2098,7 +2098,6 @@ deinit: | |||
2098 | wl1271_tx_reset(wl, reset_tx_queues); | 2098 | wl1271_tx_reset(wl, reset_tx_queues); |
2099 | wl1271_power_off(wl); | 2099 | wl1271_power_off(wl); |
2100 | 2100 | ||
2101 | memset(wl->bssid, 0, ETH_ALEN); | ||
2102 | memset(wl->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); | 2101 | memset(wl->ssid, 0, IEEE80211_MAX_SSID_LEN + 1); |
2103 | wl->ssid_len = 0; | 2102 | wl->ssid_len = 0; |
2104 | wl->bss_type = MAX_BSS_TYPE; | 2103 | wl->bss_type = MAX_BSS_TYPE; |
@@ -2249,8 +2248,6 @@ static int wl1271_unjoin(struct wl1271 *wl) | |||
2249 | if (ret < 0) | 2248 | if (ret < 0) |
2250 | goto out; | 2249 | goto out; |
2251 | 2250 | ||
2252 | memset(wl->bssid, 0, ETH_ALEN); | ||
2253 | |||
2254 | /* reset TX security counters on a clean disconnect */ | 2251 | /* reset TX security counters on a clean disconnect */ |
2255 | wl->tx_security_last_seq_lsb = 0; | 2252 | wl->tx_security_last_seq_lsb = 0; |
2256 | wl->tx_security_seq = 0; | 2253 | wl->tx_security_seq = 0; |
@@ -3449,15 +3446,8 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl, | |||
3449 | wl->rssi_thold = bss_conf->cqm_rssi_thold; | 3446 | wl->rssi_thold = bss_conf->cqm_rssi_thold; |
3450 | } | 3447 | } |
3451 | 3448 | ||
3452 | if ((changed & BSS_CHANGED_BSSID) && | 3449 | if (changed & BSS_CHANGED_BSSID) |
3453 | /* | 3450 | if (!is_zero_ether_addr(bss_conf->bssid)) { |
3454 | * Now we know the correct bssid, so we send a new join command | ||
3455 | * and enable the BSSID filter | ||
3456 | */ | ||
3457 | memcmp(wl->bssid, bss_conf->bssid, ETH_ALEN)) { | ||
3458 | memcpy(wl->bssid, bss_conf->bssid, ETH_ALEN); | ||
3459 | |||
3460 | if (!is_zero_ether_addr(wl->bssid)) { | ||
3461 | ret = wl12xx_cmd_build_null_data(wl, wlvif); | 3451 | ret = wl12xx_cmd_build_null_data(wl, wlvif); |
3462 | if (ret < 0) | 3452 | if (ret < 0) |
3463 | goto out; | 3453 | goto out; |
@@ -3469,7 +3459,6 @@ static void wl1271_bss_info_changed_sta(struct wl1271 *wl, | |||
3469 | /* Need to update the BSSID (for filtering etc) */ | 3459 | /* Need to update the BSSID (for filtering etc) */ |
3470 | do_join = true; | 3460 | do_join = true; |
3471 | } | 3461 | } |
3472 | } | ||
3473 | 3462 | ||
3474 | if (changed & (BSS_CHANGED_ASSOC | BSS_CHANGED_HT)) { | 3463 | if (changed & (BSS_CHANGED_ASSOC | BSS_CHANGED_HT)) { |
3475 | rcu_read_lock(); | 3464 | rcu_read_lock(); |