summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-12-04 19:54:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-12-04 19:54:16 +0000
commit130413bb0f1de803e52cd168c59373b3e6473f4e (patch)
tree2c7f24a769e11d9ef1606fa34ce7e000504db416 /package
parent05ea87a13ff744ea8a360caead70292f1311d91f (diff)
downloadmtk-20170518-130413bb0f1de803e52cd168c59373b3e6473f4e.zip
mtk-20170518-130413bb0f1de803e52cd168c59373b3e6473f4e.tar.gz
mtk-20170518-130413bb0f1de803e52cd168c59373b3e6473f4e.tar.bz2
madwifi: fix the autochannel patch
SVN-Revision: 13520
Diffstat (limited to 'package')
-rw-r--r--package/madwifi/patches/389-autochannel.patch9
-rw-r--r--package/madwifi/patches/390-frame_type.patch6
-rw-r--r--package/madwifi/patches/406-monitor_r3711.patch4
-rw-r--r--package/madwifi/patches/408-changeset_r3337.patch2
-rw-r--r--package/madwifi/patches/450-new_hal.patch2
5 files changed, 13 insertions, 10 deletions
diff --git a/package/madwifi/patches/389-autochannel.patch b/package/madwifi/patches/389-autochannel.patch
index 8e5a62d..9c77b0e 100644
--- a/package/madwifi/patches/389-autochannel.patch
+++ b/package/madwifi/patches/389-autochannel.patch
@@ -16,7 +16,7 @@
sc->sc_curchan.channel = ic->ic_curchan->ic_freq;
sc->sc_curchan.channelFlags = ath_chan2flags(ic->ic_curchan);
if (!ath_hal_reset(ah, sc->sc_opmode, &sc->sc_curchan, AH_FALSE, &status)) {
-@@ -2913,6 +2915,34 @@ ath_hw_check_atim(struct ath_softc *sc,
+@@ -2913,6 +2915,37 @@ ath_hw_check_atim(struct ath_softc *sc,
}
@@ -33,6 +33,9 @@
+ if (sc->sc_ah->ah_macType < 5212)
+ return;
+
++ if (!ic->ic_curchan || (ic->ic_curchan == IEEE80211_CHAN_ANYC))
++ return;
++
+ rx = OS_REG_READ(ah, AR5K_RXCLEAR);
+ cc = OS_REG_READ(ah, AR5K_CYCLES);
+ if (rx > cc)
@@ -51,7 +54,7 @@
/*
* Reset the hardware w/o losing operational state. This is
* basically a more efficient way of doing ath_stop, ath_init,
-@@ -2939,6 +2969,7 @@ ath_reset(struct net_device *dev)
+@@ -2939,6 +2972,7 @@ ath_reset(struct net_device *dev)
* Convert to a HAL channel description with the flags
* constrained to reflect the current operating mode.
*/
@@ -59,7 +62,7 @@
c = ic->ic_curchan;
sc->sc_curchan.channel = c->ic_freq;
sc->sc_curchan.channelFlags = ath_chan2flags(c);
-@@ -9019,6 +9050,7 @@ ath_chan_set(struct ath_softc *sc, struc
+@@ -9019,6 +9053,7 @@ ath_chan_set(struct ath_softc *sc, struc
u_int8_t channel_change_required = 0;
struct timeval tv;
diff --git a/package/madwifi/patches/390-frame_type.patch b/package/madwifi/patches/390-frame_type.patch
index 179ee7c..130f3b6 100644
--- a/package/madwifi/patches/390-frame_type.patch
+++ b/package/madwifi/patches/390-frame_type.patch
@@ -1,13 +1,13 @@
--- a/net80211/ieee80211_input.c
+++ b/net80211/ieee80211_input.c
-@@ -4421,7 +4421,9 @@
+@@ -4440,7 +4440,9 @@ ath_eth_type_trans(struct sk_buff *skb,
if (memcmp(eth->h_dest, dev->dev_addr, ETH_ALEN))
skb->pkt_type = PACKET_OTHERHOST;
-
+
- return eth->h_proto;
+ if (ntohs(eth->h_proto) >= 1536)
+ return eth->h_proto;
+ return htons(ETH_P_802_2);
}
#endif
-
+
diff --git a/package/madwifi/patches/406-monitor_r3711.patch b/package/madwifi/patches/406-monitor_r3711.patch
index 5eef3fd..f5e5a95 100644
--- a/package/madwifi/patches/406-monitor_r3711.patch
+++ b/package/madwifi/patches/406-monitor_r3711.patch
@@ -1,6 +1,6 @@
--- a/ath/if_ath.c
+++ b/ath/if_ath.c
-@@ -6504,7 +6504,7 @@ ath_capture(struct net_device *dev, cons
+@@ -6507,7 +6507,7 @@ ath_capture(struct net_device *dev, cons
/* Never copy the SKB, as it is ours on the RX side, and this is the
* last process on the TX side and we only modify our own headers. */
@@ -9,7 +9,7 @@
if (tskb == NULL) {
DPRINTF(sc, ATH_DEBUG_ANY,
"Dropping; ath_skb_removepad failed!\n");
-@@ -6512,6 +6512,8 @@ ath_capture(struct net_device *dev, cons
+@@ -6515,6 +6515,8 @@ ath_capture(struct net_device *dev, cons
}
ieee80211_input_monitor(ic, tskb, bf, tx, tsf, sc);
diff --git a/package/madwifi/patches/408-changeset_r3337.patch b/package/madwifi/patches/408-changeset_r3337.patch
index 1297d5f..b0121b9 100644
--- a/package/madwifi/patches/408-changeset_r3337.patch
+++ b/package/madwifi/patches/408-changeset_r3337.patch
@@ -10,7 +10,7 @@
Please let us know if you think your name should be mentioned here!
--- a/ath/if_ath.c
+++ b/ath/if_ath.c
-@@ -3123,7 +3123,7 @@ ath_tx_startraw(struct net_device *dev,
+@@ -3126,7 +3126,7 @@ ath_tx_startraw(struct net_device *dev,
struct ath_softc *sc = dev->priv;
struct ath_hal *ah = sc->sc_ah;
struct ieee80211_phy_params *ph = (struct ieee80211_phy_params *)
diff --git a/package/madwifi/patches/450-new_hal.patch b/package/madwifi/patches/450-new_hal.patch
index 5c37125..199f91f 100644
--- a/package/madwifi/patches/450-new_hal.patch
+++ b/package/madwifi/patches/450-new_hal.patch
@@ -108,7 +108,7 @@
/*
* Check if the MAC has multi-rate retry support.
* We do this by trying to setup a fake extended
-@@ -7518,7 +7526,7 @@ ath_txq_setup(struct ath_softc *sc, int
+@@ -7521,7 +7529,7 @@ ath_txq_setup(struct ath_softc *sc, int
if (qtype == HAL_TX_QUEUE_UAPSD)
qi.tqi_qflags = HAL_TXQ_TXDESCINT_ENABLE;
else