ath9k: Remove useless opmode check
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Mon, 15 Sep 2014 05:55:53 +0000 (11:25 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 15 Sep 2014 19:00:54 +0000 (15:00 -0400)
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>
drivers/net/wireless/ath/ath9k/main.c

index 9e921d1cc52f2bb9e637f8c72eacc4383d69ecbc..dffeffff0a0f4db0d49f135dca06ced3510d0365 100644 (file)
@@ -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;
This page took 0.027151 seconds and 5 git commands to generate.