Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266619
b: refs/heads/master
c: 1de547d
h: refs/heads/master
i:
  266617: 8f15d0e
  266615: 8907944
v: v3
  • Loading branch information
Vasanthakumar Thiagarajan authored and Kalle Valo committed Sep 23, 2011
1 parent c18db06 commit c4571c6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 5694f962964c5162f6b49ddb5d517180bd7d1d98
refs/heads/master: 1de547d6dcc66f6d9d227de9f510acbbf88a654f
20 changes: 9 additions & 11 deletions trunk/drivers/net/wireless/ath/ath6kl/cfg80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,22 +602,20 @@ void ath6kl_cfg80211_disconnect_event(struct ath6kl *ar, u8 reason,
}
}

if (!test_bit(CONNECT_PEND, &ar->flag)) {
if (reason != DISCONNECT_CMD)
ath6kl_wmi_disconnect_cmd(ar->wmi);

return;
}
/*
* Send a disconnect command to target when a disconnect event is
* received with reason code other than 3 (DISCONNECT_CMD - disconnect
* request from host) to make the firmware stop trying to connect even
* after giving disconnect event. There will be one more disconnect
* event for this disconnect command with reason code DISCONNECT_CMD
* which will be notified to cfg80211.
*/

if (reason == NO_NETWORK_AVAIL) {
/* connect cmd failed */
if (reason != DISCONNECT_CMD) {
ath6kl_wmi_disconnect_cmd(ar->wmi);
return;
}

if (reason != DISCONNECT_CMD)
return;

clear_bit(CONNECT_PEND, &ar->flag);

if (ar->sme_state == SME_CONNECTING) {
Expand Down

0 comments on commit c4571c6

Please sign in to comment.