compat-wireless: Backport net_device_ops set_mac_address
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 26 Dec 2009 21:46:00 +0000 (22:46 +0100)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 29 Dec 2009 01:33:52 +0000 (17:33 -0800)
Adds ieee80211_change_mac and eth_mac_addr into the backport code for net_device_ops

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
patches/01-netdev.patch

index 2c0aa06bcf0d5d65af36ad02da4299cb952a6d43..5f849e00cc1243c21e5517e702764f85cb91ec0f 100644 (file)
@@ -110,7 +110,7 @@ without creating a headache on maintenance of the pathes.
  static const struct net_device_ops ieee80211_dataif_ops = {
        .ndo_open               = ieee80211_open,
        .ndo_stop               = ieee80211_stop,
-@@ -663,11 +664,22 @@
+@@ -663,11 +664,23 @@
        .ndo_change_mtu         = ieee80211_change_mtu,
        .ndo_set_mac_address    = eth_mac_addr,
  };
@@ -125,6 +125,7 @@ without creating a headache on maintenance of the pathes.
 +      dev->hard_start_xmit = ieee80211_subif_start_xmit;
 +      dev->set_multicast_list = ieee80211_set_multicast_list;
 +      dev->change_mtu = ieee80211_change_mtu;
++      dev->set_mac_address = ieee80211_change_mac;
 +      dev->open = ieee80211_open;
 +      dev->stop = ieee80211_stop;
 +      /* we will validate the address ourselves in ->open */
@@ -133,7 +134,7 @@ without creating a headache on maintenance of the pathes.
        dev->destructor = free_netdev;
  }
  
-@@ -682,7 +694,11 @@
+@@ -682,7 +694,12 @@
  
        /* and set some type-dependent values */
        sdata->vif.type = type;
@@ -141,6 +142,7 @@ without creating a headache on maintenance of the pathes.
        sdata->dev->netdev_ops = &ieee80211_dataif_ops;
 +#else
 +      sdata->dev->hard_start_xmit = ieee80211_subif_start_xmit;
++      sdata->dev->set_mac_address = eth_mac_addr;
 +#endif
        sdata->wdev.iftype = type;