diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 3f00daa0ea06..38794850f005 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -2044,25 +2044,6 @@ static void ath9k_bss_info_changed(struct ieee80211_hw *hw, | |||
2044 | ath_beacon_config(sc, vif); | 2044 | ath_beacon_config(sc, vif); |
2045 | } | 2045 | } |
2046 | 2046 | ||
2047 | if (changed & BSS_CHANGED_ERP_PREAMBLE) { | ||
2048 | ath_dbg(common, CONFIG, "BSS Changed PREAMBLE %d\n", | ||
2049 | bss_conf->use_short_preamble); | ||
2050 | if (bss_conf->use_short_preamble) | ||
2051 | sc->sc_flags |= SC_OP_PREAMBLE_SHORT; | ||
2052 | else | ||
2053 | sc->sc_flags &= ~SC_OP_PREAMBLE_SHORT; | ||
2054 | } | ||
2055 | |||
2056 | if (changed & BSS_CHANGED_ERP_CTS_PROT) { | ||
2057 | ath_dbg(common, CONFIG, "BSS Changed CTS PROT %d\n", | ||
2058 | bss_conf->use_cts_prot); | ||
2059 | if (bss_conf->use_cts_prot && | ||
2060 | hw->conf.channel->band != IEEE80211_BAND_5GHZ) | ||
2061 | sc->sc_flags |= SC_OP_PROTECT_ENABLE; | ||
2062 | else | ||
2063 | sc->sc_flags &= ~SC_OP_PROTECT_ENABLE; | ||
2064 | } | ||
2065 | |||
2066 | mutex_unlock(&sc->mutex); | 2047 | mutex_unlock(&sc->mutex); |
2067 | ath9k_ps_restore(sc); | 2048 | ath9k_ps_restore(sc); |
2068 | } | 2049 | } |