X-Account-Key: account1 X-UIDL: 27558 X-Mozilla-Keys: Return-Path: os2-wireless_users-owner@2rosenthals.com Received: from 192.168.100.5 (hawking [192.168.100.5]) by 2rosenthals.com (Hethmon Brothers Smtpd) id 20051126120413-63383-10 ; Sat, 26 Nov 2005 12:04:14 -0500 (Hethmon Brothers Smtpd) id 20051126120413-23062-10 ; Sat, 26 Nov 2005 12:04:13 -0500 Received: from mxin1.mailhop.org ([63.208.196.175]) by mxout3.mailhop.org with esmtp (Exim 4.51) id 1Eg3TA-0007JV-1d for os2-wireless_users@2rosenthals.com; Sat, 26 Nov 2005 12:04:12 -0500 Received: from mx1a.swcp.com ([216.184.2.64]) by mxin1.mailhop.org with esmtp (Exim 4.51) id 1Eg3T9-000J2Y-Nh for os2-wireless_users@2rosenthals.com; Sat, 26 Nov 2005 12:04:11 -0500 Received: from taka.swcp.com (taka-216.swcp.com [216.184.2.3]) by mx1a.swcp.com (8.13.3/8.13.3/Debian-6) with ESMTP id jAQH46Lj015217 for ; Sat, 26 Nov 2005 10:04:06 -0700 Received: from cuddles (tc1-152.swcp.com [216.184.0.53]) by taka.swcp.com (8.13.3/8.13.1) with SMTP id jAQH42L1049943 for ; Sat, 26 Nov 2005 10:04:03 -0700 (MST) (envelope-from clayton@ieee.org) Message-Id: <200511261704.jAQH42L1049943@taka.swcp.com> X-Mailer: PMMail 2.10.2010 for OS/2 Warp 4.05 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="_=_=_=IMA.BOUNDARY.IQKHUP138764=_=_=_" X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on av1 X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on kaimen.swcp.com X-Spam-Status: No, hits=-2.4 required=10.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 X-Spam-Level: X-Mail-Handler: MailHop by DynDNS X-Spam-Score: -2.6 (--) Date: Sat, 26 Nov 2005 10:04:02 -0700 (MST) Sender: os2-wireless_users-owner X-Listname: os2-wireless_users@2rosenthals.com Reply-To: os2-wireless_users@2rosenthals.com From: "Chris Clayton" To: "os2-wireless_users@2rosenthals.com" Subject: [OS2Wireless] XWLAN script for changing between wifi and wired LANs X-List-Unsubscribe: Send email to mailusers-request@2rosenthals.com X-List-Owner: mailusers-owner@2rosenthals.com --_=_=_=IMA.BOUNDARY.IQKHUP138764=_=_=_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit After quite a bit of testing I have developed a xwlan script that changes between a 'Home' profile wifi lan0 and a wired lan1. The change is initiated by being attached to the wifi lan using the 'Home' profile and turning the wifi radio off in xwlan. To change back, the wifi radio is merely turned on. THe script also allows for changing between the 'Home' wifi profile with fixed IP addressing and a 'Travel' wifi profile with DHCP addressing. I also use the 'Travel' section to handle hotspot connections without a profile name. This latter option has not been tested. See the attached zip file. You will probably need to change the TCP/IP setup and profile names to what you use. A few things I have noticed: 1) When the radio is turned off the SSID does not appear to be passed to the script (I get a NULL string). So I used the profile name as a test instead of the SSID as indicted in the sample script. 2) I had to disable the TCP/IP setup in the 'Home' profile and do the setup in the script because I got a popup error message about using duplicate fixed IP addresses for both lan0 and lan1. The 'Travel' DHCP setup was ok, no configuration statements are needed in the script except for ensuring that the wired LAN is deleted. 3) The wifi is sometimes stubborn about connecting to a profile, even if the AP is only a few feet away. I'm not sure if this is a xwlan script problem or related to interference from local networks. In this case, the network is usually left in the fixed ip wired LAN1 configuration. I found that if I suspended the laptop, the profile usually connects upon resume. 4) Sometimes the 'Home' profile connects but the connect event is not sent to the script. In this case, the infamous 'IP disabled' logo is shown. I correct this by manually issuing the appropriate wifi script commands. --_=_=_=IMA.BOUNDARY.IQKHUP138764=_=_=_ Content-Type: application/octet-stream; name="xwlan.zip" Content-Transfer-Encoding: base64 UEsDBBQAAAAIACNJejPHavgxRwgAANATAAAJABEAeHdsYW4uY21kVVQNAAeiiIhDooiIQ3ghrEG9 WGFv2zgS/V6g/2Fa7F6TQ+La2U1xl8Pizus4jQH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qh0EXutUo5LtATExXEa8JVcCf9EalmcUKjq9FJdgF6HfcISmuWCmZ+8ypQ6aqu TmACVPRTfWd+RZjq0ejOPjW08poQ6gZubtRdbfwo5qsh4hBKG5XB01qbHN/KRJjYD7ayI/5FYo8U z1XxYK928FrntT+HEdOGJwTWz+uvo/lsNh5hzELzdh5arP43vQUMgCkcBO0oB3B7Wz69iddIxwwx mrvn6SbDtTAVrh6t7dPg72e9wbu/9c565+/4tELYb3R2ft5r/vpMdgNhxIWraXDe77eWgT0O24g6 d11DfTrFJOmHF55gEVu1o/TiS1G58ot0yRcf+n1PVPaZ22dNwwzVmfoujazFt8mO8gc0l5HGLdGx nuWreXF88krmIb6cLH8vyv3nUO7/AZQH/xeU/wtmgOUpaEPnBNoP95BHr6O+GBg+z2ksaGjd4H/R UdeL8CLZ2F89p0Us9fzyBG3jsuy8pO11lNUyi0Nl8yvAvpZi0US5yg5ewtsa3jcgRF9KmdqoqlHz eq0znWL1wuXN7n9r2L+mtz8VrP60gnycI+fPepbZq0OK+p2X3SDDTwDBQPv6f2ij+f/RLIQiQBS/ 41WlnbrZyn8AUEsBAhcGFAAAAAgAI0l6M8dq+DFHCAAA0BMAAAkACQAAAAAAAQAgAP+BAAAAAHh3 bGFuLmNtZFVUBQAHooiIQ1BLBQYAAAAAAQABAEAAAAB/CAAAAAA= --_=_=_=IMA.BOUNDARY.IQKHUP138764=_=_=_-- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To unsubscribe from this list, send a message to steward@2rosenthals.com with the command "unsubscribe os2-wireless_users" in the body (omit the quotes). For help with other commands, send a message to steward@2rosenthals.com with the command "help" in the body (omit the quotes). This list is hosted by Rosenthal & Rosenthal P.O. Box 281, Deer Park, NY 11729-0281. Non- electronic communications related to content contained in these messages should be directed to the above address. (CAN-SPAM Act of 2003) =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=