Mailing List os2-wireless_users@2rosenthals.com Archived Message #2253

From: "Chris Clayton" <os2-wireless_users@2rosenthals.com> Full Headers
Undecoded message
Sender: os2-wireless_users-owner <os2-wireless_users-owner@2rosenthals.com>
Subject: [OS2Wireless] XWLAN script for changing between wifi and wired LANs
Date: Sat, 26 Nov 2005 10:04:02 -0700 (MST)
To: "os2-wireless_users@2rosenthals.com" <os2-wireless_users@2rosenthals.com>

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.





Attached File:  xwlan.zip (2322 bytes)

Subscribe: Feed, Digest, Index.
Unsubscribe
Mail to ListMaster