So, here we are. Sometimes it works, some other (I would say most), it needs unplug, replug. In the meanwhile, I finished installing KDE 4, so what I'm posting was done from an X terminal with root privileges. Please let me know if you need diagnostics from a console.
So, today I started the system, then in the terminal I launched ifconfig and the interfaces were present, but not connected to the network. So I extracted first the relevant run0 and wlan0 messages from dmesg:
Then I launched wlandebug, waited some 20 secs, then stopped (wlandebug -i wlan0 0), as you indicated. The next dmesg grep was:
Finally, I unplugged and replugged the device, and did the dmesg grep again, with this result:
/boot/loader.conf is now:
/etc/rc.conf also follows:
Everything was done with the DWA 140. Apparently, the DWL G122 behaves similarly, but I didn't collect the same data on it. I hope this gives sufficient information. Please, let me know if I can be more precise.
So, today I started the system, then in the terminal I launched ifconfig and the interfaces were present, but not connected to the network. So I extracted first the relevant run0 and wlan0 messages from dmesg:
Code:
run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus6
run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 14:d6:4d:48:b1:cf
run0: firmware RT3071 loaded
wlan0: Ethernet address: 14:d6:4d:48:b1:cf
Code:
run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus6
run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 14:d6:4d:48:b1:cf
run0: firmware RT3071 loaded
wlan0: Ethernet address: 14:d6:4d:48:b1:cf
wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0
wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once
wlan0: scan set 1g, 6g, 11g, 7g, 2g, 3g, 4g, 5g, 8g, 9g, 10g dwell min 20ms max 200ms
wlan0: scan_task: chan 10g -> 1g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 7g -> 2g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 2g -> 3g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 3g -> 4g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 4g -> 5g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 5g -> 8g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 8g -> 9g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 9g -> 10g [active, dwell min 20ms max 200ms]
wlan0: sta_pick_bss: no scan candidate
wlan0: scan_task: done, [ticks 322198, dwell min 20 scanend 2147803412]
wlan0: notify scan done
wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0
wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once
wlan0: scan set 1g, 6g, 11g, 7g, 2g, 3g, 4g, 5g, 8g, 9g, 10g dwell min 20ms max 200ms
wlan0: scan_task: chan 10g -> 1g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 7g -> 2g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 2g -> 3g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 3g -> 4g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 4g -> 5g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 5g -> 8g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 8g -> 9g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 9g -> 10g [active, dwell min 20ms max 200ms]
wlan0: sta_pick_bss: no scan candidate
wlan0: scan_task: done, [ticks 329632, dwell min 20 scanend 2147810846]
wlan0: notify scan done
wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0
wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once
wlan0: scan set 1g, 6g, 11g, 7g, 2g, 3g, 4g, 5g, 8g, 9g, 10g dwell min 20ms max 200ms
wlan0: scan_task: chan 10g -> 1g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 7g -> 2g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 2g -> 3g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 3g -> 4g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 4g -> 5g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 5g -> 8g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 8g -> 9g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 9g -> 10g [active, dwell min 20ms max 200ms]
wlan0: sta_pick_bss: no scan candidate
wlan0: scan_task: done, [ticks 337070, dwell min 20 scanend 2147818280]
wlan0: notify scan done
wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0
wlan0: start_scan_locked: active scan, duration 2147483647 mindwell 0 maxdwell 0, desired mode auto, append, nojoin, once
wlan0: scan set 1g, 6g, 11g, 7g, 2g, 3g, 4g, 5g, 8g, 9g, 10g dwell min 20ms max 200ms
wlan0: scan_task: chan 10g -> 1g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms]
Code:
run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus6
run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 14:d6:4d:48:b1:cf
run0: firmware RT3071 loaded
wlan0: Ethernet address: 14:d6:4d:48:b1:cf
wlan0: ieee80211_ioctl_scanreq: flags 0x52 duration 0x7fffffff mindwell 0 maxdwell 0 nssid 0
<... snip, same as before ...>
wlan0: scan_task: chan 10g -> 1g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 1g -> 6g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 6g -> 11g [active, dwell min 20ms max 200ms]
wlan0: scan_task: chan 11g -> 7g [active, dwell min 20ms max 200ms]
wlan0: ieee80211_new_state_locked: pending SCAN -> AUTH transition lost
wlan0: link state changed to UP
wlan0: link state changed to DOWN
wlan0: link state changed to UP
run0: at uhub6, port 1, addr 2 (disconnected)
wlan0: link state changed to DOWN
run0: <Ralink 11n Adapter, class 0/0, rev 2.00/1.01, addr 2> on usbus6
run0: MAC/BBP RT3071 (rev 0x021C), RF RT3022 (MIMO 2T2R), address 14:d6:4d:48:b1:cf
run0: firmware RT3071 loaded
wlan0: Ethernet address: 14:d6:4d:48:b1:cf
wlan0: link state changed to UP
/boot/loader.conf is now:
Code:
if_run_load="YES"
runfw_load="YES"
wlan_wep_load="YES"
wlan_ccmp_load="YES"
wlan_tkip_load="YES"
nvidia_load="YES"
snd_hda_load="YES"
Code:
# -- sysinstall generated deltas -- # Thu Oct 27 01:04:32 2011
# Created: Thu Oct 27 01:04:32 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
keymap="us.international"
moused_enable="NO"
wlans_run0=wlan0
ifconfig_wlan0="WPA DHCP"
hald_enable="YES"
dbus_enable="YES"
kdm4_enable="YES"
Everything was done with the DWA 140. Apparently, the DWL G122 behaves similarly, but I didn't collect the same data on it. I hope this gives sufficient information. Please, let me know if I can be more precise.