diff options
author | Stephen Hemminger <shemminger@linux-foundation.org> | 2007-09-27 01:13:38 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:52:51 -0400 |
commit | b95cce3576813ac3f86bafa6b5daaaaf7574b0fe (patch) | |
tree | 54da3f245ee145722623a8e0eaab5fc49ea78511 /drivers/net/wireless/airo.c | |
parent | 0c4e85813d0a94eeb8bf813397a4907bdd7bb610 (diff) |
[NET]: Wrap hard_header_parse
Wrap the hard_header_parse function to simplify next step of
header_ops conversion.
Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/airo.c')
-rw-r--r-- | drivers/net/wireless/airo.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/wireless/airo.c b/drivers/net/wireless/airo.c index 95d3cd1c49a7..cd03a61359aa 100644 --- a/drivers/net/wireless/airo.c +++ b/drivers/net/wireless/airo.c | |||
@@ -2481,7 +2481,7 @@ void stop_airo_card( struct net_device *dev, int freeres ) | |||
2481 | 2481 | ||
2482 | EXPORT_SYMBOL(stop_airo_card); | 2482 | EXPORT_SYMBOL(stop_airo_card); |
2483 | 2483 | ||
2484 | static int wll_header_parse(struct sk_buff *skb, unsigned char *haddr) | 2484 | static int wll_header_parse(const struct sk_buff *skb, unsigned char *haddr) |
2485 | { | 2485 | { |
2486 | memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); | 2486 | memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); |
2487 | return ETH_ALEN; | 2487 | return ETH_ALEN; |
@@ -2698,11 +2698,6 @@ static int mpi_map_card(struct airo_info *ai, struct pci_dev *pci) | |||
2698 | 2698 | ||
2699 | static void wifi_setup(struct net_device *dev) | 2699 | static void wifi_setup(struct net_device *dev) |
2700 | { | 2700 | { |
2701 | dev->hard_header = NULL; | ||
2702 | dev->rebuild_header = NULL; | ||
2703 | dev->hard_header_cache = NULL; | ||
2704 | dev->header_cache_update= NULL; | ||
2705 | |||
2706 | dev->hard_header_parse = wll_header_parse; | 2701 | dev->hard_header_parse = wll_header_parse; |
2707 | dev->hard_start_xmit = &airo_start_xmit11; | 2702 | dev->hard_start_xmit = &airo_start_xmit11; |
2708 | dev->get_stats = &airo_get_stats; | 2703 | dev->get_stats = &airo_get_stats; |