diff options
| author | John W. Linville <linville@tuxdriver.com> | 2012-03-16 13:45:25 -0400 | 
|---|---|---|
| committer | John W. Linville <linville@tuxdriver.com> | 2012-03-16 13:45:25 -0400 | 
| commit | 01a282980937f9ca55a3cb06b9c6ff1cc49ea396 (patch) | |
| tree | 07a043edc861e245a7a9764751af0898a1f1199a /drivers/net/wireless/ath/ath9k/rc.c | |
| parent | d5ddb4a59ed43b4c569b4efa8b508d50ef140cc6 (diff) | |
| parent | 377526578f2c343ea281a918b18ece1fca65005c (diff) | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem
Conflicts:
	drivers/net/wireless/ath/ath9k/hw.c
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/rc.c')
| -rw-r--r-- | drivers/net/wireless/ath/ath9k/rc.c | 12 | 
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/wireless/ath/ath9k/rc.c b/drivers/net/wireless/ath/ath9k/rc.c index 6407af22f7b9..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,  	 * If 802.11g protection is enabled, determine whether to use RTS/CTS or  	 * just CTS.  Note that this is only done for OFDM/HT unicast frames.  	 */ -	if ((sc->sc_flags & SC_OP_PROTECT_ENABLE) && +	if ((tx_info->control.vif && +	     tx_info->control.vif->bss_conf.use_cts_prot) &&  	    (rate_table->info[rix].phy == WLAN_RC_PHY_OFDM ||  	     WLAN_RC_PHY_HT(rate_table->info[rix].phy))) {  		rates[0].flags |= IEEE80211_TX_RC_USE_CTS_PROTECT; @@ -1298,12 +1299,13 @@ static u8 ath_rc_build_ht_caps(struct ath_softc *sc, struct ieee80211_sta *sta,  	return caps;  } -static bool ath_tx_aggr_check(struct ath_softc *sc, struct ath_node *an, +static bool ath_tx_aggr_check(struct ath_softc *sc, struct ieee80211_sta *sta,  			      u8 tidno)  { +	struct ath_node *an = (struct ath_node *)sta->drv_priv;  	struct ath_atx_tid *txtid; -	if (!(sc->sc_flags & SC_OP_TXAGGR)) +	if (!sta->ht_cap.ht_supported)  		return false;  	txtid = ATH_AN_2_TID(an, tidno); @@ -1374,13 +1376,11 @@ static void ath_tx_status(void *priv, struct ieee80211_supported_band *sband,  		if (ieee80211_is_data_qos(fc) &&  		    skb_get_queue_mapping(skb) != IEEE80211_AC_VO) {  			u8 *qc, tid; -			struct ath_node *an;  			qc = ieee80211_get_qos_ctl(hdr);  			tid = qc[0] & 0xf; -			an = (struct ath_node *)sta->drv_priv; -			if(ath_tx_aggr_check(sc, an, tid)) +			if(ath_tx_aggr_check(sc, sta, tid))  				ieee80211_start_tx_ba_session(sta, tid, 0);  		}  	}  | 
