Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265473
b: refs/heads/master
c: 6fd1eac
h: refs/heads/master
i:
  265471: 771a277
v: v3
  • Loading branch information
Kalle Valo committed Aug 9, 2011
1 parent 7282843 commit 843fa87
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 19 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cf104c2a207f550d9c3b8f8bcf73cb11765692f6
refs/heads/master: 6fd1eacec1b8cd081b9ae067f852cece3e886521
41 changes: 23 additions & 18 deletions trunk/drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,29 +820,34 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,

void ath6kl_cfg80211_scan_complete_event(struct ath6kl *ar, int status)
{
int i;

ath6kl_dbg(ATH6KL_DBG_WLAN_CFG, "%s: status %d\n", __func__, status);

if (ar->scan_req) {
/* Translate data to cfg80211 mgmt format */
ath6kl_wmi_iterate_nodes(ar->wmi, ath6kl_cfg80211_scan_node,
ar->wdev->wiphy);

cfg80211_scan_done(ar->scan_req, ((status & -ECANCELED)
|| (status & -EBUSY)) ? true :
false);

if (ar->scan_req->n_ssids && ar->scan_req->ssids[0].ssid_len) {
u8 i;

for (i = 0; i < ar->scan_req->n_ssids; i++) {
ath6kl_wmi_probedssid_cmd(ar->wmi, i + 1,
DISABLE_SSID_FLAG,
0, NULL);
}
if (!ar->scan_req)
return;

if ((status == -ECANCELED) || (status == -EBUSY)) {
cfg80211_scan_done(ar->scan_req, true);
goto out;
}

/* Translate data to cfg80211 mgmt format */
ath6kl_wmi_iterate_nodes(ar->wmi, ath6kl_cfg80211_scan_node,
ar->wdev->wiphy);

cfg80211_scan_done(ar->scan_req, false);

if (ar->scan_req->n_ssids && ar->scan_req->ssids[0].ssid_len) {
for (i = 0; i < ar->scan_req->n_ssids; i++) {
ath6kl_wmi_probedssid_cmd(ar->wmi, i + 1,
DISABLE_SSID_FLAG,
0, NULL);
}
ar->scan_req = NULL;
}

out:
ar->scan_req = NULL;
}

static int ath6kl_cfg80211_add_key(struct wiphy *wiphy, struct net_device *ndev,
Expand Down

0 comments on commit 843fa87

Please sign in to comment.