diff options
author | Michael Buesch <mb@bu3sch.de> | 2007-10-28 16:08:51 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:03:29 -0500 |
commit | 0c1d379d2ee19b1a20904c3609440c061673f53c (patch) | |
tree | 925792bf35583216111ecf69fa742d0610f5aadf /drivers/net | |
parent | f34eb692acf4dc937f01ea58686ffe1eb6c5eed8 (diff) |
b43legacy: Remove set_key callback
We don't need the set_key callback, as we don't do hw crypto.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/b43legacy/main.c | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/drivers/net/wireless/b43legacy/main.c b/drivers/net/wireless/b43legacy/main.c index 1daa5aa0ba25..af75f41668c4 100644 --- a/drivers/net/wireless/b43legacy/main.c +++ b/drivers/net/wireless/b43legacy/main.c | |||
@@ -2603,32 +2603,6 @@ out_unlock_mutex: | |||
2603 | return err; | 2603 | return err; |
2604 | } | 2604 | } |
2605 | 2605 | ||
2606 | static int b43legacy_dev_set_key(struct ieee80211_hw *hw, | ||
2607 | enum set_key_cmd cmd, | ||
2608 | const u8 *local_addr, const u8 *addr, | ||
2609 | struct ieee80211_key_conf *key) | ||
2610 | { | ||
2611 | struct b43legacy_wl *wl = hw_to_b43legacy_wl(hw); | ||
2612 | struct b43legacy_wldev *dev = wl->current_dev; | ||
2613 | unsigned long flags; | ||
2614 | int err = -EOPNOTSUPP; | ||
2615 | DECLARE_MAC_BUF(mac); | ||
2616 | |||
2617 | if (!dev) | ||
2618 | return -ENODEV; | ||
2619 | mutex_lock(&wl->mutex); | ||
2620 | spin_lock_irqsave(&wl->irq_lock, flags); | ||
2621 | |||
2622 | if (b43legacy_status(dev) < B43legacy_STAT_INITIALIZED) { | ||
2623 | err = -ENODEV; | ||
2624 | } | ||
2625 | spin_unlock_irqrestore(&wl->irq_lock, flags); | ||
2626 | mutex_unlock(&wl->mutex); | ||
2627 | b43legacydbg(wl, "Using software based encryption for " | ||
2628 | "mac: %s\n", print_mac(mac, addr)); | ||
2629 | return err; | ||
2630 | } | ||
2631 | |||
2632 | static void b43legacy_configure_filter(struct ieee80211_hw *hw, | 2606 | static void b43legacy_configure_filter(struct ieee80211_hw *hw, |
2633 | unsigned int changed, | 2607 | unsigned int changed, |
2634 | unsigned int *fflags, | 2608 | unsigned int *fflags, |
@@ -3287,7 +3261,6 @@ static const struct ieee80211_ops b43legacy_hw_ops = { | |||
3287 | .remove_interface = b43legacy_remove_interface, | 3261 | .remove_interface = b43legacy_remove_interface, |
3288 | .config = b43legacy_dev_config, | 3262 | .config = b43legacy_dev_config, |
3289 | .config_interface = b43legacy_config_interface, | 3263 | .config_interface = b43legacy_config_interface, |
3290 | .set_key = b43legacy_dev_set_key, | ||
3291 | .configure_filter = b43legacy_configure_filter, | 3264 | .configure_filter = b43legacy_configure_filter, |
3292 | .get_stats = b43legacy_get_stats, | 3265 | .get_stats = b43legacy_get_stats, |
3293 | .get_tx_stats = b43legacy_get_tx_stats, | 3266 | .get_tx_stats = b43legacy_get_tx_stats, |