diff options
author | Grazvydas Ignotas <notasas@gmail.com> | 2012-06-16 15:31:48 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-06-20 15:14:42 -0400 |
commit | 7e05bedca084faa073c2e64bbcd6407dbaff3151 (patch) | |
tree | 74d44934c2692630e5d744975abbd9e50df13a80 | |
parent | edc7651f3a4ffa7fca37d92401562694121512ad (diff) |
wl1251: remove unused filter_work
filter_work is never used, remove it.
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ti/wl1251/main.c | 36 | ||||
-rw-r--r-- | drivers/net/wireless/ti/wl1251/wl1251.h | 1 |
2 files changed, 0 insertions, 37 deletions
diff --git a/drivers/net/wireless/ti/wl1251/main.c b/drivers/net/wireless/ti/wl1251/main.c index d1afb8e3b2ef..ff60a7a341be 100644 --- a/drivers/net/wireless/ti/wl1251/main.c +++ b/drivers/net/wireless/ti/wl1251/main.c | |||
@@ -348,33 +348,6 @@ out: | |||
348 | return ret; | 348 | return ret; |
349 | } | 349 | } |
350 | 350 | ||
351 | static void wl1251_filter_work(struct work_struct *work) | ||
352 | { | ||
353 | struct wl1251 *wl = | ||
354 | container_of(work, struct wl1251, filter_work); | ||
355 | int ret; | ||
356 | |||
357 | mutex_lock(&wl->mutex); | ||
358 | |||
359 | if (wl->state == WL1251_STATE_OFF) | ||
360 | goto out; | ||
361 | |||
362 | ret = wl1251_ps_elp_wakeup(wl); | ||
363 | if (ret < 0) | ||
364 | goto out; | ||
365 | |||
366 | ret = wl1251_join(wl, wl->bss_type, wl->channel, wl->beacon_int, | ||
367 | wl->dtim_period); | ||
368 | if (ret < 0) | ||
369 | goto out_sleep; | ||
370 | |||
371 | out_sleep: | ||
372 | wl1251_ps_elp_sleep(wl); | ||
373 | |||
374 | out: | ||
375 | mutex_unlock(&wl->mutex); | ||
376 | } | ||
377 | |||
378 | static void wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) | 351 | static void wl1251_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb) |
379 | { | 352 | { |
380 | struct wl1251 *wl = hw->priv; | 353 | struct wl1251 *wl = hw->priv; |
@@ -478,7 +451,6 @@ static void wl1251_op_stop(struct ieee80211_hw *hw) | |||
478 | 451 | ||
479 | cancel_work_sync(&wl->irq_work); | 452 | cancel_work_sync(&wl->irq_work); |
480 | cancel_work_sync(&wl->tx_work); | 453 | cancel_work_sync(&wl->tx_work); |
481 | cancel_work_sync(&wl->filter_work); | ||
482 | cancel_delayed_work_sync(&wl->elp_work); | 454 | cancel_delayed_work_sync(&wl->elp_work); |
483 | 455 | ||
484 | mutex_lock(&wl->mutex); | 456 | mutex_lock(&wl->mutex); |
@@ -723,13 +695,6 @@ static void wl1251_op_configure_filter(struct ieee80211_hw *hw, | |||
723 | wl->rx_filter |= CFG_RX_CTL_EN; | 695 | wl->rx_filter |= CFG_RX_CTL_EN; |
724 | if (*total & FIF_OTHER_BSS) | 696 | if (*total & FIF_OTHER_BSS) |
725 | wl->rx_filter &= ~CFG_BSSID_FILTER_EN; | 697 | wl->rx_filter &= ~CFG_BSSID_FILTER_EN; |
726 | |||
727 | /* | ||
728 | * FIXME: workqueues need to be properly cancelled on stop(), for | ||
729 | * now let's just disable changing the filter settings. They will | ||
730 | * be updated any on config(). | ||
731 | */ | ||
732 | /* schedule_work(&wl->filter_work); */ | ||
733 | } | 698 | } |
734 | 699 | ||
735 | /* HW encryption */ | 700 | /* HW encryption */ |
@@ -1390,7 +1355,6 @@ struct ieee80211_hw *wl1251_alloc_hw(void) | |||
1390 | 1355 | ||
1391 | skb_queue_head_init(&wl->tx_queue); | 1356 | skb_queue_head_init(&wl->tx_queue); |
1392 | 1357 | ||
1393 | INIT_WORK(&wl->filter_work, wl1251_filter_work); | ||
1394 | INIT_DELAYED_WORK(&wl->elp_work, wl1251_elp_work); | 1358 | INIT_DELAYED_WORK(&wl->elp_work, wl1251_elp_work); |
1395 | wl->channel = WL1251_DEFAULT_CHANNEL; | 1359 | wl->channel = WL1251_DEFAULT_CHANNEL; |
1396 | wl->scanning = false; | 1360 | wl->scanning = false; |
diff --git a/drivers/net/wireless/ti/wl1251/wl1251.h b/drivers/net/wireless/ti/wl1251/wl1251.h index 9d8f5816c6f9..fd02060038de 100644 --- a/drivers/net/wireless/ti/wl1251/wl1251.h +++ b/drivers/net/wireless/ti/wl1251/wl1251.h | |||
@@ -315,7 +315,6 @@ struct wl1251 { | |||
315 | bool tx_queue_stopped; | 315 | bool tx_queue_stopped; |
316 | 316 | ||
317 | struct work_struct tx_work; | 317 | struct work_struct tx_work; |
318 | struct work_struct filter_work; | ||
319 | 318 | ||
320 | /* Pending TX frames */ | 319 | /* Pending TX frames */ |
321 | struct sk_buff *tx_frames[16]; | 320 | struct sk_buff *tx_frames[16]; |