rtlwifi: Add explicit values to hw_variables enum

The entries in this enum may be referenced in debug output. Adding explicit
values simplifies the lookup.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
Larry Finger 2016-09-24 11:57:19 -05:00 committed by Kalle Valo
parent 1cc49a5b54
commit 8334ffdc82

View File

@ -394,110 +394,110 @@ enum io_type {
};
enum hw_variables {
HW_VAR_ETHER_ADDR,
HW_VAR_MULTICAST_REG,
HW_VAR_BASIC_RATE,
HW_VAR_BSSID,
HW_VAR_MEDIA_STATUS,
HW_VAR_SECURITY_CONF,
HW_VAR_BEACON_INTERVAL,
HW_VAR_ATIM_WINDOW,
HW_VAR_LISTEN_INTERVAL,
HW_VAR_CS_COUNTER,
HW_VAR_DEFAULTKEY0,
HW_VAR_DEFAULTKEY1,
HW_VAR_DEFAULTKEY2,
HW_VAR_DEFAULTKEY3,
HW_VAR_SIFS,
HW_VAR_R2T_SIFS,
HW_VAR_DIFS,
HW_VAR_EIFS,
HW_VAR_SLOT_TIME,
HW_VAR_ACK_PREAMBLE,
HW_VAR_CW_CONFIG,
HW_VAR_CW_VALUES,
HW_VAR_RATE_FALLBACK_CONTROL,
HW_VAR_CONTENTION_WINDOW,
HW_VAR_RETRY_COUNT,
HW_VAR_TR_SWITCH,
HW_VAR_COMMAND,
HW_VAR_WPA_CONFIG,
HW_VAR_AMPDU_MIN_SPACE,
HW_VAR_SHORTGI_DENSITY,
HW_VAR_AMPDU_FACTOR,
HW_VAR_MCS_RATE_AVAILABLE,
HW_VAR_AC_PARAM,
HW_VAR_ACM_CTRL,
HW_VAR_DIS_Req_Qsize,
HW_VAR_CCX_CHNL_LOAD,
HW_VAR_CCX_NOISE_HISTOGRAM,
HW_VAR_CCX_CLM_NHM,
HW_VAR_TxOPLimit,
HW_VAR_TURBO_MODE,
HW_VAR_RF_STATE,
HW_VAR_RF_OFF_BY_HW,
HW_VAR_BUS_SPEED,
HW_VAR_SET_DEV_POWER,
HW_VAR_ETHER_ADDR = 0x0,
HW_VAR_MULTICAST_REG = 0x1,
HW_VAR_BASIC_RATE = 0x2,
HW_VAR_BSSID = 0x3,
HW_VAR_MEDIA_STATUS= 0x4,
HW_VAR_SECURITY_CONF= 0x5,
HW_VAR_BEACON_INTERVAL = 0x6,
HW_VAR_ATIM_WINDOW = 0x7,
HW_VAR_LISTEN_INTERVAL = 0x8,
HW_VAR_CS_COUNTER = 0x9,
HW_VAR_DEFAULTKEY0 = 0xa,
HW_VAR_DEFAULTKEY1 = 0xb,
HW_VAR_DEFAULTKEY2 = 0xc,
HW_VAR_DEFAULTKEY3 = 0xd,
HW_VAR_SIFS = 0xe,
HW_VAR_R2T_SIFS = 0xf,
HW_VAR_DIFS = 0x10,
HW_VAR_EIFS = 0x11,
HW_VAR_SLOT_TIME = 0x12,
HW_VAR_ACK_PREAMBLE = 0x13,
HW_VAR_CW_CONFIG = 0x14,
HW_VAR_CW_VALUES = 0x15,
HW_VAR_RATE_FALLBACK_CONTROL= 0x16,
HW_VAR_CONTENTION_WINDOW = 0x17,
HW_VAR_RETRY_COUNT = 0x18,
HW_VAR_TR_SWITCH = 0x19,
HW_VAR_COMMAND = 0x1a,
HW_VAR_WPA_CONFIG = 0x1b,
HW_VAR_AMPDU_MIN_SPACE = 0x1c,
HW_VAR_SHORTGI_DENSITY = 0x1d,
HW_VAR_AMPDU_FACTOR = 0x1e,
HW_VAR_MCS_RATE_AVAILABLE = 0x1f,
HW_VAR_AC_PARAM = 0x20,
HW_VAR_ACM_CTRL = 0x21,
HW_VAR_DIS_Req_Qsize = 0x22,
HW_VAR_CCX_CHNL_LOAD = 0x23,
HW_VAR_CCX_NOISE_HISTOGRAM = 0x24,
HW_VAR_CCX_CLM_NHM = 0x25,
HW_VAR_TxOPLimit = 0x26,
HW_VAR_TURBO_MODE = 0x27,
HW_VAR_RF_STATE = 0x28,
HW_VAR_RF_OFF_BY_HW = 0x29,
HW_VAR_BUS_SPEED = 0x2a,
HW_VAR_SET_DEV_POWER = 0x2b,
HW_VAR_RCR,
HW_VAR_RATR_0,
HW_VAR_RRSR,
HW_VAR_CPU_RST,
HW_VAR_CHECK_BSSID,
HW_VAR_LBK_MODE,
HW_VAR_AES_11N_FIX,
HW_VAR_USB_RX_AGGR,
HW_VAR_USER_CONTROL_TURBO_MODE,
HW_VAR_RETRY_LIMIT,
HW_VAR_INIT_TX_RATE,
HW_VAR_TX_RATE_REG,
HW_VAR_EFUSE_USAGE,
HW_VAR_EFUSE_BYTES,
HW_VAR_AUTOLOAD_STATUS,
HW_VAR_RF_2R_DISABLE,
HW_VAR_SET_RPWM,
HW_VAR_H2C_FW_PWRMODE,
HW_VAR_H2C_FW_JOINBSSRPT,
HW_VAR_H2C_FW_MEDIASTATUSRPT,
HW_VAR_H2C_FW_P2P_PS_OFFLOAD,
HW_VAR_FW_PSMODE_STATUS,
HW_VAR_INIT_RTS_RATE,
HW_VAR_RESUME_CLK_ON,
HW_VAR_FW_LPS_ACTION,
HW_VAR_1X1_RECV_COMBINE,
HW_VAR_STOP_SEND_BEACON,
HW_VAR_TSF_TIMER,
HW_VAR_IO_CMD,
HW_VAR_RCR = 0x2c,
HW_VAR_RATR_0 = 0x2d,
HW_VAR_RRSR = 0x2e,
HW_VAR_CPU_RST = 0x2f,
HW_VAR_CHECK_BSSID = 0x30,
HW_VAR_LBK_MODE = 0x31,
HW_VAR_AES_11N_FIX = 0x32,
HW_VAR_USB_RX_AGGR = 0x33,
HW_VAR_USER_CONTROL_TURBO_MODE = 0x34,
HW_VAR_RETRY_LIMIT = 0x35,
HW_VAR_INIT_TX_RATE = 0x36,
HW_VAR_TX_RATE_REG = 0x37,
HW_VAR_EFUSE_USAGE = 0x38,
HW_VAR_EFUSE_BYTES = 0x39,
HW_VAR_AUTOLOAD_STATUS = 0x3a,
HW_VAR_RF_2R_DISABLE = 0x3b,
HW_VAR_SET_RPWM = 0x3c,
HW_VAR_H2C_FW_PWRMODE = 0x3d,
HW_VAR_H2C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AR_SWITCH_EPHY_WoWLAN = 0x58,
HW_VAR_INT_MIGRATION = 0x59,
HW_VAR_INT_AC = 0x5a,
HW_VAR_RF_TIMING = 0x5b,
HAL_DEF_WOWLAN,
HW_VAR_MRC,
HW_VAR_KEEP_ALIVE,
HW_VAR_NAV_UPPER,
HAL_DEF_WOWLAN = 0x5c,
HW_VAR_MRC = 0x5d,
HW_VAR_KEEP_ALIVE = 0x5e,
HW_VAR_NAV_UPPER = 0x5f,
HW_VAR_MGT_FILTER,
HW_VAR_CTRL_FILTER,
HW_VAR_DATA_FILTER,
HW_VAR_MGT_FILTER = 0x60,
HW_VAR_CTRL_FILTER = 0x61,
HW_VAR_DATA_FILTER = 0x62,
};
enum rt_media_status {