Skip to content

Commit

Permalink
ath9k: Remove useless opmode check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Sep 15, 2014
1 parent 4ee26de commit af87dd3
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit af87dd3

Please sign in to comment.