Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit db7746f7 authored by Stanislaw Gruszka's avatar Stanislaw Gruszka
Browse files

iwlegacy: s/STATISTICS/STATS/

parent a6766ccd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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",
		       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,
			       "\tStatistics have been cleared\n");
	p += scnprintf(buf + p, bufsz - p, "\tOperational Frequency: %s\n",
		       (le32_to_cpu(il->_3945.stats.flag) &
			UCODE_STATISTICS_FREQUENCY_MSK)
			UCODE_STATS_FREQUENCY_MSK)
			? "2.4 GHz" : "5.2 GHz");
	p += scnprintf(buf + p, bufsz - p, "\tTGj Narrow Band: %s\n",
		       (le32_to_cpu(il->_3945.stats.flag) &
			UCODE_STATISTICS_NARROW_BAND_MSK)
			UCODE_STATS_NARROW_BAND_MSK)
			? "enabled" : "disabled");
	return p;
}
+3 −3
Original line number Diff line number Diff line
@@ -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 notifications (after received beacons) from the uCode.
	 */
	il->rx_handlers[REPLY_STATISTICS_CMD] = il3945_reply_stats;
	il->rx_handlers[STATISTICS_NOTIFICATION] = il3945_hw_rx_stats;
	il->rx_handlers[REPLY_STATS_CMD] = il3945_reply_stats;
	il->rx_handlers[STATS_NOTIFICATION] = il3945_hw_rx_stats;

	il_setup_rx_scan_handlers(il);
	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,
		 *   but apparently a few don't get set; catch them here. */
		reclaim = !(pkt->hdr.sequence & SEQ_RX_FRAME) &&
			pkt->hdr.cmd != STATISTICS_NOTIFICATION &&
			pkt->hdr.cmd != STATS_NOTIFICATION &&
			pkt->hdr.cmd != REPLY_TX;

		/* Based on type of command response or notification,
+1 −1
Original line number Diff line number Diff line
@@ -432,7 +432,7 @@ void il3945_reply_stats(struct il_priv *il,
	struct il_rx_pkt *pkt = rxb_addr(rxb);
	__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
		memset(&il->_3945.accum_stats, 0,
			sizeof(struct il3945_notif_stats));
+1 −1
Original line number Diff line number Diff line
@@ -853,7 +853,7 @@ void il4965_chain_noise_calibration(struct il_priv *il, void *stat_resp)

	stat_band24 = !!(((struct il_notif_stats *)
			 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_resp)->flag) >> 16;

+3 −3
Original line number Diff line number Diff line
@@ -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);

	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,
		"\tStatistics have been cleared\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");
	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");

	return p;
Loading