summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k
diff options
context:
space:
mode:
authorSujith Manoharan <c_manoha@qca.qualcomm.com>2014-09-15 11:25:53 +0530
committerJohn W. Linville <linville@tuxdriver.com>2014-09-15 15:00:54 -0400
commitaf87dd33a17151f46ae50a564a799f9ea9397539 (patch)
tree5a4954f2285d9a707ccd1702829ea73e192325f3 /drivers/net/wireless/ath/ath9k
parent4ee26de18d267170fe44ecb6cc4bafaa218b26e3 (diff)
downloadblackbird-op-linux-af87dd33a17151f46ae50a564a799f9ea9397539.tar.gz
blackbird-op-linux-af87dd33a17151f46ae50a564a799f9ea9397539.zip
ath9k: Remove useless opmode check
The opmode is verified to be NL80211_IFTYPE_STATION before calling ath9k_set_assoc_state(). Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 9e921d1cc52f..dffeffff0a0f 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -963,13 +963,6 @@ static void ath9k_set_assoc_state(struct ath_softc *sc,
unsigned long flags;
set_bit(ATH_OP_PRIM_STA_VIF, &common->op_flags);
- /* Set the AID, BSSID and do beacon-sync only when
- * the HW opmode is STATION.
- *
- * But the primary bit is set above in any case.
- */
- if (sc->sc_ah->opmode != NL80211_IFTYPE_STATION)
- return;
ether_addr_copy(common->curbssid, bss_conf->bssid);
common->curaid = bss_conf->aid;
OpenPOWER on IntegriCloud