Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> writes: > ieee80211_tx_queue_params.aifs is not supposed to be written directly > to the REG_EDCA_*_PARAM registers. Instead process it like the vendor > drivers do. It's kinda hacky but it works. > > This change boosts the download speed and makes it more stable. > > Tested with RTL8188FU but all the other supported chips should also > benefit. > > Fixes: 26f1fad29ad9 ("New driver: rtl8xxxu (mac80211)") > Signed-off-by: Bitterblue Smith <rtl8821cerfe2@xxxxxxxxx> [...] > +static void rtl8xxxu_set_aifs(struct rtl8xxxu_priv *priv, u8 slot_time) > +{ > + u32 reg_edca_param[IEEE80211_NUM_ACS] = { > + [IEEE80211_AC_VO] = REG_EDCA_VO_PARAM, > + [IEEE80211_AC_VI] = REG_EDCA_VI_PARAM, > + [IEEE80211_AC_BE] = REG_EDCA_BE_PARAM, > + [IEEE80211_AC_BK] = REG_EDCA_BK_PARAM, > + }; static const? -- https://patchwork.kernel.org/project/linux-wireless/list/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches