diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2009-07-28 12:58:54 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-04 16:43:22 -0400 |
commit | ad2f34b41fd6e2b84c896ccf321d5de0a7c7cd52 (patch) | |
tree | b4b62e124fe438132f4695b556f4a502d585bbe3 /drivers | |
parent | 33172899a9d922b04081e12dced3ae474d46d620 (diff) |
rt2x00: Fix build error when crypto support is disabled
When only rt2400pci or rt2500pci is compiled without any of the other
rt2x00 modules, then CONFIG_RT2X00_LIB_CRYPTO will not be enabled.
However rt2x00mac_set_tim() implemented within #ifdef CONFIG_RT2X00_LIB_CRYPTO
statements while the declaration is placed outside the definition. This results in linking
errors as reporte by Ken.
rt2x00_set_tim() has nothing to do with crypto, and thus should be moved outside
of the #ifdef statements.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00mac.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00mac.c b/drivers/net/wireless/rt2x00/rt2x00mac.c index 7de1a2cdcf8c..e92c8f99d695 100644 --- a/drivers/net/wireless/rt2x00/rt2x00mac.c +++ b/drivers/net/wireless/rt2x00/rt2x00mac.c | |||
@@ -435,6 +435,16 @@ void rt2x00mac_configure_filter(struct ieee80211_hw *hw, | |||
435 | } | 435 | } |
436 | EXPORT_SYMBOL_GPL(rt2x00mac_configure_filter); | 436 | EXPORT_SYMBOL_GPL(rt2x00mac_configure_filter); |
437 | 437 | ||
438 | int rt2x00mac_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, | ||
439 | bool set) | ||
440 | { | ||
441 | struct rt2x00_dev *rt2x00dev = hw->priv; | ||
442 | |||
443 | rt2x00lib_beacondone(rt2x00dev); | ||
444 | return 0; | ||
445 | } | ||
446 | EXPORT_SYMBOL_GPL(rt2x00mac_set_tim); | ||
447 | |||
438 | #ifdef CONFIG_RT2X00_LIB_CRYPTO | 448 | #ifdef CONFIG_RT2X00_LIB_CRYPTO |
439 | static void memcpy_tkip(struct rt2x00lib_crypto *crypto, u8 *key, u8 key_len) | 449 | static void memcpy_tkip(struct rt2x00lib_crypto *crypto, u8 *key, u8 key_len) |
440 | { | 450 | { |
@@ -454,16 +464,6 @@ static void memcpy_tkip(struct rt2x00lib_crypto *crypto, u8 *key, u8 key_len) | |||
454 | sizeof(crypto->rx_mic)); | 464 | sizeof(crypto->rx_mic)); |
455 | } | 465 | } |
456 | 466 | ||
457 | int rt2x00mac_set_tim(struct ieee80211_hw *hw, struct ieee80211_sta *sta, | ||
458 | bool set) | ||
459 | { | ||
460 | struct rt2x00_dev *rt2x00dev = hw->priv; | ||
461 | |||
462 | rt2x00lib_beacondone(rt2x00dev); | ||
463 | return 0; | ||
464 | } | ||
465 | EXPORT_SYMBOL_GPL(rt2x00mac_set_tim); | ||
466 | |||
467 | int rt2x00mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, | 467 | int rt2x00mac_set_key(struct ieee80211_hw *hw, enum set_key_cmd cmd, |
468 | struct ieee80211_vif *vif, struct ieee80211_sta *sta, | 468 | struct ieee80211_vif *vif, struct ieee80211_sta *sta, |
469 | struct ieee80211_key_conf *key) | 469 | struct ieee80211_key_conf *key) |