diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-10 01:19:26 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:24 -0400 |
commit | 17753748e15eaf29c8db15c5c05b8dde5db6e64d (patch) | |
tree | 91cecfd361c921404c61f6e533e5fcceef811c72 /drivers/net/wireless/ath/ath5k/attach.c | |
parent | 9ecdef4be864fede4e5964abc82c8d7451288539 (diff) |
ath: move ath_bcast_mac to common header
This is used by both ath5k and ath9k to set the first bssid mask.
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/attach.c')
-rw-r--r-- | drivers/net/wireless/ath/ath5k/attach.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 71a1bd254517..9a009a78a046 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -336,7 +336,7 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc) | |||
336 | ath5k_hw_set_lladdr(ah, (u8[ETH_ALEN]){}); | 336 | ath5k_hw_set_lladdr(ah, (u8[ETH_ALEN]){}); |
337 | 337 | ||
338 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ | 338 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ |
339 | memset(ah->ah_bssid, 0xff, ETH_ALEN); | 339 | memcpy(ah->ah_bssid, ath_bcast_mac, ETH_ALEN); |
340 | ath5k_hw_set_associd(ah, ah->ah_bssid, 0); | 340 | ath5k_hw_set_associd(ah, ah->ah_bssid, 0); |
341 | ath5k_hw_set_opmode(ah); | 341 | ath5k_hw_set_opmode(ah); |
342 | 342 | ||