• Stanislaw Gruszka's avatar
    rt2800: set MAX_PSDU len according to remote STAs capabilities · 8f03a7c6
    Stanislaw Gruszka authored
    MAX_LEN_CFG_MAX_PSDU specify maximum transmitted by HW AMPDU length
    (0 - 8kB, 1 - 16kB, 2 - 32kB, 3 - 64kB). Set this option according to
    remote stations capabilities (based on HT ampdu_factor). However limit
    the value based our hardware TX capabilities as some chips can not send
    more than 16kB (factor 1). Limit for all chips is currently 32kB
    (factor 2), but perhaps for some chips this could be increased
    to 64kB by setting drv_data->max_psdu to 3.
    
    Since MAX_LEN_CFG_MAX_PSDU is global setting, on multi stations modes
    (AP, IBSS, mesh) we limit according to less capable remote STA. We can
    not set bigger value to speed up communication with some stations and
    do not break communication with slow stations.
    Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    8f03a7c6
rt2x00mac.c 23.7 KB