priv->wireless_data.spy_data = &priv->ieee->spy_data;
net_dev->wireless_data = &priv->wireless_data;
net_dev->wireless_handlers = &ipw_wx_handler_def;
---- a/drivers/net/wireless/libertas/main.c 2009-08-18 16:17:34.669375612 -0700
-+++ b/drivers/net/wireless/libertas/main.c 2009-08-18 16:17:35.277375431 -0700
-@@ -1148,6 +1148,7 @@
+--- a/drivers/net/wireless/libertas/main.c 2009-10-06 12:49:55.000000000 -0400
++++ b/drivers/net/wireless/libertas/main.c 2009-10-06 12:49:56.000000000 -0400
+@@ -1225,6 +1225,7 @@
lbs_deb_leave(LBS_DEB_MAIN);
}
static const struct net_device_ops lbs_netdev_ops = {
.ndo_open = lbs_dev_open,
.ndo_stop = lbs_eth_stop,
-@@ -1158,6 +1159,7 @@
+@@ -1235,6 +1236,7 @@
.ndo_change_mtu = eth_change_mtu,
.ndo_validate_addr = eth_validate_addr,
};
/**
* @brief This function adds the card. it will probe the
-@@ -1193,7 +1195,16 @@
+@@ -1270,7 +1272,16 @@
priv->infra_open = 0;
/* Setup the OS Interface to our functions */
dev->watchdog_timeo = 5 * HZ;
dev->ethtool_ops = &lbs_ethtool_ops;
#ifdef WIRELESS_EXT
-@@ -1420,6 +1431,7 @@
+@@ -1503,6 +1514,7 @@
EXPORT_SYMBOL_GPL(lbs_stop_card);
static const struct net_device_ops mesh_netdev_ops = {
.ndo_open = lbs_dev_open,
.ndo_stop = lbs_mesh_stop,
-@@ -1427,6 +1439,7 @@
+@@ -1510,6 +1522,7 @@
.ndo_set_mac_address = lbs_set_mac_address,
.ndo_set_multicast_list = lbs_set_multicast_list,
};
/**
* @brief This function adds mshX interface
-@@ -1450,7 +1463,15 @@
+@@ -1533,7 +1546,15 @@
mesh_dev->ml_priv = priv;
priv->mesh_dev = mesh_dev;
mesh_dev->ethtool_ops = &lbs_ethtool_ops;
memcpy(mesh_dev->dev_addr, priv->dev->dev_addr,
sizeof(priv->dev->dev_addr));
-@@ -1666,11 +1687,13 @@
+@@ -1749,11 +1770,13 @@
lbs_deb_leave(LBS_DEB_MAIN);
}
static int lbs_add_rtap(struct lbs_private *priv)
{
-@@ -1691,7 +1714,13 @@
+@@ -1774,7 +1797,13 @@
memcpy(rtap_dev->dev_addr, priv->current_addr, ETH_ALEN);
rtap_dev->type = ARPHRD_IEEE80211_RADIOTAP;