patch-2.3.16 linux/net/irda/irlan/irlan_client.c
Next file: linux/net/irda/irlan/irlan_client_event.c
Previous file: linux/net/irda/irias_object.c
Back to the patch index
Back to the overall index
- Lines: 78
- Date:
Mon Aug 30 10:26:28 1999
- Orig file:
v2.3.15/linux/net/irda/irlan/irlan_client.c
- Orig date:
Mon Jun 7 16:18:58 1999
diff -u --recursive --new-file v2.3.15/linux/net/irda/irlan/irlan_client.c linux/net/irda/irlan/irlan_client.c
@@ -6,7 +6,7 @@
* Status: Experimental.
* Author: Dag Brattli <dagb@cs.uit.no>
* Created at: Sun Aug 31 20:14:37 1997
- * Modified at: Mon May 31 14:19:34 1999
+ * Modified at: Thu Jul 8 13:50:16 1999
* Modified by: Dag Brattli <dagb@cs.uit.no>
* Sources: skeleton.c by Donald Becker <becker@CESDIS.gsfc.nasa.gov>
* slip.c by Laurence Culhane, <loz@holmes.demon.co.uk>
@@ -67,7 +67,7 @@
static void irlan_check_response_param(struct irlan_cb *self, char *param,
char *value, int val_len);
-static void irlan_client_kick_timer_expired(unsigned long data)
+static void irlan_client_kick_timer_expired(void *data)
{
struct irlan_cb *self = (struct irlan_cb *) data;
@@ -92,8 +92,7 @@
{
DEBUG(4, __FUNCTION__ "()\n");
- irda_start_timer(&self->client.kick_timer, timeout,
- (unsigned long) self,
+ irda_start_timer(&self->client.kick_timer, timeout, (void *) self,
irlan_client_kick_timer_expired);
}
@@ -166,7 +165,7 @@
*/
void irlan_client_discovery_indication(discovery_t *discovery)
{
- struct irlan_cb *self, *entry;
+ struct irlan_cb *self;
__u32 saddr, daddr;
DEBUG(1, __FUNCTION__"()\n");
@@ -223,7 +222,8 @@
irlan_do_client_event(self, IRLAN_DATA_INDICATION, skb);
- /* Ready for a new command */
+ /* Ready for a new command */
+ DEBUG(2, __FUNCTION__ "(), clearing tx_busy\n");
self->client.tx_busy = FALSE;
/* Check if we have some queued commands waiting to be sent */
@@ -238,6 +238,7 @@
{
struct irlan_cb *self;
struct tsap_cb *tsap;
+ struct sk_buff *skb;
DEBUG(4, __FUNCTION__ "(), reason=%d\n", reason);
@@ -251,6 +252,12 @@
ASSERT(tsap == self->client.tsap_ctrl, return;);
+ /* Remove frames queued on the control channel */
+ while ((skb = skb_dequeue(&self->client.txq))) {
+ dev_kfree_skb(skb);
+ }
+ self->client.tx_busy = FALSE;
+
irlan_do_client_event(self, IRLAN_LMP_DISCONNECT, NULL);
}
@@ -262,8 +269,8 @@
*/
void irlan_client_open_ctrl_tsap(struct irlan_cb *self)
{
- struct notify_t notify;
struct tsap_cb *tsap;
+ notify_t notify;
DEBUG(4, __FUNCTION__ "()\n");
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)