diff options
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index f26e9847bb2e..4f848493fece 100644 --- a/drivers/net/wireless/ath/ath9k/rc.c +++ b/drivers/net/wireless/ath/ath9k/rc.c | |||
@@ -748,7 +748,8 @@ static void ath_rc_rate_set_rtscts(struct ath_softc *sc, | |||
748 | * If 802.11g protection is enabled, determine whether to use RTS/CTS or | 748 | * If 802.11g protection is enabled, determine whether to use RTS/CTS or |
749 | * just CTS. Note that this is only done for OFDM/HT unicast frames. | 749 | * just CTS. Note that this is only done for OFDM/HT unicast frames. |
750 | */ | 750 | */ |
751 | if ((sc->sc_flags & SC_OP_PROTECT_ENABLE) && | 751 | if ((tx_info->control.vif && |
752 | tx_info->control.vif->bss_conf.use_cts_prot) && | ||
752 | (rate_table->info[rix].phy == WLAN_RC_PHY_OFDM || | 753 | (rate_table->info[rix].phy == WLAN_RC_PHY_OFDM || |
753 | WLAN_RC_PHY_HT(rate_table->info[rix].phy))) { | 754 | WLAN_RC_PHY_HT(rate_table->info[rix].phy))) { |
754 | rates[0].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; | 755 | rates[0].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; |