you can try the following operations: You may run "ifconfig ath0 unplumb" and "ficonfig ath0 plumb" before connect a AP. or you can do a
dladm disconnect-wifi <intf> ifconfig <intf> dhcp release dladm connect-wifi [new wifi infomation (essid, key, etc)] ifconfig <intf> dhcp primary Zhonghui ________________________________ From: laptop-discuss-bounces at opensolaris.org [mailto:[email protected]] On Behalf Of Johan Hartzenberg Sent: 2008?9?27? 19:43 To: Karl Dalen Cc: laptop-discuss at opensolaris.org Subject: Re: [laptop-discuss] How to reconnect wlan when moving to a newaccess point ? I have the same symptoms as described below. Worse, when I move from wired to Wifi (on the same network, eg by unplugging the cable from the ADSL router to my laptop), nwam fails to configure the interface until I reboot. This used to work. I have tried to do svcadm restart physical:nwam, I have also tried to disable nwam and run wificonfig autoconf etc, and then get a seeming connected status but do not get an IP, even manually, unless I reboot. On Fri, Sep 26, 2008 at 10:17 PM, Karl Dalen <k_dal2 at hotmail.com> wrote: I'm using the ath-0.7.3 driver together with wificonfig on my laptop and when I disconnect the wlan using: wificonfig -i ath0 disconnect (or suspend) and move to another location and try to connect to another access point it fails. If I do: # wificonfig -i ath0 connect newpoint It looks like I'm connected based on: wificonfig -i ath0 showstatus linkstatus: connected active profile: none essid: newpoint bssid: 00:18:b0:7b:c2:99 encryption: none signal strength: medium(10) but 'ifconfig ath0' shows: ath0: flags=201004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4,CoS> mtu 1500 index 2 inet 0.0.0.0 netmask ffff0000 broadcast 10.0.255.255 which means I haven't got a new IP at the new access point It seems to indicate that my IP is set to 0.0.0.0 Now if I try: # ifconfig ath0 dhcp ifconfig: ath0: wait timed out, operations still pending and I fail to get a new IP. It doesn't matter how many times I do wificonfig disconnect and connect I never manage to get the wlan interface up unless I reboot after which it comes up automatically without the need for any manual wificonfig and it works reliably. How can I clean up the state of ifconfig and wificonfig such that it can reconnect and acquire new IP after moving to another access point ? I'm running Indiana build 96 Anyone experienced similar problems ? It shows the same behavior when I go back home to my local access point so it has nothing to with the access points themselves or any security setting as everything works on each location after a reboot. Any help would be appreciated -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/laptop-discuss/attachments/20080928/eb59e32e/attachment.html>
