patch-2.2.7 linux/net/irda/irlan/irlan_provider_event.c

Next file: linux/net/irda/irlap.c
Previous file: linux/net/irda/irlan/irlan_provider.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/net/irda/irlan/irlan_provider_event.c linux/net/irda/irlan/irlan_provider_event.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:   Wed Feb  3 21:43:06 1999
+ * Modified at:   Thu Apr 22 10:46:28 1999
  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  * 
  *     Copyright (c) 1998 Dag Brattli <dagb@cs.uit.no>, All Rights Reserved.
@@ -108,8 +108,15 @@
 	switch(event) {
 	case IRLAN_GET_INFO_CMD:
 		/* Be sure to use 802.3 in case of peer mode */
-		if (self->access_type == ACCESS_PEER)
+		if (self->access_type == ACCESS_PEER) {
 			self->media = MEDIA_802_3;
+			
+			/* Check if client has started yet */
+			if (self->client.state == IRLAN_IDLE) {
+				/* This should get the client going */
+				irlmp_discovery_request(8);
+			}
+		}
 
 		irlan_provider_send_reply(self, CMD_GET_PROVIDER_INFO, 
 					  RSP_SUCCESS);
@@ -165,7 +172,7 @@
 
 	switch(event) {
 	case IRLAN_FILTER_CONFIG_CMD:
-		irlan_provider_extract_params(self, CMD_FILTER_OPERATION, skb);
+		irlan_provider_parse_command(self, CMD_FILTER_OPERATION, skb);
 		irlan_provider_send_reply(self, CMD_FILTER_OPERATION, 
 					  RSP_SUCCESS);
 		/* Keep state */
@@ -207,7 +214,7 @@
 
 	switch(event) {
 	case IRLAN_FILTER_CONFIG_CMD:
-		irlan_provider_extract_params(self, CMD_FILTER_OPERATION, skb);
+		irlan_provider_parse_command(self, CMD_FILTER_OPERATION, skb);
 		irlan_provider_send_reply(self, CMD_FILTER_OPERATION, 
 					  RSP_SUCCESS);
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)