• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/drivers/net/wireless/libertas/
1/* Copyright (C) 2006, Red Hat, Inc. */
2
3#ifndef _WLAN_ASSOC_H_
4#define _WLAN_ASSOC_H_
5
6#include "dev.h"
7
8void libertas_association_worker(struct work_struct *work);
9
10struct assoc_request * wlan_get_association_request(wlan_adapter *adapter);
11
12void libertas_sync_channel(struct work_struct *work);
13
14#define ASSOC_DELAY (HZ / 2)
15static inline void wlan_postpone_association_work(wlan_private *priv)
16{
17	if (priv->adapter->surpriseremoved)
18		return;
19	cancel_delayed_work(&priv->assoc_work);
20	queue_delayed_work(priv->assoc_thread, &priv->assoc_work, ASSOC_DELAY);
21}
22
23static inline void wlan_cancel_association_work(wlan_private *priv)
24{
25	cancel_delayed_work(&priv->assoc_work);
26	if (priv->adapter->pending_assoc_req) {
27		kfree(priv->adapter->pending_assoc_req);
28		priv->adapter->pending_assoc_req = NULL;
29	}
30}
31
32#endif /* _WLAN_ASSOC_H */
33