Increase queuesize to stop bufferoverflow

This commit is contained in:
Sven Zehl 2017-02-09 17:19:22 +01:00
parent a13a98b196
commit a36fda902c
2 changed files with 8 additions and 13 deletions

View File

@ -123,14 +123,15 @@ int ath_descdma_setup(struct ath_softc *sc, struct ath_descdma *dd,
/***********/
#define ATH_RXBUF 512
#ifdef CPTCFG_ATH9K_TID_SLEEPING
#define ATH_TXBUF 1024
#else
#define ATH_TXBUF 512
#endif
#define ATH_TXBUF_RESERVE 5
#ifdef CPTCFG_ATH9K_TID_SLEEPING
#define ATH_MAX_QDEPTH (ATH_TXBUF / 13 - ATH_TXBUF_RESERVE)
#else
#define ATH_MAX_QDEPTH (ATH_TXBUF / 4 - ATH_TXBUF_RESERVE)
#endif
#define ATH_TXMAXTRY 13
@ -666,11 +667,8 @@ void ath_ant_comb_scan(struct ath_softc *sc, struct ath_rx_status *rs);
#define ATH_REGCLASSIDS_MAX 10
#define ATH_CABQ_READY_TIME 80 /* % of beacon interval */
#ifdef CPTCFG_ATH9K_TID_SLEEPING
#define ATH_MAX_SW_RETRIES 50
#else
#define ATH_MAX_SW_RETRIES 30
#endif
#define ATH_CHAN_MAX 255

View File

@ -763,11 +763,7 @@ static u32 ath_lookup_rate(struct ath_softc *sc, struct ath_buf *bf,
modeidx++;
frmlen = sc->tx.max_aggr_framelen[q][modeidx][rates[i].idx];
#ifdef CPTCFG_ATH9K_TID_SLEEPING
max_4ms_framelen = min(max_4ms_framelen/4, frmlen);
#else
max_4ms_framelen = min(max_4ms_framelen, frmlen);
#endif
}
/*
@ -2360,6 +2356,7 @@ int ath_tx_start(struct ieee80211_hw *hw, struct sk_buff *skb,
!txq->stopped) {
ieee80211_stop_queue(sc->hw, q);
txq->stopped = true;
printk("TXQ STOPPED!!!! at ath_tx_start(): Maybe increase the buffer???? search for ATH_MAX_QDEPTH\n");
}
if (info->flags & IEEE80211_TX_CTL_PS_RESPONSE) {