mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Bring over a fix from ath9k - zero some of the TX descriptors for Kite/AR9285.
Kite doesn't have per-chain control (it has one chain) or antenna control; so don't try to set those descriptor entries.
This commit is contained in:
parent
2b020858f9
commit
6468b2baa5
1 changed files with 14 additions and 0 deletions
|
|
@ -230,6 +230,13 @@ ar5416SetupTxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
|||
ads->ds_ctl2 |= SM(rtsctsDuration, AR_BurstDur);
|
||||
ads->ds_ctl7 |= (rtsctsRate << AR_RTSCTSRate_S);
|
||||
}
|
||||
|
||||
if (AR_SREV_KITE(ah)) {
|
||||
ads->ds_ctl8 = 0;
|
||||
ads->ds_ctl9 = 0;
|
||||
ads->ds_ctl10 = 0;
|
||||
ads->ds_ctl11 = 0;
|
||||
}
|
||||
return AH_TRUE;
|
||||
#undef RTSCTS
|
||||
}
|
||||
|
|
@ -417,6 +424,13 @@ ar5416SetupFirstTxDesc(struct ath_hal *ah, struct ath_desc *ds,
|
|||
| (flags & HAL_TXDESC_RTSENA ? AR_RTSEnable : 0);
|
||||
ads->ds_ctl2 |= SM(rtsctsDuration, AR_BurstDur);
|
||||
}
|
||||
|
||||
if (AR_SREV_KITE(ah)) {
|
||||
ads->ds_ctl8 = 0;
|
||||
ads->ds_ctl9 = 0;
|
||||
ads->ds_ctl10 = 0;
|
||||
ads->ds_ctl11 = 0;
|
||||
}
|
||||
|
||||
return AH_TRUE;
|
||||
#undef RTSCTS
|
||||
|
|
|
|||
Loading…
Reference in a new issue