diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-10 13:51:33 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:26 -0400 |
commit | 954fecea5d1df4d1dc7bf9a822a2fad308e8588e (patch) | |
tree | 73f5cbc16292f0a85f3672af701e83bba74dbb77 /drivers/net/wireless/ath/ath5k/attach.c | |
parent | 8c727e70860dab0cf34a68591cd3f2043a9b9757 (diff) |
ath5k: use common curbssid, bssidmask and macaddr
The ah_sta_id was really being used as the macaddr.
ath5k still does not use the association ID now passed
up by mac80211, that can be fixed later.
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 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c index 9a009a78a04..2d262c7d906 100644 --- a/drivers/net/wireless/ath/ath5k/attach.c +++ b/drivers/net/wireless/ath/ath5k/attach.c | |||
@@ -104,6 +104,7 @@ static int ath5k_hw_post(struct ath5k_hw *ah) | |||
104 | struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc) | 104 | struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc) |
105 | { | 105 | { |
106 | struct ath5k_hw *ah; | 106 | struct ath5k_hw *ah; |
107 | struct ath_common *common; | ||
107 | struct pci_dev *pdev = sc->pdev; | 108 | struct pci_dev *pdev = sc->pdev; |
108 | struct ath5k_eeprom_info *ee; | 109 | struct ath5k_eeprom_info *ee; |
109 | int ret; | 110 | int ret; |
@@ -118,7 +119,9 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc) | |||
118 | } | 119 | } |
119 | 120 | ||
120 | ah->ah_sc = sc; | 121 | ah->ah_sc = sc; |
122 | ah->ah_sc->ah = ah; | ||
121 | ah->ah_iobase = sc->iobase; | 123 | ah->ah_iobase = sc->iobase; |
124 | common = ath5k_hw_common(ah); | ||
122 | 125 | ||
123 | /* | 126 | /* |
124 | * HW information | 127 | * HW information |
@@ -336,8 +339,8 @@ struct ath5k_hw *ath5k_hw_attach(struct ath5k_softc *sc) | |||
336 | ath5k_hw_set_lladdr(ah, (u8[ETH_ALEN]){}); | 339 | ath5k_hw_set_lladdr(ah, (u8[ETH_ALEN]){}); |
337 | 340 | ||
338 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ | 341 | /* Set BSSID to bcast address: ff:ff:ff:ff:ff:ff for now */ |
339 | memcpy(ah->ah_bssid, ath_bcast_mac, ETH_ALEN); | 342 | memcpy(common->curbssid, ath_bcast_mac, ETH_ALEN); |
340 | ath5k_hw_set_associd(ah, ah->ah_bssid, 0); | 343 | ath5k_hw_set_associd(ah, common->curbssid, 0); |
341 | ath5k_hw_set_opmode(ah); | 344 | ath5k_hw_set_opmode(ah); |
342 | 345 | ||
343 | ath5k_hw_rfgain_opt_init(ah); | 346 | ath5k_hw_rfgain_opt_init(ah); |