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

Commit beac5498 authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by Reinette Chatre
Browse files

iwlwifi: move plcp check to separated function



Move the plcp error checking into stand alone function and pointed by ops
to accommodate devices not needing this recovery.

Signed-off-by: default avatarTrieu 'Andrew' Nguyen <trieux.t.nguyen@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
parent b74e31a9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -213,6 +213,7 @@ static struct iwl_lib_ops iwl1000_lib = {
	 },
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_tx_stall = iwl_bg_monitor_recover,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static const struct iwl_ops iwl1000_ops = {
+1 −0
Original line number Diff line number Diff line
@@ -2221,6 +2221,7 @@ static struct iwl_lib_ops iwl4965_lib = {
		.set_ct_kill = iwl4965_set_ct_threshold,
	},
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static const struct iwl_ops iwl4965_ops = {
+2 −0
Original line number Diff line number Diff line
@@ -1500,6 +1500,7 @@ struct iwl_lib_ops iwl5000_lib = {
	 },
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_tx_stall = iwl_bg_monitor_recover,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static struct iwl_lib_ops iwl5150_lib = {
@@ -1555,6 +1556,7 @@ static struct iwl_lib_ops iwl5150_lib = {
	 },
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_tx_stall = iwl_bg_monitor_recover,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static const struct iwl_ops iwl5000_ops = {
+2 −0
Original line number Diff line number Diff line
@@ -279,6 +279,7 @@ static struct iwl_lib_ops iwl6000_lib = {
	 },
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_tx_stall = iwl_bg_monitor_recover,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static const struct iwl_ops iwl6000_ops = {
@@ -345,6 +346,7 @@ static struct iwl_lib_ops iwl6050_lib = {
	 },
	.add_bcast_station = iwl_add_bcast_station,
	.recover_from_tx_stall = iwl_bg_monitor_recover,
	.recover_from_statistics = iwl_recover_from_statistics,
};

static const struct iwl_ops iwl6050_ops = {
+5 −0
Original line number Diff line number Diff line
@@ -193,6 +193,9 @@ struct iwl_lib_ops {
	void (*add_bcast_station)(struct iwl_priv *priv);
	/* recover from tx queue stall */
	void (*recover_from_tx_stall)(unsigned long data);
	/* recover from errors showed in statistics */
	void (*recover_from_statistics)(struct iwl_priv *priv,
					struct iwl_rx_packet *pkt);
};

struct iwl_led_ops {
@@ -434,6 +437,8 @@ void iwl_rx_missed_beacon_notif(struct iwl_priv *priv,
			       struct iwl_rx_mem_buffer *rxb);
void iwl_rx_spectrum_measure_notif(struct iwl_priv *priv,
					  struct iwl_rx_mem_buffer *rxb);
void iwl_recover_from_statistics(struct iwl_priv *priv,
				 struct iwl_rx_packet *pkt);
void iwl_rx_statistics(struct iwl_priv *priv,
			      struct iwl_rx_mem_buffer *rxb);
void iwl_reply_statistics(struct iwl_priv *priv,
Loading