Commit 39dd3fcb authored by Vasanthakumar Thiagarajan's avatar Vasanthakumar Thiagarajan Committed by Kalle Valo

ath6kl: Pass only the needed scan_table to ath6kl_wmi_iterate_nodes()

Signed-off-by: default avatarVasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent 852bd9d9
...@@ -833,7 +833,7 @@ void ath6kl_cfg80211_scan_complete_event(struct ath6kl *ar, int status) ...@@ -833,7 +833,7 @@ void ath6kl_cfg80211_scan_complete_event(struct ath6kl *ar, int status)
} }
/* Translate data to cfg80211 mgmt format */ /* Translate data to cfg80211 mgmt format */
ath6kl_wmi_iterate_nodes(ar->wmi, ath6kl_cfg80211_scan_node, ath6kl_wmi_iterate_nodes(&ar->scan_table, ath6kl_cfg80211_scan_node,
ar->wdev->wiphy); ar->wdev->wiphy);
cfg80211_scan_done(ar->scan_req, false); cfg80211_scan_done(ar->scan_req, false);
......
...@@ -386,11 +386,11 @@ int ath6kl_wmi_data_hdr_remove(struct wmi *wmi, struct sk_buff *skb) ...@@ -386,11 +386,11 @@ int ath6kl_wmi_data_hdr_remove(struct wmi *wmi, struct sk_buff *skb)
return 0; return 0;
} }
void ath6kl_wmi_iterate_nodes(struct wmi *wmi, void ath6kl_wmi_iterate_nodes(struct ath6kl_node_table *scan_tbl,
void (*f) (void *arg, struct bss *), void (*f) (void *arg, struct bss *),
void *arg) void *arg)
{ {
wlan_iterate_nodes(&wmi->parent_dev->scan_table, f, arg); wlan_iterate_nodes(scan_tbl, f, arg);
} }
static void ath6kl_wmi_convert_bssinfo_hdr2_to_hdr(struct sk_buff *skb, static void ath6kl_wmi_convert_bssinfo_hdr2_to_hdr(struct sk_buff *skb,
......
...@@ -1931,7 +1931,7 @@ int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, struct sk_buff *skb, ...@@ -1931,7 +1931,7 @@ int ath6kl_wmi_implicit_create_pstream(struct wmi *wmi, struct sk_buff *skb,
u8 *ac); u8 *ac);
int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb); int ath6kl_wmi_control_rx(struct wmi *wmi, struct sk_buff *skb);
void ath6kl_wmi_iterate_nodes(struct wmi *wmi, void ath6kl_wmi_iterate_nodes(struct ath6kl_node_table *scan_tbl,
void (*f) (void *arg, struct bss *), void (*f) (void *arg, struct bss *),
void *arg); void *arg);
struct bss *ath6kl_wmi_find_node(struct wmi *wmi, const u8 *mac_addr); struct bss *ath6kl_wmi_find_node(struct wmi *wmi, const u8 *mac_addr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment