diff options
-rw-r--r-- | drivers/net/wireless/strip.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/drivers/net/wireless/strip.c b/drivers/net/wireless/strip.c index 39f525efdc8d..f95204632690 100644 --- a/drivers/net/wireless/strip.c +++ b/drivers/net/wireless/strip.c | |||
@@ -2477,6 +2477,16 @@ static const struct header_ops strip_header_ops = { | |||
2477 | .rebuild = strip_rebuild_header, | 2477 | .rebuild = strip_rebuild_header, |
2478 | }; | 2478 | }; |
2479 | 2479 | ||
2480 | |||
2481 | static const struct net_device_ops strip_netdev_ops = { | ||
2482 | .ndo_open = strip_open_low, | ||
2483 | .ndo_stop = strip_close_low, | ||
2484 | .ndo_start_xmit = strip_xmit, | ||
2485 | .ndo_set_mac_address = strip_set_mac_address, | ||
2486 | .ndo_get_stats = strip_get_stats, | ||
2487 | .ndo_change_mtu = strip_change_mtu, | ||
2488 | }; | ||
2489 | |||
2480 | /* | 2490 | /* |
2481 | * This routine is called by DDI when the | 2491 | * This routine is called by DDI when the |
2482 | * (dynamically assigned) device is registered | 2492 | * (dynamically assigned) device is registered |
@@ -2503,18 +2513,8 @@ static void strip_dev_setup(struct net_device *dev) | |||
2503 | dev->dev_addr[0] = 0; | 2513 | dev->dev_addr[0] = 0; |
2504 | dev->addr_len = sizeof(MetricomAddress); | 2514 | dev->addr_len = sizeof(MetricomAddress); |
2505 | 2515 | ||
2506 | /* | 2516 | dev->header_ops = &strip_header_ops, |
2507 | * Pointers to interface service routines. | 2517 | dev->netdev_ops = &strip_netdev_ops; |
2508 | */ | ||
2509 | |||
2510 | dev->open = strip_open_low; | ||
2511 | dev->stop = strip_close_low; | ||
2512 | dev->hard_start_xmit = strip_xmit; | ||
2513 | dev->header_ops = &strip_header_ops; | ||
2514 | |||
2515 | dev->set_mac_address = strip_set_mac_address; | ||
2516 | dev->get_stats = strip_get_stats; | ||
2517 | dev->change_mtu = strip_change_mtu; | ||
2518 | } | 2518 | } |
2519 | 2519 | ||
2520 | /* | 2520 | /* |