diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-21 04:43:53 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:23 -0400 |
commit | 46ff8d5978b7796e3757b9ad908361beb8fb160b (patch) | |
tree | c91a044b9b79e893085aeb12b39a52bbc9d27ebd /drivers | |
parent | 70df0516884834156f763f0e64a81712e26917c2 (diff) |
ath6kl: Remove ath6kl_wmi_get_current_bssid()
Use the bssid from ath6kl directly.
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/node.c | 5 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.h | 1 |
3 files changed, 1 insertions, 11 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/node.c b/drivers/net/wireless/ath/ath6kl/node.c index 533588cb5a1c..961154193ef5 100644 --- a/drivers/net/wireless/ath/ath6kl/node.c +++ b/drivers/net/wireless/ath/ath6kl/node.c | |||
@@ -176,16 +176,13 @@ void wlan_refresh_inactive_nodes(struct ath6kl *ar) | |||
176 | { | 176 | { |
177 | struct ath6kl_node_table *nt = &ar->scan_table; | 177 | struct ath6kl_node_table *nt = &ar->scan_table; |
178 | struct bss *bss; | 178 | struct bss *bss; |
179 | u8 my_bssid[ETH_ALEN]; | ||
180 | u32 now; | 179 | u32 now; |
181 | 180 | ||
182 | ath6kl_wmi_get_current_bssid(ar->wmi, my_bssid); | ||
183 | |||
184 | now = jiffies_to_msecs(jiffies); | 181 | now = jiffies_to_msecs(jiffies); |
185 | bss = nt->nt_node_first; | 182 | bss = nt->nt_node_first; |
186 | while (bss != NULL) { | 183 | while (bss != NULL) { |
187 | /* refresh all nodes except the current bss */ | 184 | /* refresh all nodes except the current bss */ |
188 | if (memcmp(my_bssid, bss->ni_macaddr, sizeof(my_bssid)) != 0) { | 185 | if (memcmp(ar->bssid, bss->ni_macaddr, ETH_ALEN) != 0) { |
189 | if (((now - bss->ni_tstamp) > nt->nt_node_age) | 186 | if (((now - bss->ni_tstamp) > nt->nt_node_age) |
190 | || --bss->ni_actcnt == 0) { | 187 | || --bss->ni_actcnt == 0) { |
191 | wlan_node_reclaim(nt, bss); | 188 | wlan_node_reclaim(nt, bss); |
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.c b/drivers/net/wireless/ath/ath6kl/wmi.c index ff71b7f3f7f4..50cee9bf0e2b 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.c +++ b/drivers/net/wireless/ath/ath6kl/wmi.c | |||
@@ -2247,12 +2247,6 @@ int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi) | |||
2247 | return ath6kl_wmi_simple_cmd(wmi, WMI_GET_TX_PWR_CMDID); | 2247 | return ath6kl_wmi_simple_cmd(wmi, WMI_GET_TX_PWR_CMDID); |
2248 | } | 2248 | } |
2249 | 2249 | ||
2250 | void ath6kl_wmi_get_current_bssid(struct wmi *wmi, u8 *bssid) | ||
2251 | { | ||
2252 | if (bssid) | ||
2253 | memcpy(bssid, wmi->parent_dev->bssid, ETH_ALEN); | ||
2254 | } | ||
2255 | |||
2256 | int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy) | 2250 | int ath6kl_wmi_set_lpreamble_cmd(struct wmi *wmi, u8 status, u8 preamble_policy) |
2257 | { | 2251 | { |
2258 | struct sk_buff *skb; | 2252 | struct sk_buff *skb; |
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h index 1646a9279efb..991d29fea19e 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.h +++ b/drivers/net/wireless/ath/ath6kl/wmi.h | |||
@@ -1995,7 +1995,6 @@ int ath6kl_wmi_setpmkid_cmd(struct wmi *wmi, const u8 *bssid, | |||
1995 | const u8 *pmkid, bool set); | 1995 | const u8 *pmkid, bool set); |
1996 | int ath6kl_wmi_set_tx_pwr_cmd(struct wmi *wmi, u8 dbM); | 1996 | int ath6kl_wmi_set_tx_pwr_cmd(struct wmi *wmi, u8 dbM); |
1997 | int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi); | 1997 | int ath6kl_wmi_get_tx_pwr_cmd(struct wmi *wmi); |
1998 | void ath6kl_wmi_get_current_bssid(struct wmi *wmi, u8 *bssid); | ||
1999 | 1998 | ||
2000 | int ath6kl_wmi_set_wmm_txop(struct wmi *wmi, enum wmi_txop_cfg cfg); | 1999 | int ath6kl_wmi_set_wmm_txop(struct wmi *wmi, enum wmi_txop_cfg cfg); |
2001 | int ath6kl_wmi_set_keepalive_cmd(struct wmi *wmi, u8 keep_alive_intvl); | 2000 | int ath6kl_wmi_set_keepalive_cmd(struct wmi *wmi, u8 keep_alive_intvl); |