qcacmn: Enable notify-frame feature in FW

Enable bits in WMI_INIT command to let the FW know about host's
capability to support notify frame feature. If the feature is enabled,
host can mark certain TX frames as "notify frames" for hardware and they
need not be sent to FW. FW depends on this capability exchange to decide
whether to install HW rules for frames to be sent to HW.

Change-Id: I7158e79ae0fbdc73a2f4096ae1577337e8291246
CRs-Fixed: 3209399
Tento commit je obsažen v:
Mohit Khanna
2022-05-30 21:46:13 -07:00
odevzdal Madan Koyyalamudi
rodič a9461beb20
revize 0c558b779b
8 změnil soubory, kde provedl 37 přidání a 4 odebrání

Zobrazit soubor

@@ -1711,6 +1711,13 @@
CFG_DP_MPDU_RETRY_THRESHOLD, \
CFG_VALUE_OR_DEFAULT, "DP mpdu retry threshold 2")
#ifdef QCA_SUPPORT_TX_MIN_RATES_FOR_SPECIAL_FRAMES
/* Macro enabling support marking of notify frames by host */
#define DP_MARK_NOTIFY_FRAME_SUPPORT 1
#else
#define DP_MARK_NOTIFY_FRAME_SUPPORT 0
#endif /* QCA_SUPPORT_TX_MIN_RATES_FOR_SPECIAL_FRAMES */
#define CFG_DP \
CFG(CFG_DP_HTT_PACKET_TYPE) \
CFG(CFG_DP_INT_BATCH_THRESHOLD_OTHER) \

Zobrazit soubor

@@ -2927,6 +2927,8 @@ wlan_cfg_get_dp_caps(struct wlan_cfg_dp_soc_ctxt *cfg,
return cfg->rawmode_enabled;
case CDP_CFG_DP_PEER_FLOW_CTRL:
return cfg->peer_flow_ctrl_enabled;
case CDP_CFG_DP_MARK_NOTIFY_FRAME_SUPPORT:
return cfg->notify_frame_support;
default:
return false;
}

Zobrazit soubor

@@ -254,7 +254,9 @@ struct wlan_srng_cfg {
* @txmon_hw_support: TxMON HW support
* @num_rxdma_status_rings_per_pdev: Num RXDMA status rings
* @mpdu_retry_threshold_1: MPDU retry threshold 1 to increment tx bad count
* @mpdu_retry_threshold_1: MPDU retry threshold 2 to increment tx bad count
* @mpdu_retry_threshold_2: MPDU retry threshold 2 to increment tx bad count
* napi_scale_factor: scaling factor to be used for napi polls
* @notify_frame_support: flag indicating capability to mark notify frames
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -428,6 +430,7 @@ struct wlan_cfg_dp_soc_ctxt {
uint8_t mpdu_retry_threshold_1;
uint8_t mpdu_retry_threshold_2;
uint8_t napi_scale_factor;
uint8_t notify_frame_support;
};
/**