diff options
author | Stanislav Yakovlev <stas.yakovlev@gmail.com> | 2011-12-26 18:31:11 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-01-04 14:30:46 -0500 |
commit | f961e34ebef84b532ec6c477f73b66d9a8b0ddbc (patch) | |
tree | 71244b92a284a217c08c2fed6f719f183944140a | |
parent | e46a2cf9e1dea9267e8a3f5284aea908e5aac5c6 (diff) |
ipw2x00: remove reset_port functionality
Removes reset_port since it isn't used anywhere as suggested by Johannes Berg.
Signed-off-by: Stanislav Yakovlev <stas.yakovlev@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw.h | 4 | ||||
-rw-r--r-- | drivers/net/wireless/ipw2x00/libipw_wx.c | 25 |
2 files changed, 0 insertions, 29 deletions
diff --git a/drivers/net/wireless/ipw2x00/libipw.h b/drivers/net/wireless/ipw2x00/libipw.h index 3d5821eeb054..8874588fb929 100644 --- a/drivers/net/wireless/ipw2x00/libipw.h +++ b/drivers/net/wireless/ipw2x00/libipw.h | |||
@@ -805,9 +805,6 @@ struct libipw_device { | |||
805 | /* WEP and other encryption related settings at the device level */ | 805 | /* WEP and other encryption related settings at the device level */ |
806 | int open_wep; /* Set to 1 to allow unencrypted frames */ | 806 | int open_wep; /* Set to 1 to allow unencrypted frames */ |
807 | 807 | ||
808 | int reset_on_keychange; /* Set to 1 if the HW needs to be reset on | ||
809 | * WEP key changes */ | ||
810 | |||
811 | /* If the host performs {en,de}cryption, then set to 1 */ | 808 | /* If the host performs {en,de}cryption, then set to 1 */ |
812 | int host_encrypt; | 809 | int host_encrypt; |
813 | int host_encrypt_msdu; | 810 | int host_encrypt_msdu; |
@@ -860,7 +857,6 @@ struct libipw_device { | |||
860 | struct libipw_security * sec); | 857 | struct libipw_security * sec); |
861 | netdev_tx_t (*hard_start_xmit) (struct libipw_txb * txb, | 858 | netdev_tx_t (*hard_start_xmit) (struct libipw_txb * txb, |
862 | struct net_device * dev, int pri); | 859 | struct net_device * dev, int pri); |
863 | int (*reset_port) (struct net_device * dev); | ||
864 | int (*is_queue_full) (struct net_device * dev, int pri); | 860 | int (*is_queue_full) (struct net_device * dev, int pri); |
865 | 861 | ||
866 | int (*handle_management) (struct net_device * dev, | 862 | int (*handle_management) (struct net_device * dev, |
diff --git a/drivers/net/wireless/ipw2x00/libipw_wx.c b/drivers/net/wireless/ipw2x00/libipw_wx.c index 6623e5052254..1571505b1a38 100644 --- a/drivers/net/wireless/ipw2x00/libipw_wx.c +++ b/drivers/net/wireless/ipw2x00/libipw_wx.c | |||
@@ -474,17 +474,6 @@ int libipw_wx_set_encode(struct libipw_device *ieee, | |||
474 | if (ieee->set_security) | 474 | if (ieee->set_security) |
475 | ieee->set_security(dev, &sec); | 475 | ieee->set_security(dev, &sec); |
476 | 476 | ||
477 | /* Do not reset port if card is in Managed mode since resetting will | ||
478 | * generate new IEEE 802.11 authentication which may end up in looping | ||
479 | * with IEEE 802.1X. If your hardware requires a reset after WEP | ||
480 | * configuration (for example... Prism2), implement the reset_port in | ||
481 | * the callbacks structures used to initialize the 802.11 stack. */ | ||
482 | if (ieee->reset_on_keychange && | ||
483 | ieee->iw_mode != IW_MODE_INFRA && | ||
484 | ieee->reset_port && ieee->reset_port(dev)) { | ||
485 | printk(KERN_DEBUG "%s: reset_port failed\n", dev->name); | ||
486 | return -EINVAL; | ||
487 | } | ||
488 | return 0; | 477 | return 0; |
489 | } | 478 | } |
490 | 479 | ||
@@ -688,20 +677,6 @@ int libipw_wx_set_encodeext(struct libipw_device *ieee, | |||
688 | if (ieee->set_security) | 677 | if (ieee->set_security) |
689 | ieee->set_security(ieee->dev, &sec); | 678 | ieee->set_security(ieee->dev, &sec); |
690 | 679 | ||
691 | /* | ||
692 | * Do not reset port if card is in Managed mode since resetting will | ||
693 | * generate new IEEE 802.11 authentication which may end up in looping | ||
694 | * with IEEE 802.1X. If your hardware requires a reset after WEP | ||
695 | * configuration (for example... Prism2), implement the reset_port in | ||
696 | * the callbacks structures used to initialize the 802.11 stack. | ||
697 | */ | ||
698 | if (ieee->reset_on_keychange && | ||
699 | ieee->iw_mode != IW_MODE_INFRA && | ||
700 | ieee->reset_port && ieee->reset_port(dev)) { | ||
701 | LIBIPW_DEBUG_WX("%s: reset_port failed\n", dev->name); | ||
702 | return -EINVAL; | ||
703 | } | ||
704 | |||
705 | return ret; | 680 | return ret; |
706 | } | 681 | } |
707 | 682 | ||