Skip to content
  • Felix Fietkau's avatar
    mac80211: improve the rate control API · 0d528d85
    Felix Fietkau authored
    
    
    Allow rate control modules to pass a rate selection table to mac80211
    and the driver. This allows drivers to fetch the most recent rate
    selection from the sta pointer for already buffered frames. This allows
    rate control to respond faster to sudden link changes and it is also a
    step towards adding minstrel_ht support to drivers like iwlwifi.
    
    When a driver sets IEEE80211_HW_SUPPORTS_RC_TABLE, mac80211 will not
    fill info->control.rates with rates from the rate table (to preserve
    explicit overrides by the rate control module). The driver then
    explicitly calls ieee80211_get_tx_rates to merge overrides from
    info->control.rates with defaults from the sta rate table.
    
    Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
    Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
    0d528d85