aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2008-04-04 01:31:03 -0400
committerLuis R. Rodriguez <mcgrof@winlab.rutgers.edu>2008-04-04 01:31:03 -0400
commit4ee0fa58467b21998bf33927c09d85d02c5b8b4c (patch)
tree10eb48f937d2992c2797e4d38f9807f879ecefcd
parent7b9853d34d6582da9bb9d16ee0cb5c71f3d70960 (diff)
downloadcompat-wireless-2.6-old-4ee0fa58467b21998bf33927c09d85d02c5b8b4c.tar.gz
Update compat.diff...
Signed-off-by: Luis R. Rodriguez <mcgrof@winlab.rutgers.edu>
-rw-r--r--compat/compat.diff190
1 files changed, 95 insertions, 95 deletions
diff --git a/compat/compat.diff b/compat/compat.diff
index 5b7b3aa..84512d8 100644
--- a/compat/compat.diff
+++ b/compat/compat.diff
@@ -131,34 +131,6 @@
#include "defs.h"
#include "scan.h"
---- a/drivers/net/wireless/libertas/ethtool.c 2008-02-28 19:54:52.000000000 +0100
-+++ b/drivers/net/wireless/libertas/ethtool.c 2008-02-28 19:54:53.000000000 +0100
-@@ -144,6 +144,7 @@ static void lbs_ethtool_get_stats(struct
- lbs_deb_enter(LBS_DEB_ETHTOOL);
- }
-
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
- static int lbs_ethtool_get_sset_count(struct net_device * dev, int sset)
- {
- switch (sset) {
-@@ -153,6 +154,7 @@ static int lbs_ethtool_get_sset_count(st
- return -EOPNOTSUPP;
- }
- }
-+#endif
-
- static void lbs_ethtool_get_strings(struct net_device *dev,
- u32 stringset,
-@@ -221,7 +223,9 @@ struct ethtool_ops lbs_ethtool_ops = {
- .get_drvinfo = lbs_ethtool_get_drvinfo,
- .get_eeprom = lbs_ethtool_get_eeprom,
- .get_eeprom_len = lbs_ethtool_get_eeprom_len,
-+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
- .get_sset_count = lbs_ethtool_get_sset_count,
-+#endif
- .get_ethtool_stats = lbs_ethtool_get_stats,
- .get_strings = lbs_ethtool_get_strings,
- .get_wol = lbs_ethtool_get_wol,
--- a/net/mac80211/cfg.c 2008-02-28 19:54:52.000000000 +0100
+++ b/net/mac80211/cfg.c 2008-02-28 19:54:53.000000000 +0100
@@ -9,7 +9,9 @@
@@ -743,8 +715,94 @@
if (ah->ah_version != AR5K_AR5210) {
AR5K_REG_WRITE_BITS(ah, AR5K_TXCFG,
AR5K_TXCFG_SDMAMR, dma_size);
---- a/net/mac80211/ieee80211.c 2008-03-28 15:35:48.000000000 -0400
-+++ b/net/mac80211/ieee80211.c 2008-03-28 15:35:48.000000000 -0400
+--- a/net/mac80211/rx.c 2008-03-28 15:35:48.000000000 -0400
++++ b/net/mac80211/rx.c 2008-03-28 15:35:48.000000000 -0400
+@@ -237,8 +237,13 @@
+ }
+
+ prev_dev = sdata->dev;
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
++ sdata->stats.rx_packets++;
++ sdata->stats.rx_bytes += skb->len;
++#else
+ sdata->dev->stats.rx_packets++;
+ sdata->dev->stats.rx_bytes += skb->len;
++#endif
+ }
+
+ if (prev_dev) {
+@@ -1378,8 +1383,13 @@
+
+ skb->dev = dev;
+
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
++ IEEE80211_DEV_TO_SUB_IF(dev)->stats.rx_packets++;
++ IEEE80211_DEV_TO_SUB_IF(dev)->stats.rx_bytes += skb->len;
++#else
+ dev->stats.rx_packets++;
+ dev->stats.rx_bytes += skb->len;
++#endif
+
+ /* skip the wrapping header */
+ eth = (struct ethhdr *) skb_pull(skb, sizeof(struct ethhdr));
+@@ -1488,8 +1498,13 @@
+
+ rx->skb->dev = dev;
+
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
++ rx->sdata->stats.rx_packets++;
++ rx->sdata->stats.rx_bytes += rx->skb->len;
++#else
+ dev->stats.rx_packets++;
+ dev->stats.rx_bytes += rx->skb->len;
++#endif
+
+ ieee80211_deliver_skb(rx);
+
+@@ -1695,8 +1710,13 @@
+ }
+
+ prev_dev = sdata->dev;
++#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
++ sdata->stats.rx_packets++;
++ sdata->stats.rx_bytes += skb->len;
++#else
+ sdata->dev->stats.rx_packets++;
+ sdata->dev->stats.rx_bytes += skb->len;
++#endif
+ }
+
+ if (prev_dev) {
+--- a/drivers/net/wireless/libertas/ethtool.c 2008-04-03 21:51:48.000000000 -0400
++++ b/drivers/net/wireless/libertas/ethtool.c 2008-04-03 21:51:49.000000000 -0400
+@@ -111,6 +111,7 @@
+ lbs_deb_enter(LBS_DEB_ETHTOOL);
+ }
+
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
+ static int lbs_ethtool_get_sset_count(struct net_device * dev, int sset)
+ {
+ switch (sset) {
+@@ -120,6 +121,7 @@
+ return -EOPNOTSUPP;
+ }
+ }
++#endif
+
+ static void lbs_ethtool_get_strings(struct net_device *dev,
+ u32 stringset,
+@@ -188,7 +190,9 @@
+ .get_drvinfo = lbs_ethtool_get_drvinfo,
+ .get_eeprom = lbs_ethtool_get_eeprom,
+ .get_eeprom_len = lbs_ethtool_get_eeprom_len,
++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24))
+ .get_sset_count = lbs_ethtool_get_sset_count,
++#endif
+ .get_ethtool_stats = lbs_ethtool_get_stats,
+ .get_strings = lbs_ethtool_get_strings,
+ .get_wol = lbs_ethtool_get_wol,
+--- a/net/mac80211/ieee80211.c 2008-04-03 21:51:48.000000000 -0400
++++ b/net/mac80211/ieee80211.c 2008-04-03 21:51:49.000000000 -0400
@@ -21,7 +21,9 @@
#include <linux/wireless.h>
#include <linux/rtnetlink.h>
@@ -755,7 +813,7 @@
#include <net/cfg80211.h>
#include "ieee80211_i.h"
-@@ -930,6 +932,13 @@
+@@ -942,6 +944,13 @@
.cache_update = eth_header_cache_update,
};
@@ -769,7 +827,7 @@
/* Must not be called for mdev */
void ieee80211_if_setup(struct net_device *dev)
{
-@@ -941,6 +950,9 @@
+@@ -953,6 +962,9 @@
dev->open = ieee80211_open;
dev->stop = ieee80211_stop;
dev->destructor = ieee80211_if_free;
@@ -779,7 +837,7 @@
}
/* everything else */
-@@ -1631,7 +1643,12 @@
+@@ -1643,7 +1655,12 @@
mdev->open = ieee80211_master_open;
mdev->stop = ieee80211_master_stop;
mdev->type = ARPHRD_IEEE80211;
@@ -792,9 +850,9 @@
mdev->set_multicast_list = ieee80211_master_set_multicast_list;
sdata->vif.type = IEEE80211_IF_TYPE_AP;
---- a/net/mac80211/ieee80211_i.h 2008-03-28 15:35:48.000000000 -0400
-+++ b/net/mac80211/ieee80211_i.h 2008-03-28 15:35:48.000000000 -0400
-@@ -421,6 +421,10 @@
+--- a/net/mac80211/ieee80211_i.h 2008-04-03 21:51:48.000000000 -0400
++++ b/net/mac80211/ieee80211_i.h 2008-04-03 21:51:49.000000000 -0400
+@@ -430,6 +430,10 @@
struct wireless_dev wdev;
@@ -805,7 +863,7 @@
/* keys */
struct list_head key_list;
-@@ -553,7 +557,7 @@
+@@ -562,7 +566,7 @@
return container_of(p, struct ieee80211_sub_if_data, vif);
}
@@ -814,61 +872,3 @@
enum {
IEEE80211_RX_MSG = 1,
---- a/net/mac80211/rx.c 2008-03-28 15:35:48.000000000 -0400
-+++ b/net/mac80211/rx.c 2008-03-28 15:35:48.000000000 -0400
-@@ -237,8 +237,13 @@
- }
-
- prev_dev = sdata->dev;
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
-+ sdata->stats.rx_packets++;
-+ sdata->stats.rx_bytes += skb->len;
-+#else
- sdata->dev->stats.rx_packets++;
- sdata->dev->stats.rx_bytes += skb->len;
-+#endif
- }
-
- if (prev_dev) {
-@@ -1378,8 +1383,13 @@
-
- skb->dev = dev;
-
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
-+ IEEE80211_DEV_TO_SUB_IF(dev)->stats.rx_packets++;
-+ IEEE80211_DEV_TO_SUB_IF(dev)->stats.rx_bytes += skb->len;
-+#else
- dev->stats.rx_packets++;
- dev->stats.rx_bytes += skb->len;
-+#endif
-
- /* skip the wrapping header */
- eth = (struct ethhdr *) skb_pull(skb, sizeof(struct ethhdr));
-@@ -1488,8 +1498,13 @@
-
- rx->skb->dev = dev;
-
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
-+ rx->sdata->stats.rx_packets++;
-+ rx->sdata->stats.rx_bytes += rx->skb->len;
-+#else
- dev->stats.rx_packets++;
- dev->stats.rx_bytes += rx->skb->len;
-+#endif
-
- ieee80211_deliver_skb(rx);
-
-@@ -1695,8 +1710,13 @@
- }
-
- prev_dev = sdata->dev;
-+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22))
-+ sdata->stats.rx_packets++;
-+ sdata->stats.rx_bytes += skb->len;
-+#else
- sdata->dev->stats.rx_packets++;
- sdata->dev->stats.rx_bytes += skb->len;
-+#endif
- }
-
- if (prev_dev) {