From: Senthil Balasubramanian <senthilkumar@atheros.com>
To: <linville@tuxdriver.com>
Cc: <jouni.malinen@atheros.com>, <luis.rodriguez@atheros.com>,
<linux-wireless@vger.kernel.org>, <ath9k-devel@lists.ath9k.org>,
Senthil Balasubramanian <senthilkumar@atheros.com>
Subject: [PATCH 3/7] ath9k: remove unnecessary STATION mode check.
Date: Wed, 10 Jun 2009 21:55:28 +0530 [thread overview]
Message-ID: <1244651133-6537-4-git-send-email-senthilkumar@atheros.com> (raw)
In-Reply-To: <1244651133-6537-3-git-send-email-senthilkumar@atheros.com>
Remove unncessary STATION mode check in ath9k_bss_assoc_info() as
it is called only for STATION mode.
Signed-off-by: Senthil Balasubramanian <senthilkumar@atheros.com>
---
drivers/net/wireless/ath/ath9k/main.c | 21 +++++++++------------
1 files changed, 9 insertions(+), 12 deletions(-)
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 0fd3f25..84fa69d 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -905,24 +905,21 @@ static void ath9k_bss_assoc_info(struct ath_softc *sc,
struct ieee80211_vif *vif,
struct ieee80211_bss_conf *bss_conf)
{
- struct ath_vif *avp = (void *)vif->drv_priv;
if (bss_conf->assoc) {
DPRINTF(sc, ATH_DBG_CONFIG, "Bss Info ASSOC %d, bssid: %pM\n",
bss_conf->aid, sc->curbssid);
/* New association, store aid */
- if (avp->av_opmode == NL80211_IFTYPE_STATION) {
- sc->curaid = bss_conf->aid;
- ath9k_hw_write_associd(sc);
+ sc->curaid = bss_conf->aid;
+ ath9k_hw_write_associd(sc);
- /*
- * Request a re-configuration of Beacon related timers
- * on the receipt of the first Beacon frame (i.e.,
- * after time sync with the AP).
- */
- sc->sc_flags |= SC_OP_BEACON_SYNC;
- }
+ /*
+ * Request a re-configuration of Beacon related timers
+ * on the receipt of the first Beacon frame (i.e.,
+ * after time sync with the AP).
+ */
+ sc->sc_flags |= SC_OP_BEACON_SYNC;
/* Configure the beacon */
ath_beacon_config(sc, vif);
--
1.6.0.4
next prev parent reply other threads:[~2009-06-10 16:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-10 16:25 [PATCH 0/7] ATH9K bug fixes - TX hang & Signal Quality issue Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH 1/7] ath9k: Manipulate and report the correct RSSI Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH 2/7] ath9k: AR9285 & AR9280 INI update and minor bug fixes Senthil Balasubramanian
2009-06-10 16:25 ` Senthil Balasubramanian [this message]
2009-06-10 16:25 ` [PATCH 4/7] ath9k: stop ani when the STA gets disconnected Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH 5/7] ath9k: race condition in SCANNING state check during ANI calibration Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH 6/7] ath9k: Fix TX hang issue with Atheros chipsets Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH 7/7] ath9k: schedule aggregation regardless of queue depth Senthil Balasubramanian
2009-06-10 16:25 ` [PATCH] ath9k: Fix panic when ath9k is unloaded Senthil Balasubramanian
2009-06-10 16:31 ` Senthil Balasubramanian
2009-06-17 18:58 ` [PATCH 0/7] ATH9K bug fixes - TX hang & Signal Quality issue John W. Linville
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=1244651133-6537-4-git-send-email-senthilkumar@atheros.com \
--to=senthilkumar@atheros.com \
--cc=ath9k-devel@lists.ath9k.org \
--cc=jouni.malinen@atheros.com \
--cc=linux-wireless@vger.kernel.org \
--cc=linville@tuxdriver.com \
--cc=luis.rodriguez@atheros.com \
/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;
as well as URLs for NNTP newsgroup(s).