From jekvb at gmx.co.uk  Mon Nov 14 09:13:37 2011
From: jekvb at gmx.co.uk (jekvb at gmx.co.uk)
Date: Mon, 14 Nov 2011 10:13:37 +0100
Subject: [Bugs-team] NWAM breaks WiFi drivers (again)?
Message-ID: <20111114091337.175810@gmx.com>

Hello everyone,

 I have a problem with NWAM and the Atheros arn Wifi driver.

 Notebook Acer Aspire 5737z
 Wireless Interface: Atheros Communications 
 Device: AR928X Wireless Network Adapter (PCI-Express)
 node name: pci105b,e006
 driver name: arn
 On Operating System: cat /etc/release OpenIndiana Development oi_151a X86

 Problem: Wireless network interface fails in combination with NWAM
 Reproducable: Yes
 Occurs: After login

 NWAM Applet on desktop shows:
 Location: NoNet
 Network profile: Automatic
 Network Modifiers: None Active
 Wireless (arn0): Needs Network Selection

 kuba at acer:~$ pfexec dladm show-wifi
 LINK STATUS ESSID SEC STRENGTH MODE SPEED
 arn0 disconnected Cisco877W -- -- -- --

 kuba at acer:~$ pfexec nwamadm list -x | grep arn0
 ncu:phys arn0 offline* need WiFi network selection
 ncu:ip arn0 offline conditions for activation are unmet

 kuba at acer:~$ pfexec tail -f /var/adm/messages
 Nov 13 16:01:25 acer genunix: [ID 634369 kern.warning] WARNING: ieee80211_event: door_ki_open(/var/run/wpa_door_arn0) failed
 Nov 13 16:01:25 acer last message repeated 1 time
 Nov 13 16:01:28 acer wpad[149]: [ID 702911 daemon.notice] failed to fdetach /var/run/wpa_door_arn0: No such file or directory, exiting.
 Nov 13 16:01:32 acer nwamd[369]: [ID 833246 daemon.error] 3: nwamd_door_req_state: enm Unnamed Modifier not found

 Note: Without NWAM the wireless interface function is OK:

 # svcadm enable svc:/network/physical:default

 root at acer:~# ifconfig arn0 plumb
 root at acer:~# dladm connect-wifi -e Cisco877W -k ciscokey arn0
 root at acer:~# ifconfig arn0 dhcp start
 root at acer:~# ifconfig -a
 lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
 inet 127.0.0.1 netmask ff000000 
 arn0: flags=1004843<UP,BROADCAST,RUNNING,MULTICAST,DHCP,IPv4> mtu 1500 index 5
 inet 192.168.44.142 netmask ffffff00 broadcast 192.168.44.255
 ether 0:23:4d:49:5d:49 
 lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 index 1
 inet6 ::1/128 

 root at acer:~# ping 192.168.44.248
 192.168.11.254 is alive

 $ dladm show-wifi
 LINK STATUS ESSID SEC STRENGTH MODE SPEED
 arn0 connected Cisco877W wpa good g 54M

 Note:
 Using a Sweex Wireless USB stick, NWAM combined with the rum driver works OK:

 kuba at acer:~$ pfexec tail -f /var/adm/messages
 Nov 13 16:13:18 acer mac: [ID 469746 kern.info] NOTICE: rum0 registered
 Nov 13 16:13:18 acer genunix: [ID 408114 kern.info] /pci at 0,0/pci1025,176 at 1d,7/device at 5 (rum0) online
 Nov 13 16:14:25 acer mac: [ID 744254 kern.info] NOTICE: rum0 link up
 Nov 13 16:14:26 acer in.routed[879]: [ID 749644 daemon.notice] rum0 has a bad address 0.0.0.0
 Nov 13 16:14:26 acer in.routed[879]: [ID 464608 daemon.error] route 0.0.0.0/8 --> 0.0.0.0 nexthop is not directly connected
 Nov 13 16:14:30 acer /sbin/dhcpagent[1848]: [ID 778557 daemon.warning] configure_v4_lease: no IP broadcast specified for rum0, making best guess
 Nov 13 16:14:31 acer in.routed[879]: [ID 606928 daemon.warning] sendto(rum0, 224.0.0.2): Network is unreachable

 After some time the "Connect to wireless network" interface appears.
 Without doing anything I get an IP through DHCP.

 NWAM applet on desktop now shows:
 Location: Automatic
 Network profile: Automatic
 Network Modifiers: None Active
 Wireless (arn0): Needs Network Selection
 Wireless (rum0): Connected to Cisco877W (Excellent)

 kuba at acer:~$ dladm show-wifi
 LINK STATUS ESSID SEC STRENGTH MODE SPEED
 arn0 disconnected -- -- -- -- --
 rum0 connected Cisco877W wpa excellent g 36Mb

 kuba at acer:~$ pfexec nwamadm list -x
 TYPE PROFILE STATE AUXILIARY STATE
 ncp Automatic online active
 ncu:phys arn0 offline* connecting to WiFi network
 ncu:ip arn0 offline conditions for activation are unmet
 ncu:phys rum0 online interface/link is up
 ncu:ip rum0 online interface/link is up
 loc Automatic online active
 loc NoNet offline conditions for activation are unmet
 loc User disabled disabled by administrator

 Note: In the "nwam enabled" state, nwamadm list -x shows that the arn0 interface is stuck in the "ncu:phys arn0 offline* connecting to WiFi network" state forever.

 Resemblance with older BUGS:
 This problem existed earlier (with iwh driver combined with NWAM)
 http://www.mail-archive.com/laptop-discuss at mail.opensolaris.org/msg00255.html
 http://comments.gmane.org/gmane.os.solaris.opensolaris.networking/13465 (see Jurgen Keil's part)

 Best regards, Jan E. Kuba van Bijnen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openindiana.org/pipermail/bugs-team/attachments/20111114/e583999a/attachment.html>

