mirror of
https://github.com/torvalds/linux.git
synced 2024-12-22 02:52:56 +00:00
iwlegacy: s/STATISTICS/STATS/
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
This commit is contained in:
parent
a6766ccdaf
commit
db7746f78c
@ -37,16 +37,16 @@ static int il3945_stats_flag(struct il_priv *il, char *buf, int bufsz)
|
|||||||
p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n",
|
p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n",
|
||||||
le32_to_cpu(il->_3945.stats.flag));
|
le32_to_cpu(il->_3945.stats.flag));
|
||||||
if (le32_to_cpu(il->_3945.stats.flag) &
|
if (le32_to_cpu(il->_3945.stats.flag) &
|
||||||
UCODE_STATISTICS_CLEAR_MSK)
|
UCODE_STATS_CLEAR_MSK)
|
||||||
p += scnprintf(buf + p, bufsz - p,
|
p += scnprintf(buf + p, bufsz - p,
|
||||||
"\tStatistics have been cleared\n");
|
"\tStatistics have been cleared\n");
|
||||||
p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
|
p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
|
||||||
(le32_to_cpu(il->_3945.stats.flag) &
|
(le32_to_cpu(il->_3945.stats.flag) &
|
||||||
UCODE_STATISTICS_FREQUENCY_MSK)
|
UCODE_STATS_FREQUENCY_MSK)
|
||||||
? "2.4 GHz" : "5.2 GHz");
|
? "2.4 GHz" : "5.2 GHz");
|
||||||
p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
|
p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
|
||||||
(le32_to_cpu(il->_3945.stats.flag) &
|
(le32_to_cpu(il->_3945.stats.flag) &
|
||||||
UCODE_STATISTICS_NARROW_BAND_MSK)
|
UCODE_STATS_NARROW_BAND_MSK)
|
||||||
? "enabled" : "disabled");
|
? "enabled" : "disabled");
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
|
@ -869,8 +869,8 @@ static void il3945_setup_rx_handlers(struct il_priv *il)
|
|||||||
* stats request from the host as well as for the periodic
|
* stats request from the host as well as for the periodic
|
||||||
* stats notifications (after received beacons) from the uCode.
|
* stats notifications (after received beacons) from the uCode.
|
||||||
*/
|
*/
|
||||||
il->rx_handlers[REPLY_STATISTICS_CMD] = il3945_reply_stats;
|
il->rx_handlers[REPLY_STATS_CMD] = il3945_reply_stats;
|
||||||
il->rx_handlers[STATISTICS_NOTIFICATION] = il3945_hw_rx_stats;
|
il->rx_handlers[STATS_NOTIFICATION] = il3945_hw_rx_stats;
|
||||||
|
|
||||||
il_setup_rx_scan_handlers(il);
|
il_setup_rx_scan_handlers(il);
|
||||||
il->rx_handlers[CARD_STATE_NOTIFICATION] = il3945_rx_card_state_notif;
|
il->rx_handlers[CARD_STATE_NOTIFICATION] = il3945_rx_card_state_notif;
|
||||||
@ -1253,7 +1253,7 @@ static void il3945_rx_handle(struct il_priv *il)
|
|||||||
* Ucode should set SEQ_RX_FRAME bit if ucode-originated,
|
* Ucode should set SEQ_RX_FRAME bit if ucode-originated,
|
||||||
* but apparently a few don't get set; catch them here. */
|
* but apparently a few don't get set; catch them here. */
|
||||||
reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME) &&
|
reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME) &&
|
||||||
pkt->hdr.cmd != STATISTICS_NOTIFICATION &&
|
pkt->hdr.cmd != STATS_NOTIFICATION &&
|
||||||
pkt->hdr.cmd != REPLY_TX;
|
pkt->hdr.cmd != REPLY_TX;
|
||||||
|
|
||||||
/* Based on type of command response or notification,
|
/* Based on type of command response or notification,
|
||||||
|
@ -432,7 +432,7 @@ void il3945_reply_stats(struct il_priv *il,
|
|||||||
struct il_rx_pkt *pkt = rxb_addr(rxb);
|
struct il_rx_pkt *pkt = rxb_addr(rxb);
|
||||||
__le32 *flag = (__le32 *)&pkt->u.raw;
|
__le32 *flag = (__le32 *)&pkt->u.raw;
|
||||||
|
|
||||||
if (le32_to_cpu(*flag) & UCODE_STATISTICS_CLEAR_MSK) {
|
if (le32_to_cpu(*flag) & UCODE_STATS_CLEAR_MSK) {
|
||||||
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
||||||
memset(&il->_3945.accum_stats, 0,
|
memset(&il->_3945.accum_stats, 0,
|
||||||
sizeof(struct il3945_notif_stats));
|
sizeof(struct il3945_notif_stats));
|
||||||
|
@ -853,7 +853,7 @@ void il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp)
|
|||||||
|
|
||||||
stat_band24 = !!(((struct il_notif_stats *)
|
stat_band24 = !!(((struct il_notif_stats *)
|
||||||
stat_resp)->flag &
|
stat_resp)->flag &
|
||||||
STATISTICS_REPLY_FLG_BAND_24G_MSK);
|
STATS_REPLY_FLG_BAND_24G_MSK);
|
||||||
stat_chnum = le32_to_cpu(((struct il_notif_stats *)
|
stat_chnum = le32_to_cpu(((struct il_notif_stats *)
|
||||||
stat_resp)->flag) >> 16;
|
stat_resp)->flag) >> 16;
|
||||||
|
|
||||||
|
@ -42,14 +42,14 @@ static int il4965_stats_flag(struct il_priv *il, char *buf, int bufsz)
|
|||||||
flag = le32_to_cpu(il->_4965.stats.flag);
|
flag = le32_to_cpu(il->_4965.stats.flag);
|
||||||
|
|
||||||
p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag);
|
p += scnprintf(buf + p, bufsz - p, "Statistics Flag(0x%X):\n", flag);
|
||||||
if (flag & UCODE_STATISTICS_CLEAR_MSK)
|
if (flag & UCODE_STATS_CLEAR_MSK)
|
||||||
p += scnprintf(buf + p, bufsz - p,
|
p += scnprintf(buf + p, bufsz - p,
|
||||||
"\tStatistics have been cleared\n");
|
"\tStatistics have been cleared\n");
|
||||||
p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
|
p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
|
||||||
(flag & UCODE_STATISTICS_FREQUENCY_MSK)
|
(flag & UCODE_STATS_FREQUENCY_MSK)
|
||||||
? "2.4 GHz" : "5.2 GHz");
|
? "2.4 GHz" : "5.2 GHz");
|
||||||
p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
|
p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
|
||||||
(flag & UCODE_STATISTICS_NARROW_BAND_MSK)
|
(flag & UCODE_STATS_NARROW_BAND_MSK)
|
||||||
? "enabled" : "disabled");
|
? "enabled" : "disabled");
|
||||||
|
|
||||||
return p;
|
return p;
|
||||||
|
@ -1367,9 +1367,9 @@ void il4965_rx_stats(struct il_priv *il,
|
|||||||
change = ((il->_4965.stats.general.common.temperature !=
|
change = ((il->_4965.stats.general.common.temperature !=
|
||||||
pkt->u.stats.general.common.temperature) ||
|
pkt->u.stats.general.common.temperature) ||
|
||||||
((il->_4965.stats.flag &
|
((il->_4965.stats.flag &
|
||||||
STATISTICS_REPLY_FLG_HT40_MODE_MSK) !=
|
STATS_REPLY_FLG_HT40_MODE_MSK) !=
|
||||||
(pkt->u.stats.flag &
|
(pkt->u.stats.flag &
|
||||||
STATISTICS_REPLY_FLG_HT40_MODE_MSK)));
|
STATS_REPLY_FLG_HT40_MODE_MSK)));
|
||||||
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
||||||
il4965_accumulative_stats(il, (__le32 *)&pkt->u.stats);
|
il4965_accumulative_stats(il, (__le32 *)&pkt->u.stats);
|
||||||
#endif
|
#endif
|
||||||
@ -1378,7 +1378,7 @@ void il4965_rx_stats(struct il_priv *il,
|
|||||||
memcpy(&il->_4965.stats, &pkt->u.stats,
|
memcpy(&il->_4965.stats, &pkt->u.stats,
|
||||||
sizeof(il->_4965.stats));
|
sizeof(il->_4965.stats));
|
||||||
|
|
||||||
set_bit(S_STATISTICS, &il->status);
|
set_bit(S_STATS, &il->status);
|
||||||
|
|
||||||
/* Reschedule the stats timer to occur in
|
/* Reschedule the stats timer to occur in
|
||||||
* REG_RECALIB_PERIOD seconds to ensure we get a
|
* REG_RECALIB_PERIOD seconds to ensure we get a
|
||||||
@ -1388,7 +1388,7 @@ void il4965_rx_stats(struct il_priv *il,
|
|||||||
msecs_to_jiffies(REG_RECALIB_PERIOD * 1000));
|
msecs_to_jiffies(REG_RECALIB_PERIOD * 1000));
|
||||||
|
|
||||||
if (unlikely(!test_bit(S_SCANNING, &il->status)) &&
|
if (unlikely(!test_bit(S_SCANNING, &il->status)) &&
|
||||||
(pkt->hdr.cmd == STATISTICS_NOTIFICATION)) {
|
(pkt->hdr.cmd == STATS_NOTIFICATION)) {
|
||||||
il4965_rx_calc_noise(il);
|
il4965_rx_calc_noise(il);
|
||||||
queue_work(il->workqueue, &il->run_time_calib_work);
|
queue_work(il->workqueue, &il->run_time_calib_work);
|
||||||
}
|
}
|
||||||
@ -1401,7 +1401,7 @@ void il4965_reply_stats(struct il_priv *il,
|
|||||||
{
|
{
|
||||||
struct il_rx_pkt *pkt = rxb_addr(rxb);
|
struct il_rx_pkt *pkt = rxb_addr(rxb);
|
||||||
|
|
||||||
if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATISTICS_CLEAR_MSK) {
|
if (le32_to_cpu(pkt->u.stats.flag) & UCODE_STATS_CLEAR_MSK) {
|
||||||
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
#ifdef CONFIG_IWLEGACY_DEBUGFS
|
||||||
memset(&il->_4965.accum_stats, 0,
|
memset(&il->_4965.accum_stats, 0,
|
||||||
sizeof(struct il_notif_stats));
|
sizeof(struct il_notif_stats));
|
||||||
@ -3801,7 +3801,7 @@ static void il4965_rx_reply_alive(struct il_priv *il,
|
|||||||
* This callback is provided in order to send a stats request.
|
* This callback is provided in order to send a stats request.
|
||||||
*
|
*
|
||||||
* This timer function is continually reset to execute within
|
* This timer function is continually reset to execute within
|
||||||
* REG_RECALIB_PERIOD seconds since the last STATISTICS_NOTIFICATION
|
* REG_RECALIB_PERIOD seconds since the last STATS_NOTIFICATION
|
||||||
* was received. We need to ensure we receive the stats in order
|
* was received. We need to ensure we receive the stats in order
|
||||||
* to update the temperature used for calibrating the TXPOWER.
|
* to update the temperature used for calibrating the TXPOWER.
|
||||||
*/
|
*/
|
||||||
@ -3936,8 +3936,8 @@ static void il4965_setup_rx_handlers(struct il_priv *il)
|
|||||||
* stats request from the host as well as for the periodic
|
* stats request from the host as well as for the periodic
|
||||||
* stats notifications (after received beacons) from the uCode.
|
* stats notifications (after received beacons) from the uCode.
|
||||||
*/
|
*/
|
||||||
il->rx_handlers[REPLY_STATISTICS_CMD] = il4965_reply_stats;
|
il->rx_handlers[REPLY_STATS_CMD] = il4965_reply_stats;
|
||||||
il->rx_handlers[STATISTICS_NOTIFICATION] = il4965_rx_stats;
|
il->rx_handlers[STATS_NOTIFICATION] = il4965_rx_stats;
|
||||||
|
|
||||||
il_setup_rx_scan_handlers(il);
|
il_setup_rx_scan_handlers(il);
|
||||||
|
|
||||||
@ -4023,7 +4023,7 @@ void il4965_rx_handle(struct il_priv *il)
|
|||||||
(pkt->hdr.cmd != REPLY_RX) &&
|
(pkt->hdr.cmd != REPLY_RX) &&
|
||||||
(pkt->hdr.cmd != REPLY_RX_MPDU_CMD) &&
|
(pkt->hdr.cmd != REPLY_RX_MPDU_CMD) &&
|
||||||
(pkt->hdr.cmd != REPLY_COMPRESSED_BA) &&
|
(pkt->hdr.cmd != REPLY_COMPRESSED_BA) &&
|
||||||
(pkt->hdr.cmd != STATISTICS_NOTIFICATION) &&
|
(pkt->hdr.cmd != STATS_NOTIFICATION) &&
|
||||||
(pkt->hdr.cmd != REPLY_TX);
|
(pkt->hdr.cmd != REPLY_TX);
|
||||||
|
|
||||||
/* Based on type of command response or notification,
|
/* Based on type of command response or notification,
|
||||||
|
@ -1675,7 +1675,7 @@ static int il4965_hw_get_temperature(struct il_priv *il)
|
|||||||
|
|
||||||
if (test_bit(S_TEMPERATURE, &il->status) &&
|
if (test_bit(S_TEMPERATURE, &il->status) &&
|
||||||
(il->_4965.stats.flag &
|
(il->_4965.stats.flag &
|
||||||
STATISTICS_REPLY_FLG_HT40_MODE_MSK)) {
|
STATS_REPLY_FLG_HT40_MODE_MSK)) {
|
||||||
D_TEMP("Running HT40 temperature calibration\n");
|
D_TEMP("Running HT40 temperature calibration\n");
|
||||||
R1 = (s32)le32_to_cpu(il->card_alive_init.therm_r1[1]);
|
R1 = (s32)le32_to_cpu(il->card_alive_init.therm_r1[1]);
|
||||||
R2 = (s32)le32_to_cpu(il->card_alive_init.therm_r2[1]);
|
R2 = (s32)le32_to_cpu(il->card_alive_init.therm_r2[1]);
|
||||||
@ -1737,7 +1737,7 @@ static int il4965_is_temp_calib_needed(struct il_priv *il)
|
|||||||
{
|
{
|
||||||
int temp_diff;
|
int temp_diff;
|
||||||
|
|
||||||
if (!test_bit(S_STATISTICS, &il->status)) {
|
if (!test_bit(S_STATS, &il->status)) {
|
||||||
D_TEMP("Temperature not updated -- no stats.\n");
|
D_TEMP("Temperature not updated -- no stats.\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -278,8 +278,8 @@ static inline int il4965_hw_valid_rtc_data_addr(u32 addr)
|
|||||||
* uCode provides all 4 values to the driver via the "initialize alive"
|
* uCode provides all 4 values to the driver via the "initialize alive"
|
||||||
* notification (see struct il4965_init_alive_resp). After the runtime uCode
|
* notification (see struct il4965_init_alive_resp). After the runtime uCode
|
||||||
* image loads, uCode updates the R4 value via stats notifications
|
* image loads, uCode updates the R4 value via stats notifications
|
||||||
* (see STATISTICS_NOTIFICATION), which occur after each received beacon
|
* (see STATS_NOTIFICATION), which occur after each received beacon
|
||||||
* when associated, or can be requested via REPLY_STATISTICS_CMD.
|
* when associated, or can be requested via REPLY_STATS_CMD.
|
||||||
*
|
*
|
||||||
* NOTE: uCode provides the R4 value as a 23-bit signed value. Driver
|
* NOTE: uCode provides the R4 value as a 23-bit signed value. Driver
|
||||||
* must sign-extend to 32 bits before applying formula below.
|
* must sign-extend to 32 bits before applying formula below.
|
||||||
|
@ -136,8 +136,8 @@ enum {
|
|||||||
REPLY_BT_CONFIG = 0x9b,
|
REPLY_BT_CONFIG = 0x9b,
|
||||||
|
|
||||||
/* Statistics */
|
/* Statistics */
|
||||||
REPLY_STATISTICS_CMD = 0x9c,
|
REPLY_STATS_CMD = 0x9c,
|
||||||
STATISTICS_NOTIFICATION = 0x9d,
|
STATS_NOTIFICATION = 0x9d,
|
||||||
|
|
||||||
/* RF-KILL commands and notifications */
|
/* RF-KILL commands and notifications */
|
||||||
CARD_STATE_NOTIFICATION = 0xa1,
|
CARD_STATE_NOTIFICATION = 0xa1,
|
||||||
@ -2626,7 +2626,7 @@ struct il_scanstart_notification {
|
|||||||
#define IL_PROBE_STATUS_FAIL_TTL BIT(1)
|
#define IL_PROBE_STATUS_FAIL_TTL BIT(1)
|
||||||
#define IL_PROBE_STATUS_FAIL_BT BIT(2)
|
#define IL_PROBE_STATUS_FAIL_BT BIT(2)
|
||||||
|
|
||||||
#define NUMBER_OF_STATISTICS 1 /* first __le32 is good CRC */
|
#define NUMBER_OF_STATS 1 /* first __le32 is good CRC */
|
||||||
/*
|
/*
|
||||||
* SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command)
|
* SCAN_RESULTS_NOTIFICATION = 0x83 (notification only, not a command)
|
||||||
*/
|
*/
|
||||||
@ -2637,7 +2637,7 @@ struct il_scanresults_notification {
|
|||||||
u8 num_probe_not_sent; /* not enough time to send */
|
u8 num_probe_not_sent; /* not enough time to send */
|
||||||
__le32 tsf_low;
|
__le32 tsf_low;
|
||||||
__le32 tsf_high;
|
__le32 tsf_high;
|
||||||
__le32 stats[NUMBER_OF_STATISTICS];
|
__le32 stats[NUMBER_OF_STATS];
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -2958,24 +2958,24 @@ struct stats_general {
|
|||||||
__le32 reserved3;
|
__le32 reserved3;
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
#define UCODE_STATISTICS_CLEAR_MSK (0x1 << 0)
|
#define UCODE_STATS_CLEAR_MSK (0x1 << 0)
|
||||||
#define UCODE_STATISTICS_FREQUENCY_MSK (0x1 << 1)
|
#define UCODE_STATS_FREQUENCY_MSK (0x1 << 1)
|
||||||
#define UCODE_STATISTICS_NARROW_BAND_MSK (0x1 << 2)
|
#define UCODE_STATS_NARROW_BAND_MSK (0x1 << 2)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* REPLY_STATISTICS_CMD = 0x9c,
|
* REPLY_STATS_CMD = 0x9c,
|
||||||
* all devices identical.
|
* all devices identical.
|
||||||
*
|
*
|
||||||
* This command triggers an immediate response containing uCode stats.
|
* This command triggers an immediate response containing uCode stats.
|
||||||
* The response is in the same format as STATISTICS_NOTIFICATION 0x9d, below.
|
* The response is in the same format as STATS_NOTIFICATION 0x9d, below.
|
||||||
*
|
*
|
||||||
* If the CLEAR_STATS configuration flag is set, uCode will clear its
|
* If the CLEAR_STATS configuration flag is set, uCode will clear its
|
||||||
* internal copy of the stats (counters) after issuing the response.
|
* internal copy of the stats (counters) after issuing the response.
|
||||||
* This flag does not affect STATISTICS_NOTIFICATIONs after beacons (see below).
|
* This flag does not affect STATS_NOTIFICATIONs after beacons (see below).
|
||||||
*
|
*
|
||||||
* If the DISABLE_NOTIF configuration flag is set, uCode will not issue
|
* If the DISABLE_NOTIF configuration flag is set, uCode will not issue
|
||||||
* STATISTICS_NOTIFICATIONs after received beacons (see below). This flag
|
* STATS_NOTIFICATIONs after received beacons (see below). This flag
|
||||||
* does not affect the response to the REPLY_STATISTICS_CMD 0x9c itself.
|
* does not affect the response to the REPLY_STATS_CMD 0x9c itself.
|
||||||
*/
|
*/
|
||||||
#define IL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */
|
#define IL_STATS_CONF_CLEAR_STATS cpu_to_le32(0x1) /* see above */
|
||||||
#define IL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */
|
#define IL_STATS_CONF_DISABLE_NOTIF cpu_to_le32(0x2)/* see above */
|
||||||
@ -2984,22 +2984,22 @@ struct il_stats_cmd {
|
|||||||
} __packed;
|
} __packed;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* STATISTICS_NOTIFICATION = 0x9d (notification only, not a command)
|
* STATS_NOTIFICATION = 0x9d (notification only, not a command)
|
||||||
*
|
*
|
||||||
* By default, uCode issues this notification after receiving a beacon
|
* By default, uCode issues this notification after receiving a beacon
|
||||||
* while associated. To disable this behavior, set DISABLE_NOTIF flag in the
|
* while associated. To disable this behavior, set DISABLE_NOTIF flag in the
|
||||||
* REPLY_STATISTICS_CMD 0x9c, above.
|
* REPLY_STATS_CMD 0x9c, above.
|
||||||
*
|
*
|
||||||
* Statistics counters continue to increment beacon after beacon, but are
|
* Statistics counters continue to increment beacon after beacon, but are
|
||||||
* cleared when changing channels or when driver issues REPLY_STATISTICS_CMD
|
* cleared when changing channels or when driver issues REPLY_STATS_CMD
|
||||||
* 0x9c with CLEAR_STATS bit set (see above).
|
* 0x9c with CLEAR_STATS bit set (see above).
|
||||||
*
|
*
|
||||||
* uCode also issues this notification during scans. uCode clears stats
|
* uCode also issues this notification during scans. uCode clears stats
|
||||||
* appropriately so that each notification contains stats for only the
|
* appropriately so that each notification contains stats for only the
|
||||||
* one channel that has just been scanned.
|
* one channel that has just been scanned.
|
||||||
*/
|
*/
|
||||||
#define STATISTICS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2)
|
#define STATS_REPLY_FLG_BAND_24G_MSK cpu_to_le32(0x2)
|
||||||
#define STATISTICS_REPLY_FLG_HT40_MODE_MSK cpu_to_le32(0x8)
|
#define STATS_REPLY_FLG_HT40_MODE_MSK cpu_to_le32(0x8)
|
||||||
|
|
||||||
struct il3945_notif_stats {
|
struct il3945_notif_stats {
|
||||||
__le32 flag;
|
__le32 flag;
|
||||||
@ -3076,7 +3076,7 @@ struct il_missed_beacon_notif {
|
|||||||
* time listening, not transmitting). Driver must adjust sensitivity so that
|
* time listening, not transmitting). Driver must adjust sensitivity so that
|
||||||
* the ratio of actual false alarms to actual Rx time falls within this range.
|
* the ratio of actual false alarms to actual Rx time falls within this range.
|
||||||
*
|
*
|
||||||
* While associated, uCode delivers STATISTICS_NOTIFICATIONs after each
|
* While associated, uCode delivers STATS_NOTIFICATIONs after each
|
||||||
* received beacon. These provide information to the driver to analyze the
|
* received beacon. These provide information to the driver to analyze the
|
||||||
* sensitivity. Don't analyze stats that come in from scanning, or any
|
* sensitivity. Don't analyze stats that come in from scanning, or any
|
||||||
* other non-associated-network source. Pertinent stats include:
|
* other non-associated-network source. Pertinent stats include:
|
||||||
@ -3255,7 +3255,7 @@ struct il_sensitivity_cmd {
|
|||||||
* This command sets the relative gains of 4965 device's 3 radio receiver chains.
|
* This command sets the relative gains of 4965 device's 3 radio receiver chains.
|
||||||
*
|
*
|
||||||
* After the first association, driver should accumulate signal and noise
|
* After the first association, driver should accumulate signal and noise
|
||||||
* stats from the STATISTICS_NOTIFICATIONs that follow the first 20
|
* stats from the STATS_NOTIFICATIONs that follow the first 20
|
||||||
* beacons from the associated network (don't collect stats that come
|
* beacons from the associated network (don't collect stats that come
|
||||||
* in from scanning, or any other non-network source).
|
* in from scanning, or any other non-network source).
|
||||||
*
|
*
|
||||||
|
@ -1179,11 +1179,11 @@ int il_send_stats_request(struct il_priv *il, u8 flags, bool clear)
|
|||||||
};
|
};
|
||||||
|
|
||||||
if (flags & CMD_ASYNC)
|
if (flags & CMD_ASYNC)
|
||||||
return il_send_cmd_pdu_async(il, REPLY_STATISTICS_CMD,
|
return il_send_cmd_pdu_async(il, REPLY_STATS_CMD,
|
||||||
sizeof(struct il_stats_cmd),
|
sizeof(struct il_stats_cmd),
|
||||||
&stats_cmd, NULL);
|
&stats_cmd, NULL);
|
||||||
else
|
else
|
||||||
return il_send_cmd_pdu(il, REPLY_STATISTICS_CMD,
|
return il_send_cmd_pdu(il, REPLY_STATS_CMD,
|
||||||
sizeof(struct il_stats_cmd),
|
sizeof(struct il_stats_cmd),
|
||||||
&stats_cmd);
|
&stats_cmd);
|
||||||
}
|
}
|
||||||
|
@ -544,7 +544,7 @@ void il_free_geos(struct il_priv *il);
|
|||||||
#define S_TEMPERATURE 8
|
#define S_TEMPERATURE 8
|
||||||
#define S_GEO_CONFIGURED 9
|
#define S_GEO_CONFIGURED 9
|
||||||
#define S_EXIT_PENDING 10
|
#define S_EXIT_PENDING 10
|
||||||
#define S_STATISTICS 12
|
#define S_STATS 12
|
||||||
#define S_SCANNING 13
|
#define S_SCANNING 13
|
||||||
#define S_SCAN_ABORTING 14
|
#define S_SCAN_ABORTING 14
|
||||||
#define S_SCAN_HW 15
|
#define S_SCAN_HW 15
|
||||||
|
@ -491,8 +491,8 @@ static ssize_t il_dbgfs_status_read(struct file *file,
|
|||||||
test_bit(S_GEO_CONFIGURED, &il->status));
|
test_bit(S_GEO_CONFIGURED, &il->status));
|
||||||
pos += scnprintf(buf + pos, bufsz - pos, "S_EXIT_PENDING:\t %d\n",
|
pos += scnprintf(buf + pos, bufsz - pos, "S_EXIT_PENDING:\t %d\n",
|
||||||
test_bit(S_EXIT_PENDING, &il->status));
|
test_bit(S_EXIT_PENDING, &il->status));
|
||||||
pos += scnprintf(buf + pos, bufsz - pos, "S_STATISTICS:\t %d\n",
|
pos += scnprintf(buf + pos, bufsz - pos, "S_STATS:\t %d\n",
|
||||||
test_bit(S_STATISTICS, &il->status));
|
test_bit(S_STATS, &il->status));
|
||||||
pos += scnprintf(buf + pos, bufsz - pos, "S_SCANNING:\t %d\n",
|
pos += scnprintf(buf + pos, bufsz - pos, "S_SCANNING:\t %d\n",
|
||||||
test_bit(S_SCANNING, &il->status));
|
test_bit(S_SCANNING, &il->status));
|
||||||
pos += scnprintf(buf + pos, bufsz - pos, "S_SCAN_ABORTING:\t %d\n",
|
pos += scnprintf(buf + pos, bufsz - pos, "S_SCAN_ABORTING:\t %d\n",
|
||||||
|
@ -70,8 +70,8 @@ const char *il_get_cmd_string(u8 cmd)
|
|||||||
IL_CMD(REPLY_TX_BEACON);
|
IL_CMD(REPLY_TX_BEACON);
|
||||||
IL_CMD(REPLY_TX_PWR_TBL_CMD);
|
IL_CMD(REPLY_TX_PWR_TBL_CMD);
|
||||||
IL_CMD(REPLY_BT_CONFIG);
|
IL_CMD(REPLY_BT_CONFIG);
|
||||||
IL_CMD(REPLY_STATISTICS_CMD);
|
IL_CMD(REPLY_STATS_CMD);
|
||||||
IL_CMD(STATISTICS_NOTIFICATION);
|
IL_CMD(STATS_NOTIFICATION);
|
||||||
IL_CMD(CARD_STATE_NOTIFICATION);
|
IL_CMD(CARD_STATE_NOTIFICATION);
|
||||||
IL_CMD(MISSED_BEACONS_NOTIFICATION);
|
IL_CMD(MISSED_BEACONS_NOTIFICATION);
|
||||||
IL_CMD(REPLY_CT_KILL_CONFIG_CMD);
|
IL_CMD(REPLY_CT_KILL_CONFIG_CMD);
|
||||||
|
Loading…
Reference in New Issue
Block a user