Linux wireless drivers development
 help / color / mirror / Atom feed
From: Kalle Valo <kvalo@qca.qualcomm.com>
To: kvalo@qca.qualcomm.com
Cc: linux-wireless@vger.kernel.org
Subject: [PATCH v2 3/7] ath6kl: reset CONNECT_PEND and CONNECTED flags in ath6kl_cfg80211_stop()
Date: Tue, 01 Nov 2011 08:44:13 +0200	[thread overview]
Message-ID: <20111101064413.6798.44046.stgit@localhost6.localdomain6> (raw)
In-Reply-To: <20111101064140.6798.7006.stgit@localhost6.localdomain6>

Otherwise first connection establish after cutpower suspend will
fail.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
---
 drivers/net/wireless/ath/ath6kl/cfg80211.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/wireless/ath/ath6kl/cfg80211.c b/drivers/net/wireless/ath/ath6kl/cfg80211.c
index 94038cb..565cdbe 100644
--- a/drivers/net/wireless/ath/ath6kl/cfg80211.c
+++ b/drivers/net/wireless/ath/ath6kl/cfg80211.c
@@ -2151,6 +2151,8 @@ void ath6kl_cfg80211_stop(struct ath6kl *ar)
 		ath6kl_wmi_disconnect_cmd(ar->wmi, vif->fw_vif_idx);
 
 	vif->sme_state = SME_DISCONNECTED;
+	clear_bit(CONNECTED, &vif->flags);
+	clear_bit(CONNECT_PEND, &vif->flags);
 
 	/* disable scanning */
 	if (ath6kl_wmi_scanparams_cmd(ar->wmi, vif->fw_vif_idx, 0xFFFF, 0, 0,


  parent reply	other threads:[~2011-11-01  6:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-01  6:43 [PATCH v2 0/7] ath6kl: suspend cutpower mode Kalle Valo
2011-11-01  6:43 ` [PATCH v2 1/7] ath6kl: add aborted parameter to ath6kl_cfg80211_scan_complete_event() Kalle Valo
2011-11-01  6:44 ` [PATCH v2 2/7] ath6kl: create ath6kl_cfg80211_stop() Kalle Valo
2011-11-01  6:44 ` Kalle Valo [this message]
2011-11-01  6:44 ` [PATCH v2 4/7] ath6kl: implement ath6kl_cfg80211_suspend() Kalle Valo
2011-11-01  6:44 ` [PATCH v2 5/7] ath6kl: add state variable depicting hw/fw state Kalle Valo
2011-11-01  6:44 ` [PATCH v2 6/7] ath6kl: refactor sdio configuration to a separate function Kalle Valo
2011-11-01  6:44 ` [PATCH v2 7/7] ath6kl: cut power during suspend Kalle Valo
2011-11-01 11:57 ` [PATCH v2 0/7] ath6kl: suspend cutpower mode Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111101064413.6798.44046.stgit@localhost6.localdomain6 \
    --to=kvalo@qca.qualcomm.com \
    --cc=linux-wireless@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox