diff options
author | Martin Kaiser <martin@kaiser.cx> | 2022-08-08 22:14:05 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-08-16 15:18:29 +0200 |
commit | 1bace12735a4c8d8d62b1cc7410cafeaccdf80d0 (patch) | |
tree | b32316c26f1dfabdd4df3479f97edd3aa6d68cf2 /drivers/staging/r8188eu/include/rtl8188e_hal.h | |
parent | 3ce23a49d1b64e0d207114e2feaad0292c25c679 (diff) | |
download | linux-stable-1bace12735a4c8d8d62b1cc7410cafeaccdf80d0.tar.gz linux-stable-1bace12735a4c8d8d62b1cc7410cafeaccdf80d0.tar.bz2 linux-stable-1bace12735a4c8d8d62b1cc7410cafeaccdf80d0.zip |
staging: r8188eu: the high prio queue is always selected
The high priority queue is always selected, regardless of the number of
out endpoints.
Therefore, haldata->OutEpQueueSel & TX_SELE_HQ is always true. We can
remove the check and use a define instead of the numHQ variable.
This check was the last user of TX_SELE_HQ. Rename haldata->OutEpQueueSel
to haldata->out_ep_extra_queues and store only the queues that are selected
in addition to the high priority queue.
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220808201405.68966-6-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/r8188eu/include/rtl8188e_hal.h')
-rw-r--r-- | drivers/staging/r8188eu/include/rtl8188e_hal.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/r8188eu/include/rtl8188e_hal.h b/drivers/staging/r8188eu/include/rtl8188e_hal.h index ff0a4ce19dde..64cdc2fad20e 100644 --- a/drivers/staging/r8188eu/include/rtl8188e_hal.h +++ b/drivers/staging/r8188eu/include/rtl8188e_hal.h @@ -36,7 +36,6 @@ 0x2400 /* 9k for 88E nornal chip , MaxRxBuff=10k-max(TxReportSize(64*8), * WOLPattern(16*24)) */ -#define TX_SELE_HQ BIT(0) /* High Queue */ #define TX_SELE_LQ BIT(1) /* Low Queue */ #define TX_SELE_NQ BIT(2) /* Normal Queue */ @@ -149,7 +148,7 @@ struct hal_data_8188e { u8 AntDivCfg; u8 TRxAntDivType; - u8 OutEpQueueSel; + u8 out_ep_extra_queues; struct P2P_PS_Offload_t p2p_ps_offload; |