diff options
author | Gertjan van Wingerde <gwingerde@gmail.com> | 2010-12-27 09:05:14 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-01-04 14:35:13 -0500 |
commit | 773d1b98268a9effac047fd2ab1c47bf9f7a9e5f (patch) | |
tree | a87e97b63c12d3a8b3d185925c22a1e14ab2c261 | |
parent | 5235189c8edddf2eb32982f814bc858b55e6350a (diff) |
rt2x00: Remove intf->bssid field.
The bssid field in struct rt2x00_intf is only written to once, and is
never read from.
Remove this field, as it appears to not be needed.
Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00.h | 5 | ||||
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 11 |
2 files changed, 0 insertions, 16 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h index af1d3efc2949..5f7f52ff74d2 100644 --- a/drivers/net/wireless/rt2x00/rt2x00.h +++ b/drivers/net/wireless/rt2x00/rt2x00.h | |||
@@ -365,11 +365,6 @@ struct rt2x00_intf { | |||
365 | u8 mac[ETH_ALEN]; | 365 | u8 mac[ETH_ALEN]; |
366 | 366 | ||
367 | /* | 367 | /* |
368 | * BBSID of the AP to associate with. | ||
369 | */ | ||
370 | u8 bssid[ETH_ALEN]; | ||
371 | |||
372 | /* | ||
373 | * beacon->skb must be protected with the mutex. | 368 | * beacon->skb must be protected with the mutex. |
374 | */ | 369 | */ |
375 | struct mutex beacon_skb_mutex; | 370 | struct mutex beacon_skb_mutex; |
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 4cac7ad60f47..23250a5d8331 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -614,17 +614,6 @@ void rt2x00mac_bss_info_changed(struct ieee80211_hw *hw, | |||
614 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) | 614 | if (!test_bit(DEVICE_STATE_PRESENT, &rt2x00dev->flags)) |
615 | return; | 615 | return; |
616 | 616 | ||
617 | spin_lock(&intf->lock); | ||
618 | |||
619 | /* | ||
620 | * conf->bssid can be NULL if coming from the internal | ||
621 | * beacon update routine. | ||
622 | */ | ||
623 | if (changes & BSS_CHANGED_BSSID) | ||
624 | memcpy(&intf->bssid, bss_conf->bssid, ETH_ALEN); | ||
625 | |||
626 | spin_unlock(&intf->lock); | ||
627 | |||
628 | /* | 617 | /* |
629 | * Call rt2x00_config_intf() outside of the spinlock context since | 618 | * Call rt2x00_config_intf() outside of the spinlock context since |
630 | * the call will sleep for USB drivers. By using the ieee80211_if_conf | 619 | * the call will sleep for USB drivers. By using the ieee80211_if_conf |