Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 278095
b: refs/heads/master
c: 1c17d31
h: refs/heads/master
i:
  278093: 8818824
  278091: 53e668f
  278087: f25f480
  278079: d9124f5
v: v3
  • Loading branch information
Kalle Valo committed Nov 11, 2011
1 parent 7bb8d13 commit 51ce76e
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 13 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: 2387f0dcd10abf8f867ebb9b22d213793510b4c6
refs/heads/master: 1c17d313891c1477f5aad8d2e1da473bf8b9499d
12 changes: 4 additions & 8 deletions trunk/drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -871,23 +871,19 @@ static int ath6kl_cfg80211_scan(struct wiphy *wiphy, struct net_device *ndev,
return ret;
}

void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, int status)
void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted)
{
struct ath6kl *ar = vif->ar;
bool aborted;
int i;

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

if (!vif->scan_req)
return;

if ((status == -ECANCELED) || (status == -EBUSY)) {
aborted = true;
if (aborted)
goto out;
}

aborted = false;

if (vif->scan_req->n_ssids && vif->scan_req->ssids[0].ssid_len) {
for (i = 0; i < vif->scan_req->n_ssids; i++) {
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/cfg80211.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ int ath6kl_register_ieee80211_hw(struct ath6kl *ar);
struct ath6kl *ath6kl_core_alloc(struct device *dev);
void ath6kl_deinit_ieee80211_hw(struct ath6kl *ar);

void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, int status);
void ath6kl_cfg80211_scan_complete_event(struct ath6kl_vif *vif, bool aborted);

void ath6kl_cfg80211_connect_event(struct ath6kl_vif *vif, u16 channel,
u8 *bssid, u16 listen_intvl,
Expand Down
10 changes: 7 additions & 3 deletions trunk/drivers/net/wireless/ath/ath6kl/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ void ath6kl_deep_sleep_enable(struct ath6kl *ar)
printk(KERN_WARNING "ath6kl: failed to disable scan "
"during suspend\n");

ath6kl_cfg80211_scan_complete_event(vif, -ECANCELED);
ath6kl_cfg80211_scan_complete_event(vif, true);

/* save the current power mode before enabling power save */
ar->wmi->saved_pwr_mode = ar->wmi->pwr_mode;
Expand Down Expand Up @@ -684,8 +684,12 @@ void ath6kl_ready_event(void *devt, u8 *datap, u32 sw_ver, u32 abi_ver)
void ath6kl_scan_complete_evt(struct ath6kl_vif *vif, int status)
{
struct ath6kl *ar = vif->ar;
bool aborted = false;

ath6kl_cfg80211_scan_complete_event(vif, status);
if (status != WMI_SCAN_STATUS_SUCCESS)
aborted = true;

ath6kl_cfg80211_scan_complete_event(vif, aborted);

if (!ar->usr_bss_filter) {
clear_bit(CLEAR_BSSFILTER_ON_BEACON, &vif->flags);
Expand Down Expand Up @@ -1149,7 +1153,7 @@ static int ath6kl_close(struct net_device *dev)

}

ath6kl_cfg80211_scan_complete_event(vif, -ECANCELED);
ath6kl_cfg80211_scan_complete_event(vif, true);

/* FIXME: how to handle multi vif support? */
ret = ath6kl_init_hw_stop(ar);
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/net/wireless/ath/ath6kl/wmi.h
Original file line number Diff line number Diff line change
Expand Up @@ -1472,6 +1472,10 @@ struct wmi_tkip_micerr_event {
u8 is_mcast;
} __packed;

enum wmi_scan_status {
WMI_SCAN_STATUS_SUCCESS = 0,
};

/* WMI_SCAN_COMPLETE_EVENTID */
struct wmi_scan_complete_event {
a_sle32 status;
Expand Down

0 comments on commit 51ce76e

Please sign in to comment.