mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
In WLAN, priority among various access categories of traffic is always set by the AP using WMM parameters and this may not always follow the standard 802.1d priority. In this change, priority is adjusted based on the AP WMM params received as part of the Assoc Response and the same is later used to map the priority of all incoming traffic. In a specific scenario where EDCA parameters are configured to be same for all ACs, use the default FW priority definition to avoid queuing packets of all ACs to the same priority queue. This change fixes the following 802.11 certification tests: * 11n - 5.2.31 ACM Bit Conformance test * 11n - 5.2.32 AC Parameter Modification test * 11ac - 5.2.33 TXOP Limit test Signed-off-by: Saravanan Shanmugham <saravanan.shanmugham@cypress.com> Signed-off-by: Justin Li <justin.li@cypress.com> Signed-off-by: Madhan Mohan R <madhanmohan.r@cypress.com> Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1588661487-21884-2-git-send-email-chi-hsien.lin@cypress.com
48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
// SPDX-License-Identifier: ISC
|
|
/*
|
|
* Copyright (c) 2012 Broadcom Corporation
|
|
*/
|
|
|
|
#ifndef FWSIGNAL_H_
|
|
#define FWSIGNAL_H_
|
|
|
|
/**
|
|
* enum brcmf_fws_fifo - fifo indices used by dongle firmware.
|
|
*
|
|
* @BRCMF_FWS_FIFO_FIRST: first fifo, ie. background.
|
|
* @BRCMF_FWS_FIFO_AC_BK: fifo for background traffic.
|
|
* @BRCMF_FWS_FIFO_AC_BE: fifo for best-effort traffic.
|
|
* @BRCMF_FWS_FIFO_AC_VI: fifo for video traffic.
|
|
* @BRCMF_FWS_FIFO_AC_VO: fifo for voice traffic.
|
|
* @BRCMF_FWS_FIFO_BCMC: fifo for broadcast/multicast (AP only).
|
|
* @BRCMF_FWS_FIFO_ATIM: fifo for ATIM (AP only).
|
|
* @BRCMF_FWS_FIFO_COUNT: number of fifos.
|
|
*/
|
|
enum brcmf_fws_fifo {
|
|
BRCMF_FWS_FIFO_FIRST,
|
|
BRCMF_FWS_FIFO_AC_BK = BRCMF_FWS_FIFO_FIRST,
|
|
BRCMF_FWS_FIFO_AC_BE,
|
|
BRCMF_FWS_FIFO_AC_VI,
|
|
BRCMF_FWS_FIFO_AC_VO,
|
|
BRCMF_FWS_FIFO_BCMC,
|
|
BRCMF_FWS_FIFO_ATIM,
|
|
BRCMF_FWS_FIFO_COUNT
|
|
};
|
|
|
|
struct brcmf_fws_info *brcmf_fws_attach(struct brcmf_pub *drvr);
|
|
void brcmf_fws_detach(struct brcmf_fws_info *fws);
|
|
void brcmf_fws_debugfs_create(struct brcmf_pub *drvr);
|
|
bool brcmf_fws_queue_skbs(struct brcmf_fws_info *fws);
|
|
bool brcmf_fws_fc_active(struct brcmf_fws_info *fws);
|
|
void brcmf_fws_hdrpull(struct brcmf_if *ifp, s16 siglen, struct sk_buff *skb);
|
|
int brcmf_fws_process_skb(struct brcmf_if *ifp, struct sk_buff *skb);
|
|
|
|
void brcmf_fws_reset_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_add_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_del_interface(struct brcmf_if *ifp);
|
|
void brcmf_fws_bustxfail(struct brcmf_fws_info *fws, struct sk_buff *skb);
|
|
void brcmf_fws_bus_blocked(struct brcmf_pub *drvr, bool flow_blocked);
|
|
void brcmf_fws_rxreorder(struct brcmf_if *ifp, struct sk_buff *skb);
|
|
|
|
#endif /* FWSIGNAL_H_ */
|