diff options
author | Christian Lamparter <chunkeey@web.de> | 2009-08-19 06:43:47 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-20 11:36:06 -0400 |
commit | eeef41854deae30ea304544f18684df70ae3f87b (patch) | |
tree | c6824c4c75d0d8c50ac43df17d29ca3a33fcd737 /drivers/net/wireless/ath/ar9170/ar9170.h | |
parent | 5791ce18aa660df7d1dafebf6bd89d5aa05bd742 (diff) |
ar9170: refactor configure_filter
Thanks to "mac80211: allow configure_filter callback to sleep",
we no longer have to defer the work to the workqueue.
Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ar9170/ar9170.h')
-rw-r--r-- | drivers/net/wireless/ath/ar9170/ar9170.h | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/drivers/net/wireless/ath/ar9170/ar9170.h b/drivers/net/wireless/ath/ar9170/ar9170.h index 95f8256c2026..ce407248d7d8 100644 --- a/drivers/net/wireless/ath/ar9170/ar9170.h +++ b/drivers/net/wireless/ath/ar9170/ar9170.h | |||
@@ -185,10 +185,8 @@ struct ar9170 { | |||
185 | bool disable_offload; | 185 | bool disable_offload; |
186 | 186 | ||
187 | /* filter settings */ | 187 | /* filter settings */ |
188 | struct work_struct filter_config_work; | 188 | u64 cur_mc_hash; |
189 | u64 cur_mc_hash, want_mc_hash; | 189 | u32 cur_filter; |
190 | u32 cur_filter, want_filter; | ||
191 | unsigned long filter_changed; | ||
192 | unsigned int filter_state; | 190 | unsigned int filter_state; |
193 | bool sniffer_enabled; | 191 | bool sniffer_enabled; |
194 | 192 | ||
@@ -261,10 +259,6 @@ struct ar9170_tx_info { | |||
261 | #define IS_STARTED(a) (((struct ar9170 *)a)->state >= AR9170_STARTED) | 259 | #define IS_STARTED(a) (((struct ar9170 *)a)->state >= AR9170_STARTED) |
262 | #define IS_ACCEPTING_CMD(a) (((struct ar9170 *)a)->state >= AR9170_IDLE) | 260 | #define IS_ACCEPTING_CMD(a) (((struct ar9170 *)a)->state >= AR9170_IDLE) |
263 | 261 | ||
264 | #define AR9170_FILTER_CHANGED_MODE BIT(0) | ||
265 | #define AR9170_FILTER_CHANGED_MULTICAST BIT(1) | ||
266 | #define AR9170_FILTER_CHANGED_FRAMEFILTER BIT(2) | ||
267 | |||
268 | /* exported interface */ | 262 | /* exported interface */ |
269 | void *ar9170_alloc(size_t priv_size); | 263 | void *ar9170_alloc(size_t priv_size); |
270 | int ar9170_register(struct ar9170 *ar, struct device *pdev); | 264 | int ar9170_register(struct ar9170 *ar, struct device *pdev); |
@@ -278,8 +272,8 @@ int ar9170_nag_limiter(struct ar9170 *ar); | |||
278 | int ar9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb); | 272 | int ar9170_op_tx(struct ieee80211_hw *hw, struct sk_buff *skb); |
279 | int ar9170_init_mac(struct ar9170 *ar); | 273 | int ar9170_init_mac(struct ar9170 *ar); |
280 | int ar9170_set_qos(struct ar9170 *ar); | 274 | int ar9170_set_qos(struct ar9170 *ar); |
281 | int ar9170_update_multicast(struct ar9170 *ar); | 275 | int ar9170_update_multicast(struct ar9170 *ar, const u64 mc_hast); |
282 | int ar9170_update_frame_filter(struct ar9170 *ar); | 276 | int ar9170_update_frame_filter(struct ar9170 *ar, const u32 filter); |
283 | int ar9170_set_operating_mode(struct ar9170 *ar); | 277 | int ar9170_set_operating_mode(struct ar9170 *ar); |
284 | int ar9170_set_beacon_timers(struct ar9170 *ar); | 278 | int ar9170_set_beacon_timers(struct ar9170 *ar); |
285 | int ar9170_set_dyn_sifs_ack(struct ar9170 *ar); | 279 | int ar9170_set_dyn_sifs_ack(struct ar9170 *ar); |