aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-10 01:19:26 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:24 -0400
commit17753748e15eaf29c8db15c5c05b8dde5db6e64d (patch)
tree91cecfd361c921404c61f6e533e5fcceef811c72
parent9ecdef4be864fede4e5964abc82c8d7451288539 (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>
-rw-r--r--drivers/net/wireless/ath/ath.h2
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/pcu.c2
-rw-r--r--drivers/net/wireless/ath/ath9k/ath9k.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/wireless/ath/ath.h b/drivers/net/wireless/ath/ath.h
index a63e90cbf9e5..59072e3820d0 100644
--- a/drivers/net/wireless/ath/ath.h
+++ b/drivers/net/wireless/ath/ath.h
@@ -19,6 +19,8 @@
19 19
20#include <linux/skbuff.h> 20#include <linux/skbuff.h>
21 21
22static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
23
22struct reg_dmn_pair_mapping { 24struct reg_dmn_pair_mapping {
23 u16 regDmnEnum; 25 u16 regDmnEnum;
24 u16 reg_5ghz_ctl; 26 u16 reg_5ghz_ctl;
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
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 9c6ab5378f6e..a28d79555dfc 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -815,7 +815,7 @@ ath5k_attach(struct pci_dev *pdev, struct ieee80211_hw *hw)
815 815
816 SET_IEEE80211_PERM_ADDR(hw, mac); 816 SET_IEEE80211_PERM_ADDR(hw, mac);
817 /* All MAC address bits matter for ACKs */ 817 /* All MAC address bits matter for ACKs */
818 memset(sc->bssidmask, 0xff, ETH_ALEN); 818 memcpy(sc->bssidmask, ath_bcast_mac, ETH_ALEN);
819 ath5k_hw_set_bssid_mask(sc->ah, sc->bssidmask); 819 ath5k_hw_set_bssid_mask(sc->ah, sc->bssidmask);
820 820
821 regulatory->current_rd = ah->ah_capabilities.cap_eeprom.ee_regdomain; 821 regulatory->current_rd = ah->ah_capabilities.cap_eeprom.ee_regdomain;
diff --git a/drivers/net/wireless/ath/ath5k/pcu.c b/drivers/net/wireless/ath/ath5k/pcu.c
index 2942f13c9c4a..43aa35806618 100644
--- a/drivers/net/wireless/ath/ath5k/pcu.c
+++ b/drivers/net/wireless/ath/ath5k/pcu.c
@@ -365,7 +365,7 @@ void ath5k_hw_set_associd(struct ath5k_hw *ah, const u8 *bssid, u16 assoc_id)
365 * assuming only 4 bits for a mac address and for BSSIDs you can then have: 365 * assuming only 4 bits for a mac address and for BSSIDs you can then have:
366 * 366 *
367 * \ 367 * \
368 * MAC: 0001 | 368 * MAC: 0001 |
369 * BSSID-01: 0100 | --> Belongs to us 369 * BSSID-01: 0100 | --> Belongs to us
370 * BSSID-02: 1001 | 370 * BSSID-02: 1001 |
371 * / 371 * /
diff --git a/drivers/net/wireless/ath/ath9k/ath9k.h b/drivers/net/wireless/ath/ath9k/ath9k.h
index d99c92d7b949..e54fac322bd2 100644
--- a/drivers/net/wireless/ath/ath9k/ath9k.h
+++ b/drivers/net/wireless/ath/ath9k/ath9k.h
@@ -60,8 +60,6 @@ struct ath_node;
60 60
61#define ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i)) 61#define ATH_TXQ_SETUP(sc, i) ((sc)->tx.txqsetup & (1<<i))
62 62
63static const u8 ath_bcast_mac[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
64
65struct ath_config { 63struct ath_config {
66 u32 ath_aggr_prot; 64 u32 ath_aggr_prot;
67 u16 txpowlimit; 65 u16 txpowlimit;