1 /* Copyright (C) 2006, Red Hat, Inc. */
8 void libertas_association_worker(struct work_struct
*work
);
10 struct assoc_request
* wlan_get_association_request(wlan_adapter
*adapter
);
12 void libertas_sync_channel(struct work_struct
*work
);
14 #define ASSOC_DELAY (HZ / 2)
15 static inline void wlan_postpone_association_work(wlan_private
*priv
)
17 if (priv
->adapter
->surpriseremoved
)
19 cancel_delayed_work(&priv
->assoc_work
);
20 queue_delayed_work(priv
->work_thread
, &priv
->assoc_work
, ASSOC_DELAY
);
23 static inline void wlan_cancel_association_work(wlan_private
*priv
)
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
;
32 #endif /* _WLAN_ASSOC_H */