}
 
 /* struct ath6kl_node_table::nt_nodelock is locked when calling this */
-static void ath6kl_cfg80211_scan_node(void *arg, struct bss *ni)
+void ath6kl_cfg80211_scan_node(void *arg, struct bss *ni)
 {
        struct wiphy *wiphy = (struct wiphy *)arg;
        u16 size;
        }
 
        /* Translate data to cfg80211 mgmt format */
-       wlan_iterate_nodes(&ar->scan_table, ath6kl_cfg80211_scan_node,
-                          ar->wdev->wiphy);
+       wlan_iterate_nodes(&ar->scan_table, ar->wdev->wiphy);
 
        cfg80211_scan_done(ar->scan_req, false);
 
 
                           const u8 *mac_addr);
 void wlan_node_reclaim(struct ath6kl_node_table *nt, struct bss *ni);
 void wlan_free_allnodes(struct ath6kl_node_table *nt);
-void wlan_iterate_nodes(struct ath6kl_node_table *nt,
-                       void (*f) (void *arg, struct bss *),
-                       void *arg);
+void wlan_iterate_nodes(struct ath6kl_node_table *nt, void *arg);
 
 void wlan_node_table_init(struct ath6kl_node_table *nt);
 void wlan_node_table_cleanup(struct ath6kl_node_table *nt);
 int ath6kl_core_init(struct ath6kl *ar);
 int ath6kl_unavail_ev(struct ath6kl *ar);
 struct sk_buff *ath6kl_buf_alloc(int size);
+void ath6kl_cfg80211_scan_node(void *arg, struct bss *ni);
 #endif /* COMMON_H */
 
                wlan_node_reclaim(nt, ni);
 }
 
-void wlan_iterate_nodes(struct ath6kl_node_table *nt,
-                       void (*f) (void *arg, struct bss *), void *arg)
+void wlan_iterate_nodes(struct ath6kl_node_table *nt, void *arg)
 {
        struct bss *ni;
 
        spin_lock_bh(&nt->nt_nodelock);
        for (ni = nt->nt_node_first; ni; ni = ni->ni_list_next) {
                        ni->ni_refcnt++;
-                       (*f) (arg, ni);
+                       ath6kl_cfg80211_scan_node(arg, ni);
                        wlan_node_dec_free(ni);
        }
        spin_unlock_bh(&nt->nt_nodelock);