ath6kl: Remove ath6kl_wmi_iterate_nodes()
authorVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Thu, 21 Jul 2011 09:06:55 +0000 (14:36 +0530)
committerKalle Valo <kvalo@qca.qualcomm.com>
Tue, 9 Aug 2011 16:45:23 +0000 (19:45 +0300)
Use wlan_iterate_nodes() directly.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/cfg80211.c
drivers/net/wireless/ath/ath6kl/wmi.c
drivers/net/wireless/ath/ath6kl/wmi.h

index 9eaa1b1da3ef79bda3a422be10e27ca0c0840478..cf5ab55cc0dfc153cceb756d37e5c80977d878c3 100644 (file)
@@ -833,8 +833,8 @@ void ath6kl_cfg80211_scan_complete_event(struct ath6kl *ar, int status)
        }
 
        /* Translate data to cfg80211 mgmt format */
-       ath6kl_wmi_iterate_nodes(&ar->scan_table, ath6kl_cfg80211_scan_node,
-                                ar->wdev->wiphy);
+       wlan_iterate_nodes(&ar->scan_table, ath6kl_cfg80211_scan_node,
+                          ar->wdev->wiphy);
 
        cfg80211_scan_done(ar->scan_req, false);
 
index 6a6f79c8d78f9849ebe6d4eae33a3f11bb414165..f5aa33dd4c42da1127b462d75bb718336005aa1b 100644 (file)
@@ -386,13 +386,6 @@ int ath6kl_wmi_data_hdr_remove(struct wmi *wmi, struct sk_buff *skb)
        return 0;
 }
 
-void ath6kl_wmi_iterate_nodes(struct ath6kl_node_table *scan_tbl,
-                             void (*f) (void *arg, struct bss *),
-                             void *arg)
-{
-       wlan_iterate_nodes(scan_tbl, f, arg);
-}
-
 static void ath6kl_wmi_convert_bssinfo_hdr2_to_hdr(struct sk_buff *skb,
                                                   u8 *datap)
 {
index a9f8f9ee48052b94098bc1d5a02469bf5b40c252..fe3ddce6408793e541c8fcaa1b712daa3ccd10cc 100644 (file)
@@ -1931,9 +1931,6 @@ int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, struct sk_buff *skb,
                                       u8 *ac);
 
 int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb);
-void ath6kl_wmi_iterate_nodes(struct ath6kl_node_table *scan_tbl,
-                             void (*f) (void *arg, struct bss *),
-                             void *arg);
 struct bss *ath6kl_wmi_find_node(struct wmi *wmi, const u8 *mac_addr);
 void ath6kl_wmi_node_free(struct wmi *wmi, const u8 *mac_addr);