Răsfoiți Sursa

qca-wifi: Add command to configure print ratelimiting

Add command to configure number of prints and time
for print ratelimiting

CRs-Fixed: 2786841
Change-Id: I5e7151052fcaa685ed480501aceff0f58028807b
Vivek 4 ani în urmă
părinte
comite
4916e3d2c4
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      tools/linux/cfg80211_ven_cmd.h

+ 2 - 0
tools/linux/cfg80211_ven_cmd.h

@@ -792,6 +792,7 @@ enum {
 #endif
 	IEEE80211_PARAM_RTS                        = 728,   /* Vdev specific minimum packet size setting for which RTS/CTS is used */
 	IEEE80211_PARAM_SM_GAP_PS_ENABLE           = 729,   /* Enable SMPS-GAP power saving */
+	IEEE80211_PARAM_WLAN_PRINT_RL              = 730,   /* Configure threshold for ratelimiting the prints */
 };
 
 enum {
@@ -2070,6 +2071,7 @@ struct vendor_commands vap_vendor_cmds[] = {
 #if WLAN_SER_DEBUG
 	{"ser_history",         IEEE80211_PARAM_WLAN_SER_HISTORY, SET_PARAM, 2},
 #endif
+	{"print_rl",            IEEE80211_PARAM_WLAN_PRINT_RL, SET_PARAM, 2},
 	{"da_wds_war",          IEEE80211_PARAM_DA_WAR_ENABLE, SET_PARAM, 1},
 	{"g_da_wds_war",        IEEE80211_PARAM_DA_WAR_ENABLE, GET_PARAM, 0},
 	{"advertise_sta_maxcap",    IEEE80211_PARAM_STA_MAX_CH_CAP, SET_PARAM, 1},