aboutsummaryrefslogtreecommitdiffstats
path: root/package/lqtapi/src/tapi/Makefile
blob: 2992d4b3a31685bc5d4dd4adc1c898e878d8a4ec (plain)
1
2
3
4
5
6
7
tapi-objs := tapi-core.o tapi-port.o tapi-input.o
tapi-objs += tapi-control.o
tapi-objs += tapi-stream.o
tapi-objs += tapi-sysfs-port.o

obj-m += tapi.o
800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
Index: madwifi-ng-r2568-20070710/ath/if_ath.c
===================================================================
--- madwifi-ng-r2568-20070710.orig/ath/if_ath.c	2007-08-01 11:07:47.882943145 +0200
+++ madwifi-ng-r2568-20070710/ath/if_ath.c	2007-08-01 11:41:11.781138794 +0200
@@ -203,6 +203,7 @@
 static void ath_flushrecv(struct ath_softc *);
 static void ath_chan_change(struct ath_softc *, struct ieee80211_channel *);
 static void ath_calibrate(unsigned long);
+static void ath_mib_enable(unsigned long);
 static int ath_newstate(struct ieee80211vap *, enum ieee80211_state, int);
 
 static void ath_scan_start(struct ieee80211com *);
@@ -660,6 +661,10 @@
 	sc->sc_cal_ch.function = ath_calibrate;
 	sc->sc_cal_ch.data = (unsigned long) dev;
 
+	init_timer(&sc->sc_mib_enable);
+	sc->sc_mib_enable.function = ath_mib_enable;
+	sc->sc_mib_enable.data = (unsigned long) sc;
+
 #ifdef ATH_SUPERG_DYNTURBO
 	init_timer(&sc->sc_dturbo_switch_mode);
 	sc->sc_dturbo_switch_mode.function = ath_turbo_switch_mode;
@@ -1751,16 +1756,19 @@
 		if (status & HAL_INT_MIB) {
 			sc->sc_stats.ast_mib++;
 			/*
-			 * Disable interrupts until we service the MIB
-			 * interrupt; otherwise it will continue to fire.
-			 */
-			ath_hal_intrset(ah, 0);
-			/*
-			 * Let the HAL handle the event.  We assume it will
-			 * clear whatever condition caused the interrupt.
+			 * When the card receives lots of PHY errors, the MIB
+			 * interrupt will fire at a very rapid rate. We will use
+			 * a timer to enforce at least 1 jiffy delay between
+			 * MIB interrupts. This should be unproblematic, since
+			 * the hardware will continue to update the counters in the
+			 * mean time.
 			 */
-			ath_hal_mibevent(ah, &sc->sc_halstats);
+			sc->sc_imask &= ~HAL_INT_MIB;
 			ath_hal_intrset(ah, sc->sc_imask);
+			mod_timer(&sc->sc_mib_enable, jiffies + 1);
+
+			/* Let the HAL handle the event. */
+			ath_hal_mibevent(ah, &sc->sc_halstats);
 		}
 	}
 	if (needmark)
@@ -8029,6 +8037,19 @@
 }
 
 /*
+ * Enable MIB interrupts again, after the ISR disabled them
+ * to slow down the rate of PHY error reporting.
+ */
+static void
+ath_mib_enable(unsigned long arg)
+{
+	struct ath_softc *sc = (struct ath_softc *) arg;
+
+	sc->sc_imask |= HAL_INT_MIB;
+	ath_hal_intrset(sc->sc_ah, sc->sc_imask);
+}
+
+/*
  * Periodically recalibrate the PHY to account
  * for temperature/environment changes.
  */
Index: madwifi-ng-r2568-20070710/ath/if_athvar.h
===================================================================
--- madwifi-ng-r2568-20070710.orig/ath/if_athvar.h	2007-08-01 11:33:50.800008711 +0200
+++ madwifi-ng-r2568-20070710/ath/if_athvar.h	2007-08-01 11:34:33.202425088 +0200
@@ -687,6 +687,7 @@
 	struct ctl_table *sc_sysctls;
 
 	u_int16_t sc_reapcount;  		/* # of tx buffers reaped after net dev stopped */
+	struct timer_list sc_mib_enable;
 
 #ifdef ATH_REVERSE_ENGINEERING
 	u_int8_t register_snapshot[MAX_REGISTER_ADDRESS];