diff options
author | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:18:44 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-12 16:18:44 -0400 |
commit | 252f4bf400df1712408fe83ba199a66a1b57ab1d (patch) | |
tree | e07fa00abdd55b31e22567786c78635f32c6a66c /net/mac80211/sta_info.c | |
parent | 6ba1037c3d871ab70e342631516dbf841c35b086 (diff) | |
parent | b37e3b6d64358604960b35e8ecbb7aed22e0926e (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem
Conflicts:
drivers/net/wireless/ath/ar9170/main.c
drivers/net/wireless/ath/ar9170/phy.c
drivers/net/wireless/zd1211rw/zd_rf_rf2959.c
Diffstat (limited to 'net/mac80211/sta_info.c')
-rw-r--r-- | net/mac80211/sta_info.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/net/mac80211/sta_info.c b/net/mac80211/sta_info.c index 13e8c30adf01..52d4b1a695c9 100644 --- a/net/mac80211/sta_info.c +++ b/net/mac80211/sta_info.c | |||
@@ -698,6 +698,8 @@ static int __must_check __sta_info_destroy(struct sta_info *sta) | |||
698 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ | 698 | #endif /* CONFIG_MAC80211_VERBOSE_DEBUG */ |
699 | cancel_work_sync(&sta->drv_unblock_wk); | 699 | cancel_work_sync(&sta->drv_unblock_wk); |
700 | 700 | ||
701 | cfg80211_del_sta(sdata->dev, sta->sta.addr, GFP_KERNEL); | ||
702 | |||
701 | rate_control_remove_sta_debugfs(sta); | 703 | rate_control_remove_sta_debugfs(sta); |
702 | ieee80211_sta_debugfs_remove(sta); | 704 | ieee80211_sta_debugfs_remove(sta); |
703 | 705 | ||
@@ -766,9 +768,8 @@ static void sta_info_cleanup(unsigned long data) | |||
766 | if (!timer_needed) | 768 | if (!timer_needed) |
767 | return; | 769 | return; |
768 | 770 | ||
769 | local->sta_cleanup.expires = | 771 | mod_timer(&local->sta_cleanup, |
770 | round_jiffies(jiffies + STA_INFO_CLEANUP_INTERVAL); | 772 | round_jiffies(jiffies + STA_INFO_CLEANUP_INTERVAL)); |
771 | add_timer(&local->sta_cleanup); | ||
772 | } | 773 | } |
773 | 774 | ||
774 | void sta_info_init(struct ieee80211_local *local) | 775 | void sta_info_init(struct ieee80211_local *local) |
@@ -781,14 +782,6 @@ void sta_info_init(struct ieee80211_local *local) | |||
781 | 782 | ||
782 | setup_timer(&local->sta_cleanup, sta_info_cleanup, | 783 | setup_timer(&local->sta_cleanup, sta_info_cleanup, |
783 | (unsigned long)local); | 784 | (unsigned long)local); |
784 | local->sta_cleanup.expires = | ||
785 | round_jiffies(jiffies + STA_INFO_CLEANUP_INTERVAL); | ||
786 | } | ||
787 | |||
788 | int sta_info_start(struct ieee80211_local *local) | ||
789 | { | ||
790 | add_timer(&local->sta_cleanup); | ||
791 | return 0; | ||
792 | } | 785 | } |
793 | 786 | ||
794 | void sta_info_stop(struct ieee80211_local *local) | 787 | void sta_info_stop(struct ieee80211_local *local) |