Search Linux Wireless

[PATCH] hostap: convert to net_device_ops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Convert to net_device_ops, compile tested only.

--- a/drivers/net/wireless/hostap/hostap_hw.c	2009-01-07 03:03:33.000000000 +1100
+++ b/drivers/net/wireless/hostap/hostap_hw.c	2009-01-25 21:10:43.977634507 +1100
@@ -3075,6 +3075,13 @@ static void prism2_set_lockdep_class(str
 	netdev_for_each_tx_queue(dev, prism2_set_lockdep_class_one, NULL);
 }
 
+static const struct net_device_ops hostap_netdev_ops = {
+	.ndo_start_xmit 	= hostap_master_start_xmit,
+	.ndo_change_mtu		= eth_change_mtu,
+	.ndo_set_mac_address 	= eth_mac_addr,
+	.ndo_validate_addr	= eth_validate_addr,
+};
+
 static struct net_device *
 prism2_init_local_data(struct prism2_helper_functions *funcs, int card_idx,
 		       struct device *sdev)
@@ -3228,9 +3235,9 @@ while (0)
 
 	hostap_setup_dev(dev, local, HOSTAP_INTERFACE_MASTER);
 
-	dev->hard_start_xmit = hostap_master_start_xmit;
 	dev->type = ARPHRD_IEEE80211;
 	dev->header_ops = &hostap_80211_ops;
+	dev->netdev_ops = &hostap_netdev-ops;
 
 	rtnl_lock();
 	ret = dev_alloc_name(dev, "wifi%d");
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux