diff options
author | Luis R. Rodriguez <lrodriguez@atheros.com> | 2009-09-10 13:10:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-10-07 16:39:26 -0400 |
commit | 8c727e70860dab0cf34a68591cd3f2043a9b9757 (patch) | |
tree | c9da40f71f27d56adad1ada6358893b66034664f /drivers/net/wireless/ath/ar9170/main.c | |
parent | 1510718d0fd6e20803aac95fe1d8a44846098a34 (diff) |
ar9170: make use of common macaddr and curbssid
These are provided by ath_common.
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/ar9170/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ar9170/main.c b/drivers/net/wireless/ath/ar9170/main.c index c1f8c69db165..81c6cf1135bc 100644 --- a/drivers/net/wireless/ath/ar9170/main.c +++ b/drivers/net/wireless/ath/ar9170/main.c | |||
@@ -1952,6 +1952,7 @@ static int ar9170_op_add_interface(struct ieee80211_hw *hw, | |||
1952 | struct ieee80211_if_init_conf *conf) | 1952 | struct ieee80211_if_init_conf *conf) |
1953 | { | 1953 | { |
1954 | struct ar9170 *ar = hw->priv; | 1954 | struct ar9170 *ar = hw->priv; |
1955 | struct ath_common *common = &ar->common; | ||
1955 | int err = 0; | 1956 | int err = 0; |
1956 | 1957 | ||
1957 | mutex_lock(&ar->mutex); | 1958 | mutex_lock(&ar->mutex); |
@@ -1962,7 +1963,7 @@ static int ar9170_op_add_interface(struct ieee80211_hw *hw, | |||
1962 | } | 1963 | } |
1963 | 1964 | ||
1964 | ar->vif = conf->vif; | 1965 | ar->vif = conf->vif; |
1965 | memcpy(ar->mac_addr, conf->mac_addr, ETH_ALEN); | 1966 | memcpy(common->macaddr, conf->mac_addr, ETH_ALEN); |
1966 | 1967 | ||
1967 | if (modparam_nohwcrypt || (ar->vif->type != NL80211_IFTYPE_STATION)) { | 1968 | if (modparam_nohwcrypt || (ar->vif->type != NL80211_IFTYPE_STATION)) { |
1968 | ar->rx_software_decryption = true; | 1969 | ar->rx_software_decryption = true; |
@@ -2131,12 +2132,13 @@ static void ar9170_op_bss_info_changed(struct ieee80211_hw *hw, | |||
2131 | u32 changed) | 2132 | u32 changed) |
2132 | { | 2133 | { |
2133 | struct ar9170 *ar = hw->priv; | 2134 | struct ar9170 *ar = hw->priv; |
2135 | struct ath_common *common = &ar->common; | ||
2134 | int err = 0; | 2136 | int err = 0; |
2135 | 2137 | ||
2136 | mutex_lock(&ar->mutex); | 2138 | mutex_lock(&ar->mutex); |
2137 | 2139 | ||
2138 | if (changed & BSS_CHANGED_BSSID) { | 2140 | if (changed & BSS_CHANGED_BSSID) { |
2139 | memcpy(ar->bssid, bss_conf->bssid, ETH_ALEN); | 2141 | memcpy(common->curbssid, bss_conf->bssid, ETH_ALEN); |
2140 | err = ar9170_set_operating_mode(ar); | 2142 | err = ar9170_set_operating_mode(ar); |
2141 | if (err) | 2143 | if (err) |
2142 | goto out; | 2144 | goto out; |